Home | History | Annotate | only in /src/include/arpa
History log of /src/include/arpa
RevisionDateAuthorComments
 1.7 12-Jan-2017  christos Welcome to the constant age!
 1.6 07-Aug-2003  agc branches: 1.6.84;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22270, verified by myself.
 1.5 10-Feb-1998  perry add/cleanup multiple inclusion protection.
 1.4 02-Feb-1998  perry merge lite-2
 1.3 26-Oct-1994  cgd new RCS ID format.
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 02-Feb-1998  perry import lite-2
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.6.84.1 20-Mar-2017  pgoyette Sync with HEAD
 1.24 21-Jun-2008  christos branches: 1.24.6;
sync with bind-9-5-0
 1.23 30-Mar-2007  ghen branches: 1.23.12; 1.23.14;
Resolve conflicts.
 1.22 27-Jan-2007  christos Merge back all our changes.
 1.21 03-Feb-2005  perry branches: 1.21.10; 1.21.12;
de-__P -- the hack is long since useless. Discussed with christos,
matt, kleink, others. Approved by christos.
 1.20 07-Nov-2004  christos Resolve conflicts.
 1.19 21-May-2004  christos add 2 new functions from bind9
 1.18 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22270, verified by myself.
 1.17 30-Jun-2003  kleink Remove whitespace accident in previous; spotted by Thomas Klausner.
 1.16 30-Jun-2003  kleink Sprinkle some restrict.
 1.15 05-May-2003  bjh21 Fix the signatures of inet_addr(), inet_lnaof(), inet_makeaddr(), inet_netof(),
and inet_network() to match XNS and (where applicable) POSIX. This is largely
just the replacement of unsigned long with in_addr_t.

This constitutes a small ABI change on sh5, but scw (sh5 portmaster) thinks
that both the users of that port will be able to cope. kleink claims the
change is ABI-neutral on other LP64 ports, and it's a no-op on ILP32 ports.
Hence, I'm doing it this way and avoiding the whole __RENAME dance.
 1.14 29-Apr-2003  bjh21 Header file cleanup:
* Don't include <sys/param.h>
* Assume that NetBSD is a BSD system and hence has <sys/types.h>
* inet_pton() and inet_ntop() were in XNS 5.2 (not 5.0) and POSIX 2001.
Update #ifdefs accordingly.

XXX Types of inet_addr() and inet_makeaddr() are still wrong.
XXX Might want __restrict on inet_ntop() and inet_pton().
 1.13 28-Apr-2003  bjh21 Add a new feature-test macro, _NETBSD_SOURCE. If this is defined
by the application, all NetBSD interfaces are made visible, even
if some other feature-test macro (like _POSIX_C_SOURCE) is defined.
<sys/featuretest.h> defined _NETBSD_SOURCE if none of _ANSI_SOURCE,
_POSIX_C_SOURCE and _XOPEN_SOURCE is defined, so as to preserve
existing behaviour.

This has two major advantages:
+ Programs that require non-POSIX facilities but define _POSIX_C_SOURCE
can trivially be overruled by putting -D_NETBSD_SOURCE in their CFLAGS.
+ It makes most of the #ifs simpler, in that they're all now ORs of the
various macros, rather than having checks for (!defined(_ANSI_SOURCE) ||
!defined(_POSIX_C_SOURCE) || !defined(_XOPEN_SOURCE)) all over the place.

I've tried not to change the semantics of the headers in any case where
_NETBSD_SOURCE wasn't defined, but there were some places where the
current semantics were clearly mad, and retaining them was harder than
correcting them. In particular, I've mostly normalised things so that
_ANSI_SOURCE gets you the smallest set of stuff, then _POSIX_C_SOURCE,
_XOPEN_SOURCE and _NETBSD_SOURCE in that order.

Tested by building for vax, encouraged by thorpej, and uncontested in
tech-userlevel for a week.
 1.12 14-May-2002  kleink branches: 1.12.2;
XNS5.2/POSIX-2001: change the size argument to inet_ntop from size_t to
socklen_t.
 1.11 26-Apr-2002  bjh21 Change RCS/SCCS IDs to our usual style.
 1.10 26-Apr-2002  bjh21 This header needs struct in_addr from <netinet/in.h>, so include that.
POSIX-2001 says exposing the contents of <netinet/in.h> here is OK.
 1.9 03-Jul-1999  kleink branches: 1.9.10;
Restrict function delcarations using XNS5.2 D2.0 as a reference.
 1.8 10-Feb-1998  perry add/cleanup multiple inclusion protection.
 1.7 13-Oct-1997  lukem rcsid fascism
 1.6 13-Apr-1997  mrg merge bind 4.9.5-P1.
 1.5 02-Feb-1996  mrg update these for bind 4.9.3-p1.
 1.4 26-Oct-1994  cgd new RCS ID format.
 1.3 07-Apr-1994  deraadt new resolver. changes from 4.9.2 by <paul@vix.com>, as well as a number
of features and optimizations by myself.
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.7 12-Apr-2009  christos import libbind include files.
 1.1.1.6 30-Mar-2007  ghen Import bind 9.4.0.
 1.1.1.5 27-Jan-2007  christos import files from bind-9-4-0-rc2
 1.1.1.4 07-Nov-2004  christos Import again.
 1.1.1.3 02-Feb-1998  perry import lite-2
 1.1.1.2 13-Apr-1997  mrg BIND 4.9.5-P1 include bits
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.9.10.1 21-Jun-2002  nathanw Catch up to -current.
 1.12.2.1 27-Oct-2003  jmc Bring BIND up to 8.3.6 (requested by itojun in ticket #1536)
 1.21.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.21.10.1 17-May-2007  jdc Add missing BIND 9.4.x include file and library changes (requested by
tron in ticket #662).
 1.23.14.1 27-Jun-2008  simonb Sync with head.
 1.23.12.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.24.6.2 21-Jun-2008  christos sync with bind-9-5-0
 1.24.6.1 21-Jun-2008  christos file inet.h was added on branch christos-time_t on 2008-06-21 20:12:50 +0000
 1.29 15-Jul-2025  andvar Fix various typos in comments.
 1.28 23-May-2023  andvar branches: 1.28.2;
s/configuratin/configuration/ in comment, from Brad Harder (bch) by email.
 1.27 08-Dec-2021  andvar fix various typos in comments and log messages.
 1.26 10-Oct-2020  christos - remove bitypes.h fossil
- define u_{char,short,int,long} if we don't have _NETBSD_SOURCE defined
so that this compiles (and resolv.h since it includes this). This is
the simplest solution. Others:
- always define them (bad, pollutes namespace)
- create <sys/utypes.h> (bad, overkill)
- change them to unsigned {char, short, int long} (bad, too disruptive)
 1.25 12-Apr-2009  christos merge libbind
 1.24 11-Jan-2009  christos branches: 1.24.2;
merge christos-time_t
 1.23 21-Jun-2008  christos branches: 1.23.4; 1.23.6; 1.23.8; 1.23.12;
sync with bind-9-5-0
 1.22 30-Mar-2007  ghen branches: 1.22.12; 1.22.14;
Resolve conflicts.
 1.21 27-Jan-2007  christos Fix merge botch
 1.20 27-Jan-2007  christos Merge back all our changes.
 1.19 26-Dec-2005  perry branches: 1.19.4; 1.19.6;
u_intN_t -> uintN_t
 1.18 06-Feb-2005  perry remove obsolete register declarations.
 1.17 03-Feb-2005  perry de-__P -- the hack is long since useless. Discussed with christos,
matt, kleink, others. Approved by christos.
 1.16 21-May-2004  christos resolve conflicts.
 1.15 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22270, verified by myself.
 1.14 09-Aug-2000  itojun implement EDNS0 support, as EDNS0 support will be made mandatory for
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.
 1.13 13-Nov-1998  christos const poisoning
 1.12 19-Oct-1998  matt Add a defined(__vax__); plain vax is not good enough anymore.
 1.11 10-Feb-1998  perry add/cleanup multiple inclusion protection.
 1.10 13-Oct-1997  lukem rcsid fascism
 1.9 13-Apr-1997  mrg merge bind 4.9.5-P1.
 1.8 02-Feb-1996  mrg update these for bind 4.9.3-p1.
 1.7 26-Oct-1994  cgd new RCS ID format.
 1.6 15-Oct-1994  deraadt u_int_{16,32}_t stuff
 1.5 07-Apr-1994  deraadt new resolver. changes from 4.9.2 by <paul@vix.com>, as well as a number
of features and optimizations by myself.
 1.4 27-Oct-1993  mycroft Remove old endian cruft and #include machine/endian.h instead.
 1.3 01-Aug-1993  mycroft Add RCS identifiers.
 1.2 18-Apr-1993  mycroft Define default byte order for i386.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.7 12-Apr-2009  christos import libbind include files.
 1.1.1.6 30-Mar-2007  ghen Import bind 9.4.0.
 1.1.1.5 27-Jan-2007  christos import files from bind-9-4-0-rc2
 1.1.1.4 21-May-2004  christos import new and changed files from bind9
 1.1.1.3 02-Feb-1998  perry import lite-2
 1.1.1.2 13-Apr-1997  mrg BIND 4.9.5-P1 include bits
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.19.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.19.4.2 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.19.4.1 17-May-2007  jdc branches: 1.19.4.1.2;
Add missing BIND 9.4.x include file and library changes (requested by
tron in ticket #662).
 1.19.4.1.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.22.14.1 27-Jun-2008  simonb Sync with head.
 1.22.12.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.23.12.1 09-Jan-2011  riz Apply patches (requested by spz in ticket #1517):

Update bind to 9.7.2-P3.
 1.23.8.1 10-Jan-2011  riz Apply patches (requested by spz in ticket #1517):

Update bind to 9.7.2-P3.
 1.23.6.2 08-Nov-2008  christos changes for 64 bit time_t
 1.23.6.1 21-Jun-2008  christos file nameser.h was added on branch christos-time_t on 2008-11-08 21:13:13 +0000
 1.23.4.1 06-Jan-2011  riz Apply patches (requested by spz in ticket #1517):

Update bind to 9.7.2-P3.
 1.24.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.28.2.1 02-Aug-2025  perseant Sync with HEAD
 1.10 05-Feb-2024  andvar fix various typos in comments.
 1.9 21-Apr-2022  gutteridge nameser_compat.h: simplify logic to determine byte order

There's really no need for all the complex #ifdefs present and, on top
of that, it didn't even work correctly for all NetBSD architectures.
Simply use endian.h and drop the rest. (Since there is no upstream for
this code anymore, there's no concern about complicating future merges,
either. This change is also consistent with what FreeBSD and OpenBSD
did years ago.)

Addresses PR toolchain/53880 (reported by maya@, originally encountered
by me on macppc when building a package that pulls in nameser_compat.h
before nameser.h by necessity -- necessity, that is, on another OS).
 1.8 18-Nov-2020  is Don't complain about additional DNAME records received when resolving A or
AAAA (like already done for SIG/KEY and CNAME).
 1.7 28-Jun-2020  gutteridge nameser_compat.h: correct preprocessor error syntax
 1.6 24-Feb-2015  christos branches: 1.6.8; 1.6.18;
belated removal of the advertising clause.
 1.5 12-Apr-2009  christos merge libbind
 1.4 21-Jun-2008  christos branches: 1.4.4; 1.4.6; 1.4.8; 1.4.10; 1.4.14;
sync with bind-9-5-0
 1.3 30-Mar-2007  ghen branches: 1.3.12; 1.3.14;
Resolve conflicts.
 1.2 27-Jan-2007  christos Merge back all our changes.
 1.1 21-May-2004  christos branches: 1.1.1;
Initial revision
 1.1.1.5 12-Apr-2009  christos import libbind include files.
 1.1.1.4 30-Mar-2007  ghen Import bind 9.4.0.
 1.1.1.3 27-Jan-2007  christos import files from bind-9-4-0-rc2
 1.1.1.2 07-Nov-2004  christos branches: 1.1.1.2.10; 1.1.1.2.12;
Re-import these. I imported the old ones accidentally.
 1.1.1.1 21-May-2004  christos import new and changed files from bind9
 1.1.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.1.1.2.10.1 17-May-2007  jdc Add missing BIND 9.4.x include file and library changes (requested by
tron in ticket #662).
 1.3.14.1 27-Jun-2008  simonb Sync with head.
 1.3.12.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.4.14.1 09-Jan-2011  riz Apply patches (requested by spz in ticket #1517):

Update bind to 9.7.2-P3.
 1.4.10.1 10-Jan-2011  riz Apply patches (requested by spz in ticket #1517):

Update bind to 9.7.2-P3.
 1.4.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.4.6.2 21-Jun-2008  christos sync with bind-9-5-0
 1.4.6.1 21-Jun-2008  christos file nameser_compat.h was added on branch christos-time_t on 2008-06-21 20:12:50 +0000
 1.4.4.1 06-Jan-2011  riz Apply patches (requested by spz in ticket #1517):

Update bind to 9.7.2-P3.
 1.6.18.1 29-Nov-2020  martin Pull up following revision(s) (requested by is in ticket #1135):

lib/libc/net/getaddrinfo.c: revision 1.120
lib/libc/net/gethnamaddr.c: revision 1.93
include/arpa/nameser_compat.h: revision 1.8

Don't complain about additional DNAME records received when resolving A or
AAAA (like already done for SIG/KEY and CNAME).
 1.6.8.1 29-Nov-2020  martin Pull up following revision(s) (requested by is in ticket #1625):

lib/libc/net/getaddrinfo.c: revision 1.120
lib/libc/net/gethnamaddr.c: revision 1.93
include/arpa/nameser_compat.h: revision 1.8

Don't complain about additional DNAME records received when resolving A or
AAAA (like already done for SIG/KEY and CNAME).
 1.13 12-Jan-2017  christos Welcome to the constant age!
 1.12 24-Jan-2006  christos branches: 1.12.72;
PR/32615: Yves-Emmanuel JUTARD: Add missing telopts extern variable.
 1.11 19-Feb-2005  christos Add newer constants from FreeBSD and constify.
 1.10 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22270, verified by myself.
 1.9 11-Jun-2001  wiz Fix various misspellings of compatible/compatibility.
 1.8 24-Sep-1999  explorer branches: 1.8.8;
Merge a few constants from a different telnet.h file.
 1.7 10-Feb-1998  perry branches: 1.7.4;
add/cleanup multiple inclusion protection.
 1.6 02-Feb-1998  perry merge lite-2
 1.5 25-Mar-1997  perry added some missing SLC command codes (19 - 30) defined in RFC-1184
updated the NSLC #define to be 30
updated SLC_NAMELIST #define to include the new codes

mostly from Robin Carey <robin@mailgate.dtc.rankxerox.co.uk>
 1.4 26-Oct-1994  cgd new RCS ID format.
 1.3 25-Feb-1994  cgd new telnet header
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 02-Feb-1998  perry import lite-2
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.7.4.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.8.8.1 08-Oct-2001  nathanw Catch up to -current.
 1.12.72.1 20-Mar-2017  pgoyette Sync with HEAD
 1.8 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22270, verified by myself.
 1.7 11-Jun-2003  briggs Define the maximum segment size allowed under RFC 2348 (TFTP Blocksize Option)
Define the opcode for an option ACK and error code for a failed option
negotiation from RFC 2347 (TFTP Option Extension).
 1.6 18-Oct-2000  dogcow defs had 'short block' for blocksize; changed defs to be unsigned.
added note to tftpd.8 that this bug hits multiple tftp clients.
 1.5 10-Feb-1998  perry branches: 1.5.10;
add/cleanup multiple inclusion protection.
 1.4 02-Feb-1998  perry merge lite-2
 1.3 26-Oct-1994  cgd new RCS ID format.
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 02-Feb-1998  perry import lite-2
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.5.10.2 09-Apr-2004  jmc Pullup version 1.7 for tftp/tftpd to work
 1.5.10.1 26-Feb-2001  he Pull up revision 1.6 (requested by he):
Use unsigned variables for block number, thus allowing transfer
of up to 32M files instead of 16M.

RSS XML Feed