History log of /src/lib/libc/resolv |
Revision | Date | Author | Comments |
1.9 | 03-Jun-2023 |
lukem | bsd.own.mk: rename GCC_NO_* to CC_WNO_*
Rename compiler-warning-disable variables from GCC_NO_warning to CC_WNO_warning where warning is the full warning name as used by the compiler.
GCC_NO_IMPLICIT_FALLTHRU is CC_WNO_IMPLICIT_FALLTHROUGH
Using the convention CC_compilerflag, where compilerflag is based on the full compiler flag name.
|
1.8 | 13-Oct-2019 |
mrg | introduce some common variables for use in GCC warning disables:
GCC_NO_FORMAT_TRUNCATION -Wno-format-truncation (GCC 7/8) GCC_NO_STRINGOP_TRUNCATION -Wno-stringop-truncation (GCC 8) GCC_NO_STRINGOP_OVERFLOW -Wno-stringop-overflow (GCC 8) GCC_NO_CAST_FUNCTION_TYPE -Wno-cast-function-type (GCC 8)
use these to turn off warnings for most GCC-8 complaints. many of these are false positives, most of the real bugs are already commited, or are yet to come.
we plan to introduce versions of (some?) of these that use the "-Wno-error=" form, which still displays the warnings but does not make it an error, and all of the above will be re-considered as either being "fix me" (warning still displayed) or "warning is wrong."
|
1.7 | 10-Oct-2019 |
kre | More cases to disable gcc-8 warnings only when we're using gcc>=8
|
1.6 | 09-Oct-2019 |
christos | Add -Wno-error for gcc-8 warnings
|
1.5 | 16-Jan-2014 |
christos | branches: 1.5.26; "soon" is "now". Remove all __indr_reference crap.
|
1.4 | 28-Jan-2007 |
christos | branches: 1.4.36; 1.4.42; we don't need <irs.h>
|
1.3 | 27-Jan-2007 |
christos | merge in resolver portion of bind-9.4.0-rc2
|
1.2 | 09-Jun-2004 |
christos | branches: 1.2.10; 1.2.12; Jump through taller hoops to provide binary compatibility with programs compiled with the older and shorter _res. We now use _nres internally which is the new and bigger one. We define a _res which is the old size one if COMPAT__RES is set, and then we consult selected values from this old _res in res_init(), to emulate the old behavior.
|
1.1 | 20-May-2004 |
christos | Add glue files.
|
1.2.12.1 | 03-Jun-2007 |
wrstuden | Catch up with now-somewhat-dated netbsd-4. These changes took longer than expected for me to actually get around to merging.
|
1.2.10.2 | 17-May-2007 |
jdc | Add missing BIND 9.4.x include file and library changes (requested by tron in ticket #662).
|
1.2.10.1 | 17-May-2007 |
jdc | Update BIND to version 9.4.1 (requested by christos in ticket #602). Thanks to tron for the patches, upgrade script and testing.
|
1.4.42.1 | 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.4.36.1 | 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
1.5.26.1 | 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|
1.6 | 16-Jan-2014 |
christos | "soon" is "now". Remove all __indr_reference crap.
|
1.5 | 17-Jan-2007 |
seanb | branches: 1.5.36; 1.5.42; - Function no longer matched prototype after move to ansi prototype in last commit; restore. - Not noticed as weak aliases are used so the code is not compiled in.
|
1.4 | 13-Sep-2005 |
christos | branches: 1.4.4; 1.4.6; compat core reorg.
|
1.3 | 30-Jul-2005 |
christos | - Fix the remaining indr_references so that they define lint symbols. - Add an internal symbol for strerror_r (thanks klaus for noticing) - Remove internal __strerror
|
1.2 | 12-Jun-2005 |
lukem | Add missing __RCSID()
|
1.1 | 20-May-2004 |
christos | Add glue files.
|
1.4.6.1 | 03-Jun-2007 |
wrstuden | Catch up with now-somewhat-dated netbsd-4. These changes took longer than expected for me to actually get around to merging.
|
1.4.4.1 | 17-May-2007 |
jdc | Add missing BIND 9.4.x include file and library changes (requested by tron in ticket #662).
|
1.5.42.1 | 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.5.36.1 | 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
1.5 | 16-Jan-2014 |
christos | "soon" is "now". Remove all __indr_reference crap.
|
1.4 | 13-Sep-2005 |
christos | branches: 1.4.44; 1.4.50; compat core reorg.
|
1.3 | 30-Jul-2005 |
christos | - Fix the remaining indr_references so that they define lint symbols. - Add an internal symbol for strerror_r (thanks klaus for noticing) - Remove internal __strerror
|
1.2 | 12-Jun-2005 |
lukem | Add missing __RCSID()
|
1.1 | 20-May-2004 |
christos | Add glue files.
|
1.4.50.1 | 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.4.44.1 | 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
1.5 | 16-Jan-2014 |
christos | "soon" is "now". Remove all __indr_reference crap.
|
1.4 | 13-Sep-2005 |
christos | branches: 1.4.44; 1.4.50; compat core reorg.
|
1.3 | 30-Jul-2005 |
christos | - Fix the remaining indr_references so that they define lint symbols. - Add an internal symbol for strerror_r (thanks klaus for noticing) - Remove internal __strerror
|
1.2 | 12-Jun-2005 |
lukem | Add missing __RCSID()
|
1.1 | 20-May-2004 |
christos | Add glue files.
|
1.4.50.1 | 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.4.44.1 | 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
1.3 | 21-Jun-2008 |
christos | branches: 1.3.6; updates from bind-9-5-0
|
1.2 | 28-Apr-2008 |
martin | branches: 1.2.2; Remove clause 3 and 4 from TNF licenses
|
1.1 | 20-May-2004 |
christos | branches: 1.1.24; provide __h_errno_set()
|
1.1.24.1 | 18-May-2008 |
yamt | sync with head.
|
1.2.2.1 | 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.3.6.2 | 21-Jun-2008 |
christos | updates from bind-9-5-0
|
1.3.6.1 | 21-Jun-2008 |
christos | file h_errno.c was added on branch christos-time_t on 2008-06-21 20:41:49 +0000
|
1.10 | 24-Feb-2015 |
christos | belated removal of the advertising clause.
|
1.9 | 13-Mar-2012 |
christos | PR/45989: Martin Husemann: lint invocation does include -w only on i386
- turn lint -w for all the platforms after fixing the lint warnings. - add _DIAGASSERTS() for casts that would assign values to types that would not fit. - change types, add casts - change into ansii prototypes - turn on _DIAGNOSTIC for libc (during current, to be eliminated for release builds)
approved by core@
|
1.8 | 12-Apr-2009 |
christos | branches: 1.8.6; merge libbind and bump.
|
1.7 | 21-Jun-2008 |
christos | branches: 1.7.4; 1.7.6; 1.7.8; 1.7.10; 1.7.14; updates from bind-9-5-0
|
1.6 | 30-Mar-2007 |
ghen | branches: 1.6.12; Resolve conflicts.
|
1.5 | 27-Jan-2007 |
christos | merge in resolver portion of bind-9.4.0-rc2
|
1.4 | 23-May-2004 |
christos | branches: 1.4.10; 1.4.12; one more missing weak_alias
|
1.3 | 20-May-2004 |
christos | netbsd rcsid.
|
1.2 | 20-May-2004 |
christos | - don't use irs. - h_errno is not going to be per-thread in our implementation.
|
1.1 | 20-May-2004 |
christos | branches: 1.1.1; Initial revision
|
1.1.1.4 | 12-Apr-2009 |
christos | libc portion of libbind from external/bsd/libbind
|
1.1.1.3 | 30-Mar-2007 |
ghen | Import bind 9.4.0.
|
1.1.1.2 | 27-Jan-2007 |
christos | import resolver portion of bind-9.4.0-rc2
|
1.1.1.1 | 20-May-2004 |
christos | Import libc portion of the resolver from bind9
|
1.4.12.1 | 03-Jun-2007 |
wrstuden | Catch up with now-somewhat-dated netbsd-4. These changes took longer than expected for me to actually get around to merging.
|
1.4.10.3 | 23-Jan-2011 |
bouyer | Apply patch, requested by spz in ticket 1413: dist/bind/ patch include/resolv.h patch include/arpa/nameser.h: patch lib/libc/include/isc/assertions.h: patch lib/libc/include/isc/eventlib.h patch lib/libc/isc/assertions.c: patch lib/libc/nameser/ns_parse.c patch lib/libc/resolv/herror.c: patch lib/libc/resolv/res_init.c patch lib/libc/resolv/res_mkquery.c: patch lib/libc/resolv/res_query.c patch lib/libc/resolv/res_send.c: patch usr.sbin/bind/Makefile.inc patch usr.sbin/bind/include/config.h: patch usr.sbin/bind/include/dns/code.h: patch usr.sbin/bind/include/dns/enumclass.h: patch usr.sbin/bind/include/dns/enumtype.h: patch usr.sbin/bind/include/dns/rdatastruct.h: patch usr.sbin/bind/include/isc/platform.h: patch usr.sbin/bind/include/lwres/netdb.h: patch usr.sbin/bind/include/lwres/platform.h: patch usr.sbin/bind/libisc/Makefile: patch lib/libc/inet/inet_addr.c new file
Update bind to 9.4-ESV-R4, latest version of the 9.4 line.
|
1.4.10.2 | 17-May-2007 |
jdc | branches: 1.4.10.2.2; Add missing BIND 9.4.x include file and library changes (requested by tron in ticket #662).
|
1.4.10.1 | 17-May-2007 |
jdc | Update BIND to version 9.4.1 (requested by christos in ticket #602). Thanks to tron for the patches, upgrade script and testing.
|
1.4.10.2.2.1 | 23-Jan-2011 |
bouyer | Apply patch, requested by spz in ticket 1413: dist/bind/ patch include/resolv.h patch include/arpa/nameser.h: patch lib/libc/include/isc/assertions.h: patch lib/libc/include/isc/eventlib.h patch lib/libc/isc/assertions.c: patch lib/libc/nameser/ns_parse.c patch lib/libc/resolv/herror.c: patch lib/libc/resolv/res_init.c patch lib/libc/resolv/res_mkquery.c: patch lib/libc/resolv/res_query.c patch lib/libc/resolv/res_send.c: patch usr.sbin/bind/Makefile.inc patch usr.sbin/bind/include/config.h: patch usr.sbin/bind/include/dns/code.h: patch usr.sbin/bind/include/dns/enumclass.h: patch usr.sbin/bind/include/dns/enumtype.h: patch usr.sbin/bind/include/dns/rdatastruct.h: patch usr.sbin/bind/include/isc/platform.h: patch usr.sbin/bind/include/lwres/netdb.h: patch usr.sbin/bind/include/lwres/platform.h: patch usr.sbin/bind/libisc/Makefile: patch lib/libc/inet/inet_addr.c new file
Update bind to 9.4-ESV-R4, latest version of the 9.4 line.
|
1.6.12.1 | 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.7.14.1 | 09-Jan-2011 |
riz | Apply patches (requested by spz in ticket #1517):
Update bind to 9.7.2-P3.
|
1.7.10.1 | 10-Jan-2011 |
riz | Apply patches (requested by spz in ticket #1517):
Update bind to 9.7.2-P3.
|
1.7.8.1 | 13-May-2009 |
jym | Sync with HEAD.
Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
|
1.7.6.2 | 21-Jun-2008 |
christos | updates from bind-9-5-0
|
1.7.6.1 | 21-Jun-2008 |
christos | file herror.c was added on branch christos-time_t on 2008-06-21 20:41:49 +0000
|
1.7.4.1 | 06-Jan-2011 |
riz | Apply patches (requested by spz in ticket #1517):
Update bind to 9.7.2-P3.
|
1.8.6.1 | 17-Apr-2012 |
yamt | sync with head
|
1.4 | 30-Mar-2007 |
ghen | branches: 1.4.2; 1.4.4; Re-add missing file (removed by cvs import because it was added manually by christos).
Hi Veego!
|
1.3 | 30-Mar-2007 |
ghen | Resolve conflicts.
|
1.2 | 28-Jan-2007 |
christos | we don't need <irs.h>
|
1.1 | 28-Jan-2007 |
christos | branches: 1.1.1; Initial revision
|
1.1.1.2 | 28-Jan-2007 |
christos | try again.
|
1.1.1.1 | 28-Jan-2007 |
christos | missed one more file.
|
1.4.4.2 | 03-Jun-2007 |
wrstuden | Catch up with now-somewhat-dated netbsd-4. These changes took longer than expected for me to actually get around to merging.
|
1.4.4.1 | 30-Mar-2007 |
wrstuden | file mtctxres.c was added on branch wrstuden-fixsa on 2007-06-03 17:25:58 +0000
|
1.4.2.3 | 17-May-2007 |
jdc | Add missing BIND 9.4.x include file and library changes (requested by tron in ticket #662).
|
1.4.2.2 | 17-May-2007 |
jdc | Update BIND to version 9.4.1 (requested by christos in ticket #602). Thanks to tron for the patches, upgrade script and testing.
|
1.4.2.1 | 30-Mar-2007 |
jdc | file mtctxres.c was added on branch netbsd-4 on 2007-05-17 00:43:52 +0000
|
1.14 | 24-Jan-2022 |
andvar | s/begining/beginning/ in comments and messages.
|
1.13 | 24-Feb-2015 |
christos | belated removal of the advertising clause.
|
1.12 | 13-Mar-2012 |
christos | PR/45989: Martin Husemann: lint invocation does include -w only on i386
- turn lint -w for all the platforms after fixing the lint warnings. - add _DIAGASSERTS() for casts that would assign values to types that would not fit. - change types, add casts - change into ansii prototypes - turn on _DIAGNOSTIC for libc (during current, to be eliminated for release builds)
approved by core@
|
1.11 | 17-Aug-2011 |
christos | branches: 1.11.2; fix the rest of libc mi gcc-4.5 hacks. portmasters should fix the md ones.
|
1.10 | 12-Apr-2009 |
christos | merge libbind and bump.
|
1.9 | 21-Jun-2008 |
christos | branches: 1.9.4; 1.9.6; 1.9.8; 1.9.10; 1.9.14; updates from bind-9-5-0
|
1.8 | 30-Mar-2007 |
ghen | branches: 1.8.12; Resolve conflicts.
|
1.7 | 27-Jan-2007 |
christos | merge in resolver portion of bind-9.4.0-rc2
|
1.6 | 22-May-2004 |
christos | branches: 1.6.10; 1.6.12; Provide access to the 8 symbols the bind8 resolver did, through weak aliases. 3 of them [res_send_*, and res_querydomain], were done incorrectly before...
|
1.5 | 21-May-2004 |
christos | disable weak aliases for now; the resolver header file adds __ to all the names.
|
1.4 | 21-May-2004 |
christos | namespace protection for resolver routines.
|
1.3 | 20-May-2004 |
christos | netbsd rcsid.
|
1.2 | 20-May-2004 |
christos | more lint fixes.
|
1.1 | 20-May-2004 |
christos | branches: 1.1.1; Initial revision
|
1.1.1.4 | 12-Apr-2009 |
christos | libc portion of libbind from external/bsd/libbind
|
1.1.1.3 | 30-Mar-2007 |
ghen | Import bind 9.4.0.
|
1.1.1.2 | 27-Jan-2007 |
christos | import resolver portion of bind-9.4.0-rc2
|
1.1.1.1 | 20-May-2004 |
christos | Import libc portion of the resolver from bind9
|
1.6.12.1 | 03-Jun-2007 |
wrstuden | Catch up with now-somewhat-dated netbsd-4. These changes took longer than expected for me to actually get around to merging.
|
1.6.10.2 | 17-May-2007 |
jdc | Add missing BIND 9.4.x include file and library changes (requested by tron in ticket #662).
|
1.6.10.1 | 17-May-2007 |
jdc | Update BIND to version 9.4.1 (requested by christos in ticket #602). Thanks to tron for the patches, upgrade script and testing.
|
1.8.12.1 | 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.9.14.1 | 09-Jan-2011 |
riz | Apply patches (requested by spz in ticket #1517):
Update bind to 9.7.2-P3.
|
1.9.10.1 | 10-Jan-2011 |
riz | Apply patches (requested by spz in ticket #1517):
Update bind to 9.7.2-P3.
|
1.9.8.1 | 13-May-2009 |
jym | Sync with HEAD.
Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
|
1.9.6.2 | 21-Jun-2008 |
christos | updates from bind-9-5-0
|
1.9.6.1 | 21-Jun-2008 |
christos | file res_comp.c was added on branch christos-time_t on 2008-06-21 20:41:49 +0000
|
1.9.4.1 | 06-Jan-2011 |
riz | Apply patches (requested by spz in ticket #1517):
Update bind to 9.7.2-P3.
|
1.11.2.1 | 17-Apr-2012 |
yamt | sync with head
|
1.3 | 22-Nov-2009 |
mbalmer | the doo doo doo, the daa daa daa...
|
1.2 | 28-Apr-2008 |
martin | branches: 1.2.8; Remove clause 3 and 4 from TNF licenses
|
1.1 | 09-Jun-2004 |
christos | branches: 1.1.24; Jump through taller hoops to provide binary compatibility with programs compiled with the older and shorter _res. We now use _nres internally which is the new and bigger one. We define a _res which is the old size one if COMPAT__RES is set, and then we consult selected values from this old _res in res_init(), to emulate the old behavior.
|
1.1.24.1 | 18-May-2008 |
yamt | sync with head.
|
1.2.8.2 | 28-Apr-2008 |
martin | Remove clause 3 and 4 from TNF licenses
|
1.2.8.1 | 28-Apr-2008 |
martin | file res_compat.c was added on branch christos-time_t on 2008-04-28 20:23:01 +0000
|
1.15 | 23-Jan-2024 |
christos | fix nested extern warnings
|
1.14 | 24-Oct-2009 |
christos | Add a knote to keep track when resolv.conf gets changed and re-initialize. While here fix a memory leak when calling res_vinit with an already inited res_state.
|
1.13 | 12-Apr-2009 |
christos | fix lint issues and actual bugs lint found (missing break statements)
|
1.12 | 12-Apr-2009 |
christos | merge libbind and bump.
|
1.11 | 21-Jun-2008 |
christos | branches: 1.11.4; 1.11.6; 1.11.8; 1.11.10; 1.11.14; updates from bind-9-5-0
|
1.10 | 30-Mar-2007 |
ghen | branches: 1.10.12; Resolve conflicts.
|
1.9 | 27-Jan-2007 |
christos | merge in resolver portion of bind-9.4.0-rc2
|
1.8 | 09-Jun-2004 |
christos | branches: 1.8.10; 1.8.12; Jump through taller hoops to provide binary compatibility with programs compiled with the older and shorter _res. We now use _nres internally which is the new and bigger one. We define a _res which is the old size one if COMPAT__RES is set, and then we consult selected values from this old _res in res_init(), to emulate the old behavior.
|
1.7 | 22-May-2004 |
christos | Provide access to the 8 symbols the bind8 resolver did, through weak aliases. 3 of them [res_send_*, and res_querydomain], were done incorrectly before...
|
1.6 | 21-May-2004 |
christos | disable weak aliases for now; the resolver header file adds __ to all the names.
|
1.5 | 21-May-2004 |
christos | namespace protection for resolver routines.
|
1.4 | 20-May-2004 |
christos | netbsd rcsid.
|
1.3 | 20-May-2004 |
christos | more lint fixes.
|
1.2 | 20-May-2004 |
christos | - res_ourserver_p prototype was inconsistent (thanks lint) - protect update functions with _LIBRESOLV - add res_opt() to mirror res_nopt
|
1.1 | 20-May-2004 |
christos | branches: 1.1.1; Initial revision
|
1.1.1.4 | 12-Apr-2009 |
christos | libc portion of libbind from external/bsd/libbind
|
1.1.1.3 | 30-Mar-2007 |
ghen | Import bind 9.4.0.
|
1.1.1.2 | 27-Jan-2007 |
christos | import resolver portion of bind-9.4.0-rc2
|
1.1.1.1 | 20-May-2004 |
christos | Import libc portion of the resolver from bind9
|
1.8.12.1 | 03-Jun-2007 |
wrstuden | Catch up with now-somewhat-dated netbsd-4. These changes took longer than expected for me to actually get around to merging.
|
1.8.10.2 | 17-May-2007 |
jdc | Add missing BIND 9.4.x include file and library changes (requested by tron in ticket #662).
|
1.8.10.1 | 17-May-2007 |
jdc | Update BIND to version 9.4.1 (requested by christos in ticket #602). Thanks to tron for the patches, upgrade script and testing.
|
1.10.12.1 | 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.11.14.1 | 09-Jan-2011 |
riz | Apply patches (requested by spz in ticket #1517):
Update bind to 9.7.2-P3.
|
1.11.10.1 | 10-Jan-2011 |
riz | Apply patches (requested by spz in ticket #1517):
Update bind to 9.7.2-P3.
|
1.11.8.1 | 13-May-2009 |
jym | Sync with HEAD.
Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
|
1.11.6.2 | 21-Jun-2008 |
christos | updates from bind-9-5-0
|
1.11.6.1 | 21-Jun-2008 |
christos | file res_data.c was added on branch christos-time_t on 2008-06-21 20:41:49 +0000
|
1.11.4.1 | 06-Jan-2011 |
riz | Apply patches (requested by spz in ticket #1517):
Update bind to 9.7.2-P3.
|
1.18 | 09-Aug-2023 |
riastradh | libc/resolv/res_debug.c: Minor whitespace fixes.
|
1.17 | 01-Aug-2023 |
mrg | convert explicit length check before unchecked snprintf() with just a overflow checked snprintf(). for res_debug.c and res_query.c, convert from sprintf() to snprintf().
tested scp and rcp fail properly with too-long paths. tested getaddrinfo fails as expected for too-long domains. tested dig and ping for similar (res_debug.c/res_query.c). created a temporary fs with quotas to test edquota with a long EDITOR. did not test ypserv directly, but it's the same pattern.
avoids GCC 12 snprintf() warnings, and reduces total code size.
|
1.16 | 16-Sep-2021 |
andvar | fix various typos, mainly in comments.
|
1.15 | 13-Dec-2018 |
maya | Remove unused macro
|
1.14 | 24-Feb-2015 |
christos | branches: 1.14.14; 1.14.16; belated removal of the advertising clause.
|
1.13 | 25-Jun-2012 |
abs | Update old-style definitions to ANSI, remove a couple of register definitions along the way. Fixed gcc 4.1 build (thank you vax)
|
1.12 | 13-Mar-2012 |
christos | PR/45989: Martin Husemann: lint invocation does include -w only on i386
- turn lint -w for all the platforms after fixing the lint warnings. - add _DIAGASSERTS() for casts that would assign values to types that would not fit. - change types, add casts - change into ansii prototypes - turn on _DIAGNOSTIC for libc (during current, to be eliminated for release builds)
approved by core@
|
1.11 | 12-Apr-2009 |
christos | branches: 1.11.6; merge libbind and bump.
|
1.10 | 21-Jun-2008 |
christos | branches: 1.10.4; 1.10.6; 1.10.8; 1.10.10; 1.10.14; updates from bind-9-5-0
|
1.9 | 30-Mar-2007 |
ghen | branches: 1.9.12; Resolve conflicts.
|
1.8 | 27-Jan-2007 |
christos | merge in resolver portion of bind-9.4.0-rc2
|
1.7 | 07-Nov-2004 |
christos | branches: 1.7.10; 1.7.12; resolve conflicts.
|
1.6 | 21-May-2004 |
christos | disable weak aliases for now; the resolver header file adds __ to all the names.
|
1.5 | 21-May-2004 |
christos | namespace protection for resolver routines.
|
1.4 | 20-May-2004 |
christos | netbsd rcsid.
|
1.3 | 20-May-2004 |
christos | more lint fixes.
|
1.2 | 20-May-2004 |
christos | - add casts to silence lint - add missing prototype - rename variables to avoid hiding globals
|
1.1 | 20-May-2004 |
christos | branches: 1.1.1; Initial revision
|
1.1.1.5 | 12-Apr-2009 |
christos | libc portion of libbind from external/bsd/libbind
|
1.1.1.4 | 30-Mar-2007 |
ghen | Import bind 9.4.0.
|
1.1.1.3 | 27-Jan-2007 |
christos | import resolver portion of bind-9.4.0-rc2
|
1.1.1.2 | 07-Nov-2004 |
christos | Re-import bind-9-3-0
|
1.1.1.1 | 20-May-2004 |
christos | Import libc portion of the resolver from bind9
|
1.7.12.1 | 03-Jun-2007 |
wrstuden | Catch up with now-somewhat-dated netbsd-4. These changes took longer than expected for me to actually get around to merging.
|
1.7.10.2 | 17-May-2007 |
jdc | Add missing BIND 9.4.x include file and library changes (requested by tron in ticket #662).
|
1.7.10.1 | 17-May-2007 |
jdc | Update BIND to version 9.4.1 (requested by christos in ticket #602). Thanks to tron for the patches, upgrade script and testing.
|
1.9.12.1 | 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.10.14.1 | 09-Jan-2011 |
riz | Apply patches (requested by spz in ticket #1517):
Update bind to 9.7.2-P3.
|
1.10.10.1 | 10-Jan-2011 |
riz | Apply patches (requested by spz in ticket #1517):
Update bind to 9.7.2-P3.
|
1.10.8.1 | 13-May-2009 |
jym | Sync with HEAD.
Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
|
1.10.6.2 | 21-Jun-2008 |
christos | updates from bind-9-5-0
|
1.10.6.1 | 21-Jun-2008 |
christos | file res_debug.c was added on branch christos-time_t on 2008-06-21 20:41:49 +0000
|
1.10.4.1 | 06-Jan-2011 |
riz | Apply patches (requested by spz in ticket #1517):
Update bind to 9.7.2-P3.
|
1.11.6.2 | 30-Oct-2012 |
yamt | sync with head
|
1.11.6.1 | 17-Apr-2012 |
yamt | sync with head
|
1.14.16.1 | 10-Jun-2019 |
christos | Sync with HEAD
|
1.14.14.1 | 26-Dec-2018 |
pgoyette | Sync with HEAD, resolve a few conflicts
|
1.2 | 13-Mar-2012 |
christos | PR/45989: Martin Husemann: lint invocation does include -w only on i386
- turn lint -w for all the platforms after fixing the lint warnings. - add _DIAGASSERTS() for casts that would assign values to types that would not fit. - change types, add casts - change into ansii prototypes - turn on _DIAGNOSTIC for libc (during current, to be eliminated for release builds)
approved by core@
|
1.1 | 20-May-2004 |
christos | branches: 1.1.1; Initial revision
|
1.1.1.4 | 12-Apr-2009 |
christos | branches: 1.1.1.4.6; libc portion of libbind from external/bsd/libbind
|
1.1.1.3 | 30-Mar-2007 |
ghen | branches: 1.1.1.3.18; 1.1.1.3.22; 1.1.1.3.24; 1.1.1.3.28; Import bind 9.4.0.
|
1.1.1.2 | 27-Jan-2007 |
christos | import resolver portion of bind-9.4.0-rc2
|
1.1.1.1 | 20-May-2004 |
christos | branches: 1.1.1.1.10; 1.1.1.1.12; Import libc portion of the resolver from bind9
|
1.1.1.4.6.1 | 17-Apr-2012 |
yamt | sync with head
|
1.1.1.3.28.1 | 09-Jan-2011 |
riz | Apply patches (requested by spz in ticket #1517):
Update bind to 9.7.2-P3.
|
1.1.1.3.24.1 | 10-Jan-2011 |
riz | Apply patches (requested by spz in ticket #1517):
Update bind to 9.7.2-P3.
|
1.1.1.3.22.1 | 13-May-2009 |
jym | Sync with HEAD.
Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
|
1.1.1.3.18.1 | 06-Jan-2011 |
riz | Apply patches (requested by spz in ticket #1517):
Update bind to 9.7.2-P3.
|
1.1.1.1.12.1 | 03-Jun-2007 |
wrstuden | Catch up with now-somewhat-dated netbsd-4. These changes took longer than expected for me to actually get around to merging.
|
1.1.1.1.10.2 | 17-May-2007 |
jdc | Add missing BIND 9.4.x include file and library changes (requested by tron in ticket #662).
|
1.1.1.1.10.1 | 17-May-2007 |
jdc | Update BIND to version 9.4.1 (requested by christos in ticket #602). Thanks to tron for the patches, upgrade script and testing.
|
1.32 | 30-Sep-2021 |
christos | kqueue(2) file descriptors are not inherited across fork(2). A process that that calls getaddrinfo(3) will end up cacheing the kqueue(2) file descriptor in its res_state structure. If that process fork(2)s and calls getaddrinfo(3) again might end up closing that cached file descriptor which can end up pointing to a different file object than the kqueue(2) original one. To fix this, associate the kqueue(2) file descriptor with the process id that created it, and don't close(2) it if it is being closed from a different process. An alternative fix would be to attach the resolver to a fork(2) hook to cleanup the res_state, but handling it internally in the resolver is less intrusive. This was discovered by Dima Veselov when using the FreeRADIUS package.
|
1.31 | 19-Apr-2017 |
christos | branches: 1.31.14; F_DUPFD* needs an argument (minfd) found by jmcneill
|
1.30 | 24-Feb-2015 |
christos | branches: 1.30.2; 1.30.4; belated removal of the advertising clause.
|
1.29 | 16-Sep-2014 |
christos | Mark the dup of the resolv fd for close on exec.
|
1.28 | 08-Jan-2014 |
christos | provide a patchable __res_conf_name for testing purposes.
|
1.27 | 09-Dec-2013 |
wiz | Fix typo ("then" instead of "than")
|
1.26 | 09-Sep-2012 |
christos | branches: 1.26.2; add a check-names option, now that the default is no-check-names
|
1.25 | 20-Mar-2012 |
matt | Use C89 Prototypes. Remove use of __P
|
1.24 | 13-Mar-2012 |
christos | PR/45989: Martin Husemann: lint invocation does include -w only on i386
- turn lint -w for all the platforms after fixing the lint warnings. - add _DIAGASSERTS() for casts that would assign values to types that would not fit. - change types, add casts - change into ansii prototypes - turn on _DIAGNOSTIC for libc (during current, to be eliminated for release builds)
approved by core@
|
1.23 | 15-Oct-2011 |
christos | branches: 1.23.2; close on exec fixes: - open + fcntl -> open O_CLOEXEC - configuration database file descriptors that can stay open are now opened fopen(db, "re")
|
1.22 | 24-Oct-2009 |
christos | expose res_check.
|
1.21 | 24-Oct-2009 |
christos | Add a knote to keep track when resolv.conf gets changed and re-initialize. While here fix a memory leak when calling res_vinit with an already inited res_state.
|
1.20 | 20-Apr-2009 |
christos | Bring back binary compatibility with the previous version of the resolver. There was no room to allocate 16 bytes for _rnd in the struct in the _LP64 case, so we dynamically allocate now. Also put the _rnd field last, so that we are bitwise compatible too. Now of course we've run out of space, so next time will need to perform more evil tricks to fit.
|
1.19 | 16-Apr-2009 |
christos | we are not guaranteed that the ext pointer is going to be null at this point so don't attempt to free.
|
1.18 | 12-Apr-2009 |
christos | fix lint issues and actual bugs lint found (missing break statements)
|
1.17 | 12-Apr-2009 |
christos | merge libbind and bump.
|
1.16 | 11-Jan-2009 |
christos | branches: 1.16.2; merge christos-time_t
|
1.15 | 21-Jun-2008 |
christos | branches: 1.15.4; 1.15.6; 1.15.8; 1.15.12; - protect DEBUG again because we should be able to set it from the Makefile - add a missing cast to pacify lint.
|
1.14 | 21-Jun-2008 |
christos | updates from bind-9-5-0
|
1.13 | 30-Mar-2007 |
ghen | branches: 1.13.12; Resolve conflicts.
|
1.12 | 09-Feb-2007 |
christos | Only try free-ing a version of res if it is not supposed to be pre-inited like before. Fixes issues with programs passing random uninitialized data as res_state.
|
1.11 | 28-Jan-2007 |
christos | Don't check for ext being NULL to destroy the res_state. Instead check the option bits like we did before.
|
1.10 | 27-Jan-2007 |
christos | Fix minor compilation issues.
|
1.9 | 27-Jan-2007 |
christos | merge in resolver portion of bind-9.4.0-rc2
|
1.8 | 19-Mar-2006 |
christos | branches: 1.8.4; 1.8.6; Coverity CID 618: Comment out dead code.
|
1.7 | 24-Jan-2006 |
christos | don't re-define DEBUG
|
1.6 | 15-Sep-2005 |
tsarna | Rest of fix for PR#31184: getaddrinfo() now honors resolv.conf sortlist directive for dns answers.
Also, unifdef the RESLVSORT (non-)option sillyness.
Reviewed by christos.
|
1.5 | 21-May-2004 |
christos | disable weak aliases for now; the resolver header file adds __ to all the names.
|
1.4 | 21-May-2004 |
christos | namespace protection for resolver routines.
|
1.3 | 20-May-2004 |
christos | netbsd rcsid.
|
1.2 | 20-May-2004 |
christos | add casts to silence lint.
|
1.1 | 20-May-2004 |
christos | branches: 1.1.1; Initial revision
|
1.1.1.4 | 12-Apr-2009 |
christos | libc portion of libbind from external/bsd/libbind
|
1.1.1.3 | 30-Mar-2007 |
ghen | Import bind 9.4.0.
|
1.1.1.2 | 27-Jan-2007 |
christos | import resolver portion of bind-9.4.0-rc2
|
1.1.1.1 | 20-May-2004 |
christos | Import libc portion of the resolver from bind9
|
1.8.6.1 | 03-Jun-2007 |
wrstuden | Catch up with now-somewhat-dated netbsd-4. These changes took longer than expected for me to actually get around to merging.
|
1.8.4.4 | 09-May-2011 |
bouyer | Pull up following revision(s) (requested by taca in ticket #1429): lib/libc/resolv/res_init.c: revisions 1.11, 1.12 via patch Don't check for ext being NULL to destroy the res_state. Instead check the option bits like we did before. Only try free-ing a version of res if it is not supposed to be pre-inited like before. Fixes issues with programs passing random uninitialized data as res_state.
|
1.8.4.3 | 23-Jan-2011 |
bouyer | Apply patch, requested by spz in ticket 1413: dist/bind/ patch include/resolv.h patch include/arpa/nameser.h: patch lib/libc/include/isc/assertions.h: patch lib/libc/include/isc/eventlib.h patch lib/libc/isc/assertions.c: patch lib/libc/nameser/ns_parse.c patch lib/libc/resolv/herror.c: patch lib/libc/resolv/res_init.c patch lib/libc/resolv/res_mkquery.c: patch lib/libc/resolv/res_query.c patch lib/libc/resolv/res_send.c: patch usr.sbin/bind/Makefile.inc patch usr.sbin/bind/include/config.h: patch usr.sbin/bind/include/dns/code.h: patch usr.sbin/bind/include/dns/enumclass.h: patch usr.sbin/bind/include/dns/enumtype.h: patch usr.sbin/bind/include/dns/rdatastruct.h: patch usr.sbin/bind/include/isc/platform.h: patch usr.sbin/bind/include/lwres/netdb.h: patch usr.sbin/bind/include/lwres/platform.h: patch usr.sbin/bind/libisc/Makefile: patch lib/libc/inet/inet_addr.c new file
Update bind to 9.4-ESV-R4, latest version of the 9.4 line.
|
1.8.4.2 | 17-May-2007 |
jdc | branches: 1.8.4.2.2; Add missing BIND 9.4.x include file and library changes (requested by tron in ticket #662).
|
1.8.4.1 | 17-May-2007 |
jdc | Update BIND to version 9.4.1 (requested by christos in ticket #602). Thanks to tron for the patches, upgrade script and testing.
|
1.8.4.2.2.1 | 23-Jan-2011 |
bouyer | Apply patch, requested by spz in ticket 1413: dist/bind/ patch include/resolv.h patch include/arpa/nameser.h: patch lib/libc/include/isc/assertions.h: patch lib/libc/include/isc/eventlib.h patch lib/libc/isc/assertions.c: patch lib/libc/nameser/ns_parse.c patch lib/libc/resolv/herror.c: patch lib/libc/resolv/res_init.c patch lib/libc/resolv/res_mkquery.c: patch lib/libc/resolv/res_query.c patch lib/libc/resolv/res_send.c: patch usr.sbin/bind/Makefile.inc patch usr.sbin/bind/include/config.h: patch usr.sbin/bind/include/dns/code.h: patch usr.sbin/bind/include/dns/enumclass.h: patch usr.sbin/bind/include/dns/enumtype.h: patch usr.sbin/bind/include/dns/rdatastruct.h: patch usr.sbin/bind/include/isc/platform.h: patch usr.sbin/bind/include/lwres/netdb.h: patch usr.sbin/bind/include/lwres/platform.h: patch usr.sbin/bind/libisc/Makefile: patch lib/libc/inet/inet_addr.c new file
Update bind to 9.4-ESV-R4, latest version of the 9.4 line.
|
1.13.12.1 | 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.15.12.1 | 09-Jan-2011 |
riz | Apply patches (requested by spz in ticket #1517):
Update bind to 9.7.2-P3.
|
1.15.8.1 | 10-Jan-2011 |
riz | Apply patches (requested by spz in ticket #1517):
Update bind to 9.7.2-P3.
|
1.15.6.2 | 08-Nov-2008 |
christos | time_t changes
|
1.15.6.1 | 21-Jun-2008 |
christos | file res_init.c was added on branch christos-time_t on 2008-11-08 21:45:38 +0000
|
1.15.4.1 | 06-Jan-2011 |
riz | Apply patches (requested by spz in ticket #1517):
Update bind to 9.7.2-P3.
|
1.16.2.1 | 13-May-2009 |
jym | Sync with HEAD.
Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
|
1.23.2.3 | 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
1.23.2.2 | 30-Oct-2012 |
yamt | sync with head
|
1.23.2.1 | 17-Apr-2012 |
yamt | sync with head
|
1.26.2.1 | 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.30.4.1 | 21-Apr-2017 |
bouyer | Sync with HEAD
|
1.30.2.1 | 26-Apr-2017 |
pgoyette | Sync with HEAD
|
1.31.14.1 | 05-Oct-2021 |
martin | Pull up following revision(s) (requested by christos in ticket #1356):
lib/libc/resolv/res_init.c: revision 1.32 lib/libc/resolv/res_private.h: revision 1.4
kqueue(2) file descriptors are not inherited across fork(2). A process that that calls getaddrinfo(3) will end up cacheing the kqueue(2) file descriptor in its res_state structure. If that process fork(2)s and calls getaddrinfo(3) again might end up closing that cached file descriptor which can end up pointing to a different file object than the kqueue(2) original one. To fix this, associate the kqueue(2) file descriptor with the process id that created it, and don't close(2) it if it is being closed from a different process.
An alternative fix would be to attach the resolver to a fork(2) hook to cleanup the res_state, but handling it internally in the resolver is less intrusive. This was discovered by Dima Veselov when using the FreeRADIUS package.
|
1.17 | 10-Feb-2024 |
andvar | s/psuedo/pseudo/ in comments.
|
1.16 | 28-Sep-2017 |
christos | PR/52578: Benjamin M. Schwartz Set the AD bit when DNSSEC is enabled (RFC 6840 Section 5.7).
|
1.15 | 24-Feb-2015 |
christos | branches: 1.15.8; belated removal of the advertising clause.
|
1.14 | 11-Nov-2014 |
christos | PR/48475: YAMAGUCHI Takanori: EDNS option broken with unbound. struct querybuf in net/gethnamaddr.c defines MAXPACKET to 64K. This in turn gets passed down until it reached res_nopt(..., answer, anslen), where the size of the buffer must fit in 16 bits. Unfortunately we end up being one more than the max so we end up sending a 0 as the size and unbound does not like that. Instead we clip now to 64K - 1, and everyone is happy. XXX: Pullup to 7.
|
1.13 | 13-Mar-2012 |
christos | branches: 1.13.10; PR/45989: Martin Husemann: lint invocation does include -w only on i386
- turn lint -w for all the platforms after fixing the lint warnings. - add _DIAGASSERTS() for casts that would assign values to types that would not fit. - change types, add casts - change into ansii prototypes - turn on _DIAGNOSTIC for libc (during current, to be eliminated for release builds)
approved by core@
|
1.12 | 12-Apr-2009 |
christos | branches: 1.12.6; 1.12.8; fix lint issues and actual bugs lint found (missing break statements)
|
1.11 | 12-Apr-2009 |
christos | merge libbind and bump.
|
1.10 | 21-Jun-2008 |
christos | branches: 1.10.4; 1.10.6; 1.10.8; 1.10.10; 1.10.14; - protect DEBUG again because we should be able to set it from the Makefile - add a missing cast to pacify lint.
|
1.9 | 21-Jun-2008 |
christos | updates from bind-9-5-0
|
1.8 | 30-Mar-2007 |
ghen | branches: 1.8.12; Resolve conflicts.
|
1.7 | 27-Jan-2007 |
christos | merge in resolver portion of bind-9.4.0-rc2
|
1.6 | 24-Jan-2006 |
christos | branches: 1.6.4; 1.6.6; don't re-define DEBUG
|
1.5 | 21-May-2004 |
christos | disable weak aliases for now; the resolver header file adds __ to all the names.
|
1.4 | 21-May-2004 |
christos | namespace protection for resolver routines.
|
1.3 | 20-May-2004 |
christos | netbsd rcsid.
|
1.2 | 20-May-2004 |
christos | silence lint.
|
1.1 | 20-May-2004 |
christos | branches: 1.1.1; Initial revision
|
1.1.1.4 | 12-Apr-2009 |
christos | libc portion of libbind from external/bsd/libbind
|
1.1.1.3 | 30-Mar-2007 |
ghen | Import bind 9.4.0.
|
1.1.1.2 | 27-Jan-2007 |
christos | import resolver portion of bind-9.4.0-rc2
|
1.1.1.1 | 20-May-2004 |
christos | Import libc portion of the resolver from bind9
|
1.6.6.1 | 03-Jun-2007 |
wrstuden | Catch up with now-somewhat-dated netbsd-4. These changes took longer than expected for me to actually get around to merging.
|
1.6.4.3 | 23-Jan-2011 |
bouyer | Apply patch, requested by spz in ticket 1413: dist/bind/ patch include/resolv.h patch include/arpa/nameser.h: patch lib/libc/include/isc/assertions.h: patch lib/libc/include/isc/eventlib.h patch lib/libc/isc/assertions.c: patch lib/libc/nameser/ns_parse.c patch lib/libc/resolv/herror.c: patch lib/libc/resolv/res_init.c patch lib/libc/resolv/res_mkquery.c: patch lib/libc/resolv/res_query.c patch lib/libc/resolv/res_send.c: patch usr.sbin/bind/Makefile.inc patch usr.sbin/bind/include/config.h: patch usr.sbin/bind/include/dns/code.h: patch usr.sbin/bind/include/dns/enumclass.h: patch usr.sbin/bind/include/dns/enumtype.h: patch usr.sbin/bind/include/dns/rdatastruct.h: patch usr.sbin/bind/include/isc/platform.h: patch usr.sbin/bind/include/lwres/netdb.h: patch usr.sbin/bind/include/lwres/platform.h: patch usr.sbin/bind/libisc/Makefile: patch lib/libc/inet/inet_addr.c new file
Update bind to 9.4-ESV-R4, latest version of the 9.4 line.
|
1.6.4.2 | 17-May-2007 |
jdc | branches: 1.6.4.2.2; Add missing BIND 9.4.x include file and library changes (requested by tron in ticket #662).
|
1.6.4.1 | 17-May-2007 |
jdc | Update BIND to version 9.4.1 (requested by christos in ticket #602). Thanks to tron for the patches, upgrade script and testing.
|
1.6.4.2.2.1 | 23-Jan-2011 |
bouyer | Apply patch, requested by spz in ticket 1413: dist/bind/ patch include/resolv.h patch include/arpa/nameser.h: patch lib/libc/include/isc/assertions.h: patch lib/libc/include/isc/eventlib.h patch lib/libc/isc/assertions.c: patch lib/libc/nameser/ns_parse.c patch lib/libc/resolv/herror.c: patch lib/libc/resolv/res_init.c patch lib/libc/resolv/res_mkquery.c: patch lib/libc/resolv/res_query.c patch lib/libc/resolv/res_send.c: patch usr.sbin/bind/Makefile.inc patch usr.sbin/bind/include/config.h: patch usr.sbin/bind/include/dns/code.h: patch usr.sbin/bind/include/dns/enumclass.h: patch usr.sbin/bind/include/dns/enumtype.h: patch usr.sbin/bind/include/dns/rdatastruct.h: patch usr.sbin/bind/include/isc/platform.h: patch usr.sbin/bind/include/lwres/netdb.h: patch usr.sbin/bind/include/lwres/platform.h: patch usr.sbin/bind/libisc/Makefile: patch lib/libc/inet/inet_addr.c new file
Update bind to 9.4-ESV-R4, latest version of the 9.4 line.
|
1.8.12.1 | 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.10.14.1 | 09-Jan-2011 |
riz | Apply patches (requested by spz in ticket #1517):
Update bind to 9.7.2-P3.
|
1.10.10.1 | 10-Jan-2011 |
riz | Apply patches (requested by spz in ticket #1517):
Update bind to 9.7.2-P3.
|
1.10.8.1 | 13-May-2009 |
jym | Sync with HEAD.
Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
|
1.10.6.2 | 21-Jun-2008 |
christos | - protect DEBUG again because we should be able to set it from the Makefile - add a missing cast to pacify lint.
|
1.10.6.1 | 21-Jun-2008 |
christos | file res_mkquery.c was added on branch christos-time_t on 2008-06-21 23:37:54 +0000
|
1.10.4.2 | 20-Nov-2014 |
sborrill | Pull up the following revisions(s) (requested by christos in ticket #1932): lib/libc/resolv/res_mkquery.c: revision 1.14
Fix EDNS option being broken with unbound by clipping MAXPACKET to 64K - 1. Addresses PR/48475
|
1.10.4.1 | 06-Jan-2011 |
riz | Apply patches (requested by spz in ticket #1517):
Update bind to 9.7.2-P3.
|
1.12.8.1 | 02-Dec-2014 |
snj | Pull up following revision(s) (requested by pettai in ticket #1191): lib/libc/resolv/res_mkquery.c: revision 1.14 PR/48475: YAMAGUCHI Takanori: EDNS option broken with unbound. struct querybuf in net/gethnamaddr.c defines MAXPACKET to 64K. This in turn gets passed down until it reached res_nopt(..., answer, anslen), where the size of the buffer must fit in 16 bits. Unfortunately we end up being one more than the max so we end up sending a 0 as the size and unbound does not like that. Instead we clip now to 64K - 1, and everyone is happy.
|
1.12.6.1 | 17-Apr-2012 |
yamt | sync with head
|
1.13.10.1 | 12-Nov-2014 |
martin | Pull up following revision(s) (requested by christos in ticket #213): lib/libc/resolv/res_mkquery.c: revision 1.14 PR/48475: YAMAGUCHI Takanori: EDNS option broken with unbound. struct querybuf in net/gethnamaddr.c defines MAXPACKET to 64K. This in turn gets passed down until it reached res_nopt(..., answer, anslen), where the size of the buffer must fit in 16 bits. Unfortunately we end up being one more than the max so we end up sending a 0 as the size and unbound does not like that. Instead we clip now to 64K - 1, and everyone is happy. XXX: Pullup to 7.
|
1.15.8.1 | 25-Oct-2017 |
snj | Pull up following revision(s) (requested by jdolecek in ticket #317): lib/libc/net/getaddrinfo.c: revision 1.116 lib/libc/resolv/res_mkquery.c: revision 1.16 PR/52578: Benjamin M. Schwartz Set the AD bit when DNSSEC is enabled (RFC 6840 Section 5.7). -- PR/52578: Benjamin M. Schwartz: sync the internal copy of res_nquery for getaddrinfo, with the real version so that we handle EDNS fallback.
|
1.5 | 23-Jan-2024 |
christos | fix nested extern warnings
|
1.4 | 30-Sep-2021 |
christos | kqueue(2) file descriptors are not inherited across fork(2). A process that that calls getaddrinfo(3) will end up cacheing the kqueue(2) file descriptor in its res_state structure. If that process fork(2)s and calls getaddrinfo(3) again might end up closing that cached file descriptor which can end up pointing to a different file object than the kqueue(2) original one. To fix this, associate the kqueue(2) file descriptor with the process id that created it, and don't close(2) it if it is being closed from a different process. An alternative fix would be to attach the resolver to a fork(2) hook to cleanup the res_state, but handling it internally in the resolver is less intrusive. This was discovered by Dima Veselov when using the FreeRADIUS package.
|
1.3 | 24-Oct-2009 |
christos | branches: 1.3.48; expose res_check.
|
1.2 | 24-Oct-2009 |
christos | Add a knote to keep track when resolv.conf gets changed and re-initialize. While here fix a memory leak when calling res_vinit with an already inited res_state.
|
1.1 | 20-May-2004 |
christos | branches: 1.1.1; Initial revision
|
1.1.1.4 | 12-Apr-2009 |
christos | libc portion of libbind from external/bsd/libbind
|
1.1.1.3 | 30-Mar-2007 |
ghen | branches: 1.1.1.3.18; 1.1.1.3.22; 1.1.1.3.24; 1.1.1.3.28; Import bind 9.4.0.
|
1.1.1.2 | 27-Jan-2007 |
christos | import resolver portion of bind-9.4.0-rc2
|
1.1.1.1 | 20-May-2004 |
christos | branches: 1.1.1.1.10; 1.1.1.1.12; Import libc portion of the resolver from bind9
|
1.1.1.3.28.1 | 09-Jan-2011 |
riz | Apply patches (requested by spz in ticket #1517):
Update bind to 9.7.2-P3.
|
1.1.1.3.24.1 | 10-Jan-2011 |
riz | Apply patches (requested by spz in ticket #1517):
Update bind to 9.7.2-P3.
|
1.1.1.3.22.1 | 13-May-2009 |
jym | Sync with HEAD.
Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
|
1.1.1.3.18.1 | 06-Jan-2011 |
riz | Apply patches (requested by spz in ticket #1517):
Update bind to 9.7.2-P3.
|
1.1.1.1.12.1 | 03-Jun-2007 |
wrstuden | Catch up with now-somewhat-dated netbsd-4. These changes took longer than expected for me to actually get around to merging.
|
1.1.1.1.10.2 | 17-May-2007 |
jdc | Add missing BIND 9.4.x include file and library changes (requested by tron in ticket #662).
|
1.1.1.1.10.1 | 17-May-2007 |
jdc | Update BIND to version 9.4.1 (requested by christos in ticket #602). Thanks to tron for the patches, upgrade script and testing.
|
1.3.48.1 | 05-Oct-2021 |
martin | Pull up following revision(s) (requested by christos in ticket #1356):
lib/libc/resolv/res_init.c: revision 1.32 lib/libc/resolv/res_private.h: revision 1.4
kqueue(2) file descriptors are not inherited across fork(2). A process that that calls getaddrinfo(3) will end up cacheing the kqueue(2) file descriptor in its res_state structure. If that process fork(2)s and calls getaddrinfo(3) again might end up closing that cached file descriptor which can end up pointing to a different file object than the kqueue(2) original one. To fix this, associate the kqueue(2) file descriptor with the process id that created it, and don't close(2) it if it is being closed from a different process.
An alternative fix would be to attach the resolver to a fork(2) hook to cleanup the res_state, but handling it internally in the resolver is less intrusive. This was discovered by Dima Veselov when using the FreeRADIUS package.
|
1.18 | 24-Aug-2024 |
christos | Not a bug, but avoid using a possibly negative index anyway (CID-603941)
|
1.17 | 01-Aug-2023 |
mrg | branches: 1.17.2; convert explicit length check before unchecked snprintf() with just a overflow checked snprintf(). for res_debug.c and res_query.c, convert from sprintf() to snprintf().
tested scp and rcp fail properly with too-long paths. tested getaddrinfo fails as expected for too-long domains. tested dig and ping for similar (res_debug.c/res_query.c). created a temporary fs with quotas to test edquota with a long EDITOR. did not test ypserv directly, but it's the same pattern.
avoids GCC 12 snprintf() warnings, and reduces total code size.
|
1.16 | 24-Feb-2015 |
christos | belated removal of the advertising clause.
|
1.15 | 16-Sep-2014 |
christos | close on exec hostaliases
|
1.14 | 13-Mar-2012 |
christos | PR/45989: Martin Husemann: lint invocation does include -w only on i386
- turn lint -w for all the platforms after fixing the lint warnings. - add _DIAGASSERTS() for casts that would assign values to types that would not fit. - change types, add casts - change into ansii prototypes - turn on _DIAGNOSTIC for libc (during current, to be eliminated for release builds)
approved by core@
|
1.13 | 24-Oct-2009 |
christos | branches: 1.13.6; don't read hostaliases using unbuffered reads. there is no security benefit.
|
1.12 | 12-Apr-2009 |
christos | merge libbind and bump.
|
1.11 | 21-Jun-2008 |
christos | branches: 1.11.4; 1.11.6; 1.11.8; 1.11.10; 1.11.14; - protect DEBUG again because we should be able to set it from the Makefile - add a missing cast to pacify lint.
|
1.10 | 21-Jun-2008 |
christos | updates from bind-9-5-0
|
1.9 | 30-Mar-2007 |
ghen | branches: 1.9.12; Resolve conflicts.
|
1.8 | 27-Jan-2007 |
christos | merge in resolver portion of bind-9.4.0-rc2
|
1.7 | 24-Jan-2006 |
christos | branches: 1.7.4; 1.7.6; don't re-define DEBUG
|
1.6 | 25-Sep-2004 |
christos | Put back issetugid() check for hostaliases. XXX: this is suboptimal, It would be better if we propelry checked for access.
|
1.5 | 21-May-2004 |
christos | disable weak aliases for now; the resolver header file adds __ to all the names.
|
1.4 | 21-May-2004 |
christos | namespace protection for resolver routines.
|
1.3 | 20-May-2004 |
christos | netbsd rcsid.
|
1.2 | 20-May-2004 |
christos | add casts to silence lint.
|
1.1 | 20-May-2004 |
christos | branches: 1.1.1; Initial revision
|
1.1.1.4 | 12-Apr-2009 |
christos | libc portion of libbind from external/bsd/libbind
|
1.1.1.3 | 30-Mar-2007 |
ghen | Import bind 9.4.0.
|
1.1.1.2 | 27-Jan-2007 |
christos | import resolver portion of bind-9.4.0-rc2
|
1.1.1.1 | 20-May-2004 |
christos | Import libc portion of the resolver from bind9
|
1.7.6.1 | 03-Jun-2007 |
wrstuden | Catch up with now-somewhat-dated netbsd-4. These changes took longer than expected for me to actually get around to merging.
|
1.7.4.3 | 23-Jan-2011 |
bouyer | Apply patch, requested by spz in ticket 1413: dist/bind/ patch include/resolv.h patch include/arpa/nameser.h: patch lib/libc/include/isc/assertions.h: patch lib/libc/include/isc/eventlib.h patch lib/libc/isc/assertions.c: patch lib/libc/nameser/ns_parse.c patch lib/libc/resolv/herror.c: patch lib/libc/resolv/res_init.c patch lib/libc/resolv/res_mkquery.c: patch lib/libc/resolv/res_query.c patch lib/libc/resolv/res_send.c: patch usr.sbin/bind/Makefile.inc patch usr.sbin/bind/include/config.h: patch usr.sbin/bind/include/dns/code.h: patch usr.sbin/bind/include/dns/enumclass.h: patch usr.sbin/bind/include/dns/enumtype.h: patch usr.sbin/bind/include/dns/rdatastruct.h: patch usr.sbin/bind/include/isc/platform.h: patch usr.sbin/bind/include/lwres/netdb.h: patch usr.sbin/bind/include/lwres/platform.h: patch usr.sbin/bind/libisc/Makefile: patch lib/libc/inet/inet_addr.c new file
Update bind to 9.4-ESV-R4, latest version of the 9.4 line.
|
1.7.4.2 | 17-May-2007 |
jdc | branches: 1.7.4.2.2; Add missing BIND 9.4.x include file and library changes (requested by tron in ticket #662).
|
1.7.4.1 | 17-May-2007 |
jdc | Update BIND to version 9.4.1 (requested by christos in ticket #602). Thanks to tron for the patches, upgrade script and testing.
|
1.7.4.2.2.1 | 23-Jan-2011 |
bouyer | Apply patch, requested by spz in ticket 1413: dist/bind/ patch include/resolv.h patch include/arpa/nameser.h: patch lib/libc/include/isc/assertions.h: patch lib/libc/include/isc/eventlib.h patch lib/libc/isc/assertions.c: patch lib/libc/nameser/ns_parse.c patch lib/libc/resolv/herror.c: patch lib/libc/resolv/res_init.c patch lib/libc/resolv/res_mkquery.c: patch lib/libc/resolv/res_query.c patch lib/libc/resolv/res_send.c: patch usr.sbin/bind/Makefile.inc patch usr.sbin/bind/include/config.h: patch usr.sbin/bind/include/dns/code.h: patch usr.sbin/bind/include/dns/enumclass.h: patch usr.sbin/bind/include/dns/enumtype.h: patch usr.sbin/bind/include/dns/rdatastruct.h: patch usr.sbin/bind/include/isc/platform.h: patch usr.sbin/bind/include/lwres/netdb.h: patch usr.sbin/bind/include/lwres/platform.h: patch usr.sbin/bind/libisc/Makefile: patch lib/libc/inet/inet_addr.c new file
Update bind to 9.4-ESV-R4, latest version of the 9.4 line.
|
1.9.12.1 | 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.11.14.1 | 09-Jan-2011 |
riz | Apply patches (requested by spz in ticket #1517):
Update bind to 9.7.2-P3.
|
1.11.10.1 | 10-Jan-2011 |
riz | Apply patches (requested by spz in ticket #1517):
Update bind to 9.7.2-P3.
|
1.11.8.1 | 13-May-2009 |
jym | Sync with HEAD.
Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
|
1.11.6.2 | 21-Jun-2008 |
christos | - protect DEBUG again because we should be able to set it from the Makefile - add a missing cast to pacify lint.
|
1.11.6.1 | 21-Jun-2008 |
christos | file res_query.c was added on branch christos-time_t on 2008-06-21 23:37:54 +0000
|
1.11.4.1 | 06-Jan-2011 |
riz | Apply patches (requested by spz in ticket #1517):
Update bind to 9.7.2-P3.
|
1.13.6.1 | 17-Apr-2012 |
yamt | sync with head
|
1.17.2.1 | 02-Aug-2025 |
perseant | Sync with HEAD
|
1.30 | 24-Feb-2015 |
christos | belated removal of the advertising clause.
|
1.29 | 16-Feb-2013 |
para | two more type casts after type changes
|
1.28 | 16-Feb-2013 |
christos | more type changes
|
1.27 | 16-Feb-2013 |
christos | using the proper types eliminate a whole bunch of casts
|
1.26 | 15-Feb-2013 |
christos | - make all filedescriptors close-on-exec - use SOCK_NOSIGPIPE. - add kqueue handling (not enabled by default, from FreeBSD) - add RES_INSECURE1 handling (from FreeBSD)
|
1.25 | 21-Mar-2012 |
christos | branches: 1.25.2; time_t casts
|
1.24 | 20-Mar-2012 |
matt | Use C89 Prototypes. Remove use of __P
|
1.23 | 13-Mar-2012 |
christos | PR/45989: Martin Husemann: lint invocation does include -w only on i386
- turn lint -w for all the platforms after fixing the lint warnings. - add _DIAGASSERTS() for casts that would assign values to types that would not fit. - change types, add casts - change into ansii prototypes - turn on _DIAGNOSTIC for libc (during current, to be eliminated for release builds)
approved by core@
|
1.22 | 23-May-2011 |
joerg | branches: 1.22.4; Remove self-assignment of an argument that is later used.
|
1.21 | 09-Feb-2011 |
pooka | Don't do highestFD check with USE_POLL. It provides no benefit but causes a dependency between RLIMIT_NOFILE and rumphijack FDOFF.
christos ok
|
1.20 | 24-Oct-2009 |
christos | branches: 1.20.2; expose res_check.
|
1.19 | 24-Oct-2009 |
christos | Add a knote to keep track when resolv.conf gets changed and re-initialize. While here fix a memory leak when calling res_vinit with an already inited res_state.
|
1.18 | 12-Apr-2009 |
christos | merge libbind and bump.
|
1.17 | 27-Jan-2009 |
mrg | branches: 1.17.2; fix a very old resolver bug:
when looping over the current list of sockets we're connected to, use getpeername() not getsockname() to find out who the remote end is. avoid spurious close()s and (rare) failure.
apparently known as ISC bug #18625, and fixed in libbind 6.0
|
1.16 | 11-Jan-2009 |
christos | merge christos-time_t
|
1.15 | 21-Jun-2008 |
christos | branches: 1.15.4; 1.15.6; 1.15.8; 1.15.12; - protect DEBUG again because we should be able to set it from the Makefile - add a missing cast to pacify lint.
|
1.14 | 21-Jun-2008 |
christos | updates from bind-9-5-0
|
1.13 | 30-Mar-2007 |
ghen | branches: 1.13.12; Resolve conflicts.
|
1.12 | 02-Mar-2007 |
christos | Although we don't have a kqueue implementation yet, there is no point in limiting the max fd in the poll case. Pointed out by Jan Schaumann, original patch from FreeBSD/John Baldwin.
|
1.11 | 27-Jan-2007 |
christos | Fix minor compilation issues.
|
1.10 | 27-Jan-2007 |
christos | merge in resolver portion of bind-9.4.0-rc2
|
1.9 | 24-Jan-2006 |
christos | branches: 1.9.4; 1.9.6; don't re-define DEBUG
|
1.8 | 09-Feb-2005 |
kleink | A little libc namespace housekeeping exercise: * Make vfprintf_unlocked() an internal function, c.f. __svfscanf_unlocked(). * Add internal names for arc4random(), endnetpath(), fhstatvfs(), fstatvfs(), mkstemp(), shquote(), statvfs(), taddr2uaddr(), uaddr2taddr(), uuid_create_nil(), uuid_is_nil(), and wcwidth(). * Include namespace.h where supposed to.
|
1.7 | 07-Nov-2004 |
christos | resolve conflicts.
|
1.6 | 21-May-2004 |
christos | disable weak aliases for now; the resolver header file adds __ to all the names.
|
1.5 | 21-May-2004 |
christos | namespace protection for resolver routines.
|
1.4 | 20-May-2004 |
christos | netbsd rcsid.
|
1.3 | 20-May-2004 |
christos | more lint fixes.
|
1.2 | 20-May-2004 |
christos | - add casts to appease lint - fix unreachable condition pointed out by lint.
|
1.1 | 20-May-2004 |
christos | branches: 1.1.1; Initial revision
|
1.1.1.5 | 12-Apr-2009 |
christos | libc portion of libbind from external/bsd/libbind
|
1.1.1.4 | 30-Mar-2007 |
ghen | Import bind 9.4.0.
|
1.1.1.3 | 27-Jan-2007 |
christos | import resolver portion of bind-9.4.0-rc2
|
1.1.1.2 | 07-Nov-2004 |
christos | Re-import bind-9-3-0
|
1.1.1.1 | 20-May-2004 |
christos | Import libc portion of the resolver from bind9
|
1.9.6.1 | 03-Jun-2007 |
wrstuden | Catch up with now-somewhat-dated netbsd-4. These changes took longer than expected for me to actually get around to merging.
|
1.9.4.3 | 23-Jan-2011 |
bouyer | Apply patch, requested by spz in ticket 1413: dist/bind/ patch include/resolv.h patch include/arpa/nameser.h: patch lib/libc/include/isc/assertions.h: patch lib/libc/include/isc/eventlib.h patch lib/libc/isc/assertions.c: patch lib/libc/nameser/ns_parse.c patch lib/libc/resolv/herror.c: patch lib/libc/resolv/res_init.c patch lib/libc/resolv/res_mkquery.c: patch lib/libc/resolv/res_query.c patch lib/libc/resolv/res_send.c: patch usr.sbin/bind/Makefile.inc patch usr.sbin/bind/include/config.h: patch usr.sbin/bind/include/dns/code.h: patch usr.sbin/bind/include/dns/enumclass.h: patch usr.sbin/bind/include/dns/enumtype.h: patch usr.sbin/bind/include/dns/rdatastruct.h: patch usr.sbin/bind/include/isc/platform.h: patch usr.sbin/bind/include/lwres/netdb.h: patch usr.sbin/bind/include/lwres/platform.h: patch usr.sbin/bind/libisc/Makefile: patch lib/libc/inet/inet_addr.c new file
Update bind to 9.4-ESV-R4, latest version of the 9.4 line.
|
1.9.4.2 | 17-May-2007 |
jdc | branches: 1.9.4.2.2; Add missing BIND 9.4.x include file and library changes (requested by tron in ticket #662).
|
1.9.4.1 | 17-May-2007 |
jdc | Update BIND to version 9.4.1 (requested by christos in ticket #602). Thanks to tron for the patches, upgrade script and testing.
|
1.9.4.2.2.1 | 23-Jan-2011 |
bouyer | Apply patch, requested by spz in ticket 1413: dist/bind/ patch include/resolv.h patch include/arpa/nameser.h: patch lib/libc/include/isc/assertions.h: patch lib/libc/include/isc/eventlib.h patch lib/libc/isc/assertions.c: patch lib/libc/nameser/ns_parse.c patch lib/libc/resolv/herror.c: patch lib/libc/resolv/res_init.c patch lib/libc/resolv/res_mkquery.c: patch lib/libc/resolv/res_query.c patch lib/libc/resolv/res_send.c: patch usr.sbin/bind/Makefile.inc patch usr.sbin/bind/include/config.h: patch usr.sbin/bind/include/dns/code.h: patch usr.sbin/bind/include/dns/enumclass.h: patch usr.sbin/bind/include/dns/enumtype.h: patch usr.sbin/bind/include/dns/rdatastruct.h: patch usr.sbin/bind/include/isc/platform.h: patch usr.sbin/bind/include/lwres/netdb.h: patch usr.sbin/bind/include/lwres/platform.h: patch usr.sbin/bind/libisc/Makefile: patch lib/libc/inet/inet_addr.c new file
Update bind to 9.4-ESV-R4, latest version of the 9.4 line.
|
1.13.12.1 | 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.15.12.1 | 09-Jan-2011 |
riz | Apply patches (requested by spz in ticket #1517):
Update bind to 9.7.2-P3.
|
1.15.8.1 | 10-Jan-2011 |
riz | Apply patches (requested by spz in ticket #1517):
Update bind to 9.7.2-P3.
|
1.15.6.2 | 08-Nov-2008 |
christos | time_t changes
|
1.15.6.1 | 21-Jun-2008 |
christos | file res_send.c was added on branch christos-time_t on 2008-11-08 21:45:38 +0000
|
1.15.4.2 | 16-Feb-2011 |
bouyer | Pull up following revision(s) (requested by pooka in ticket #1546): lib/libc/resolv/res_send.c: revision 1.21 Don't do highestFD check with USE_POLL. It provides no benefit but causes a dependency between RLIMIT_NOFILE and rumphijack FDOFF. christos ok
|
1.15.4.1 | 06-Jan-2011 |
riz | Apply patches (requested by spz in ticket #1517):
Update bind to 9.7.2-P3.
|
1.17.2.1 | 13-May-2009 |
jym | Sync with HEAD.
Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
|
1.20.2.1 | 17-Feb-2011 |
bouyer | Sync with HEAD
|
1.22.4.2 | 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
1.22.4.1 | 17-Apr-2012 |
yamt | sync with head
|
1.25.2.1 | 25-Feb-2013 |
tls | resync with head
|
1.8 | 11-Jan-2009 |
christos | merge christos-time_t
|
1.7 | 28-Apr-2008 |
martin | branches: 1.7.8; Remove clause 3 and 4 from TNF licenses
|
1.6 | 27-Jan-2007 |
christos | branches: 1.6.10; merge in resolver portion of bind-9.4.0-rc2
|
1.5 | 09-Jun-2004 |
christos | branches: 1.5.10; 1.5.12; Jump through taller hoops to provide binary compatibility with programs compiled with the older and shorter _res. We now use _nres internally which is the new and bigger one. We define a _res which is the old size one if COMPAT__RES is set, and then we consult selected values from this old _res in res_init(), to emulate the old behavior.
|
1.4 | 23-May-2004 |
christos | Do all the _res initialization in __res_get_state()
|
1.3 | 22-May-2004 |
christos | Provide access to _res in the non-threaded case, and abort in the threaded case.
|
1.2 | 21-May-2004 |
christos | #ifdef protect __weak_alias
|
1.1 | 20-May-2004 |
christos | Add glue files.
|
1.5.12.1 | 03-Jun-2007 |
wrstuden | Catch up with now-somewhat-dated netbsd-4. These changes took longer than expected for me to actually get around to merging.
|
1.5.10.1 | 17-May-2007 |
jdc | Add missing BIND 9.4.x include file and library changes (requested by tron in ticket #662).
|
1.6.10.1 | 18-May-2008 |
yamt | sync with head.
|
1.7.8.3 | 10-Jan-2009 |
christos | revert previous resolver patch. Not meant for christos-time_t
|
1.7.8.2 | 04-Jan-2009 |
christos | merge with head.
|
1.7.8.1 | 28-Apr-2008 |
christos | file res_state.c was added on branch christos-time_t on 2009-01-04 17:02:20 +0000
|