summaryrefslogtreecommitdiffstats
path: root/include/resolv.h
Commit message (Collapse)AuthorAgeFilesLines
* Spelling fixes for include/uqs2012-01-071-1/+1
|
* Remove the Berkeley clause 3's.imp2010-02-161-5/+1
| | | | Add a few $FreeBSD$
* Merge the resolver part of BIND 9.4.3 into HEAD.ume2008-12-141-1/+5
| | | | | | | | | | It includes the following fix: 2426. [bug] libbind: inet_net_pton() can sometimes return the wrong value if excessively large netmasks are supplied. [RT #18512] Reported by: Maksymilian Arciemowicz <cxib__at__securityreason.com>
* Merge BIND 9.4.1 into main chunk.ume2007-06-031-83/+82
| | | | MFC after: 2 weeks
* Upgrade res_update(3) and the friends to BIND9's one excluding TSIGume2006-05-211-2/+2
| | | | | | support. X-MFC after: never
* Comment out the function prototypes which our libc actuallyume2006-05-131-2/+6
| | | | doesn't have.
* Update the resolver in libc to BIND9's one.ume2006-03-211-147/+311
| | | | | | | | | | | | | | | | | | | | | | Since, res_sendsigned(3) and the friends use MD5 functions, it is hard to include them without having MD5 functions in libc. So, res_sendsigned(3) is not merged into libc. Since, res_update(3) in BIND9 is not binary compatible with our res_update(3), res_update(3) is leaved as is, except some necessary modifications. The res_update(3) and the friends are not essential part of the resolver. They are not defined in resolv.h but defined in res_update.h separately in BIND9. Further, they are not called from our tree. So, I hide them from our resolv.h, but leave them only for binary backward compatibility (perhaps, no one calls them). Since, struct __res_state_ext is not exposed in BIND9, I hide it from our resolv.h. And, global variable _res_ext is removed. It breaks binary backward compatibility. But, since it is not used from outside of our libc, I think it is safe. Reviewed by: arch@ (no objection)
* Decrease the value of RES_DFLRETRY from 4 to 2.ume2006-02-241-1/+1
| | | | | | | PR: bin/62139 Reported by: Rostislav Krasny <rosti.bsd__at__gmail.com> Obtained from: BIND9 MFC after: 1 week
* Don't declare ___res_ext() twice.stefanf2005-09-121-2/+1
|
* Add the macro RES_DFLRETRY long-promised by resolver(5).yar2004-09-091-0/+1
| | | | | | | | | | It specifies the default number of retries per a name server. This makes the code consistent with the manpage and allows to kill another constant in res_init.c that should have been a #define'd parameter. (This appears to be a case when the manpage was better than the code, so the latter was to be fixed.) PR: bin/62139 (in the audit trail)
* Don't try to pass off a struct sockaddr as a struct sockaddr_in when itdes2004-03-151-2/+2
| | | | | | | may in fact very well be a struct sockaddr_in6. Just use plain struct sockaddr. This brings us yet another step closer to a clean -O2 build.
* Make the resolver(3) and many associated interfaces much more reentrant.green2004-02-251-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The getaddrinfo(3), getipnodebyname(3) and resolver(3) can coincide now with what should be totally reentrant, and h_errno values will now be preserved correctly, but this does not affect interfaces such as gethostbyname(3) which are still mostly non-reentrant. In all of these relevant functions, the thread-safety has been pushed down as far as it seems possible right now. This means that operations that are selected via nsdispatch(3) (i.e. files, yp, dns) are protected still under global locks that getaddrinfo(3) defines, but where possible the locking is greatly reduced. The most noticeable improvement is that multiple DNS lookups can now be run at the same time, and this shows major improvement in performance of DNS-lookup threaded programs, and solves the "Mozilla tab serialization" problem. No single-threaded applications need to be recompiled. Multi-threaded applications that reference "_res" to change resolver(3) options will need to be recompiled, and ones which reference "h_errno" will also if they desire the correct h_errno values. If the applications already understood that _res and h_errno were not thread-safe and had their own locking, they will see no performance improvement but will not actually break in any way. Please note that when NSS modules are used, or when nsdispatch(3) defaults to adding any lookups of its own to the individual libc _nsdispatch() calls, those MUST be reentrant as well.
* Add support for timeout: and attempts: resolver options.murray2003-12-071-0/+2
| | | | | Submitted by: Paul Vixie <paul@vix.com> / ISC MFC After: 1 week
* Eliminate 19 warnings in libc (at level WARNS=2) of thenectar2003-02-271-0/+5
| | | | `implicit declaration of function' variety.
* Breath deep and take __P out of the system include files.imp2002-03-231-67/+66
| | | | | | # This appears to not break X11, but I'm having problems compiling the # glide part of the server with or without this patch, so I can't tell # for sure.
* Implement EDNS0 support, as EDNS0 support will be made mandatory forume2001-06-101-0/+4
| | | | | | | | | | | IPv6 transport-ready resolvers/DNS servers. Need careful configuration when enable it. (default config is not affected). See manpage for details. XXX visible symbol __res_opt() is added, however, it is not supposed to be called from outside, libc minor is not bumped. Obtained from: KAME/NetBSD
* Getaddrinfo(), getnameinfo(), and etc support in libc/net.shin1999-12-281-0/+19
| | | | | | | Several udp and raw apps IPv6 support. Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project
* $Id$ -> $FreeBSD$peter1999-08-271-1/+1
|
* Remove the extern decl of ``h_errno''. It's alreadybrian1998-09-071-10/+1
| | | | | | externed in netdb.h - where all of its #define values live. If anything requires h_errno here (nothing in /usr/src seems to) it's almost definitely broken.
* Damn, bind8 includes added <arpa/nameser.h> as a prerequisite forpeter1998-06-111-15/+17
| | | | | | | | | | <resolv.h>. This breaks user ppp at least, and goodness knows how many ports. :-( This a bit of a hack, but is probably simpler than duplicating the typedefs and protecting them from each other. Also, remove some temporary XXX notes that I forgot to remove before.
* Update nameserver interface to bind-8.1.2 levels. We do not use IRS (yet?)peter1998-06-111-32/+45
| | | | | | | | since it has far wider impact than hostname lookups (including passwords). Note that this has more ugly symbol hiding and binary compatability hacks that can go away the second we bump majors. Obtained from: Mostly from diff against ISC bind-8.1.2 sources
* Add "options no_tld_query" to resolv.conf.brian1997-09-011-1/+2
| | | | | | Mention the capability in resolver(5). Mention that RES_OPTIONS can be used in resolver(5). Discussed with: -hackers
* merge in bind-4.9.6 changes (only effect is __res_send #define reverted)peter1997-06-271-3/+3
|
* Back out all of yesterdays include file changes.eivind1997-05-071-3/+1
|
* Make a lot of include-files self-contained. I excluded the patches changingeivind1997-05-071-1/+3
| | | | | | | | int's to gid_t and uid_t - should I commit these, too? Closes PR misc/2625. Submitted by: Julian Assange <proff@iq.org>
* Revert $FreeBSD$ to $Id$peter1997-02-231-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Update the resolver definitions from bind-4.9.4-P1 to 4.9.5-P1 level.peter1996-12-301-48/+89
| | | | (More commits to come)
* Hand merge in the bind-4.9.4-P1 resolver updates.peter1996-08-291-2/+15
|
* Fix a bunch of spelling errors in the comment fieldsmpp1996-01-301-2/+2
| | | | of a bunch of system include files.
* Update resolver include files to bind-4.9.3-rel levelpeter1996-01-071-2/+3
|
* Update the resolver include files to bind-4.9.3-beta24 level (from beta9p1)peter1995-08-201-13/+24
| | | | | | | Note: this was done by selective patching from diffs by hand, in order to not conflict with the 4.4BSD base code. Beta9 was done the same way. Obtained from: Paul Vixie <paul@vix.com>
* Remove trailing whitespace.rgrimes1995-05-301-3/+3
|
* get* rework and new bind codepst1994-09-251-49/+109
|
* BSD 4.4 Lite Include Sourcesrgrimes1994-05-241-0/+164
OpenPOWER on IntegriCloud