Commit Graph

54 Commits

Author SHA1 Message Date
is
84206f8865 Don't complain about additional DNAME records received when resolving A or
AAAA (like already done for SIG/KEY and CNAME).
2020-11-18 12:49:52 +00:00
christos
3c56a67128 - 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)
2020-10-10 19:51:48 +00:00
gutteridge
68466549b9 nameser_compat.h: correct preprocessor error syntax 2020-06-28 02:16:19 +00:00
christos
86268722b0 Welcome to the constant age! 2017-01-12 18:42:53 +00:00
christos
4d416d886b belated removal of the advertising clause. 2015-02-24 17:56:20 +00:00
christos
178edc61d9 merge libbind 2009-04-12 17:07:33 +00:00
christos
50728e7823 merge christos-time_t 2009-01-11 02:57:17 +00:00
christos
a0abbe8fe8 sync with bind-9-5-0 2008-06-21 20:12:49 +00:00
ghen
f0e38187bd Resolve conflicts. 2007-03-30 19:57:16 +00:00
christos
9567c94af3 Fix merge botch 2007-01-27 22:33:03 +00:00
christos
0d808c59ee Merge back all our changes. 2007-01-27 21:25:23 +00:00
christos
7315c1563a import files from bind-9-4-0-rc2 2007-01-27 19:49:27 +00:00
christos
4787e0f575 PR/32615: Yves-Emmanuel JUTARD: Add missing telopts extern variable. 2006-01-24 17:13:59 +00:00
perry
5f65228b74 u_intN_t -> uintN_t 2005-12-26 19:01:47 +00:00
christos
1f09c87798 Add newer constants from FreeBSD and constify. 2005-02-19 21:57:19 +00:00
perry
fc7ef6c165 remove obsolete register declarations. 2005-02-06 04:41:40 +00:00
perry
19b7469a00 de-__P -- the hack is long since useless. Discussed with christos,
matt, kleink, others. Approved by christos.
2005-02-03 04:39:32 +00:00
christos
88ae7d9d8f Resolve conflicts. 2004-11-07 01:48:01 +00:00
christos
98e5db9d1f Re-import these. I imported the old ones accidentally. 2004-11-07 01:28:27 +00:00
christos
b74cd7536f resolve conflicts. 2004-05-21 02:25:10 +00:00
christos
d922106ab4 import new and changed files from bind9 2004-05-21 02:17:49 +00:00
christos
ad7bdf9185 add 2 new functions from bind9 2004-05-21 01:53:17 +00:00
agc
039cc95684 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22270, verified by myself.
2003-08-07 09:44:09 +00:00
kleink
f77e77ff4b Remove whitespace accident in previous; spotted by Thomas Klausner. 2003-06-30 15:45:02 +00:00
kleink
5a44432bf1 Sprinkle some restrict. 2003-06-30 15:14:17 +00:00
briggs
39d51ab631 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).
2003-06-11 01:41:14 +00:00
bjh21
77de1304d5 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.
2003-05-05 13:56:13 +00:00
bjh21
fac4f2f505 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().
2003-04-29 11:58:15 +00:00
bjh21
4be7a2dcf3 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.
2003-04-28 23:16:11 +00:00
kleink
ba77dc646c XNS5.2/POSIX-2001: change the size argument to inet_ntop from size_t to
socklen_t.
2002-05-14 18:57:31 +00:00
bjh21
dad5e0c347 Change RCS/SCCS IDs to our usual style. 2002-04-26 15:32:45 +00:00
bjh21
2277ee229b 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.
2002-04-26 14:56:16 +00:00
wiz
40ac848024 Fix various misspellings of compatible/compatibility. 2001-06-11 01:50:48 +00:00
dogcow
90c3bfc9b0 defs had 'short block' for blocksize; changed defs to be unsigned.
added note to tftpd.8 that this bug hits multiple tftp clients.
2000-10-18 01:35:45 +00:00
itojun
babc498cc8 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.
2000-08-09 14:40:52 +00:00
explorer
a54e7e8c68 Merge a few constants from a different telnet.h file. 1999-09-24 07:53:21 +00:00
kleink
363db7b0fa Restrict function delcarations using XNS5.2 D2.0 as a reference. 1999-07-03 13:30:38 +00:00
christos
36b0b72f6f const poisoning 1998-11-13 15:45:10 +00:00
matt
aca741cc61 Add a defined(__vax__); plain vax is not good enough anymore. 1998-10-19 02:58:31 +00:00
perry
d39928a203 add/cleanup multiple inclusion protection. 1998-02-10 00:25:25 +00:00
perry
a141abe41d merge lite-2 1998-02-02 16:32:57 +00:00
lukem
313ab54809 rcsid fascism 1997-10-13 09:26:06 +00:00
mrg
5be792e647 merge bind 4.9.5-P1. 1997-04-13 09:26:21 +00:00
perry
337b724fe9 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>
1997-03-25 18:46:27 +00:00
mrg
abc1fece4b update these for bind 4.9.3-p1. 1996-02-02 15:29:23 +00:00
mrg
3f63ba4d8a update these for bind 4.9.3-p1. 1996-02-02 15:29:18 +00:00
cgd
4d2cbfce0a new RCS ID format. 1994-10-26 00:55:40 +00:00
deraadt
2343dc8f90 u_int_{16,32}_t stuff 1994-10-15 07:56:51 +00:00
deraadt
bc93d2c77e new resolver. changes from 4.9.2 by <paul@vix.com>, as well as a number
of features and optimizations by myself.
1994-04-07 06:58:29 +00:00
cgd
02bcff5cc8 new telnet header 1994-02-25 02:31:18 +00:00