NetBSD/sys/netinet6
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
..
Makefile Remove KDIR=, since SYS_INCLUDE=symlinks and KDIR are not supported any more. 2002-11-26 23:30:07 +00:00
ah.h correct pointer signedness mixups. sync w/kame 2002-09-11 03:45:44 +00:00
ah_core.c style 2003-04-22 10:08:33 +00:00
ah_input.c correct pointer signedness mixups. sync w/kame 2002-09-11 03:45:44 +00:00
ah_output.c remove trailing \n in panic(). approved perry. 2002-09-27 15:35:29 +00:00
dest6.c
esp.h use correct padding boundary, to correctly estimate ESP header size. 2002-08-09 06:38:12 +00:00
esp_core.c correct pointer signedness mixups. sync w/kame 2002-09-11 03:45:44 +00:00
esp_input.c Remove variable that is only assigned too but not referenced. 2003-01-20 00:39:30 +00:00
esp_output.c remove trailing \n in panic(). approved perry. 2002-09-27 15:35:29 +00:00
esp_rijndael.c allocate route_in6 in struct secashead, to avoid mistakenly overrun 2003-01-08 05:46:49 +00:00
esp_rijndael.h
files.netinet6 Move netinet, netinet6, ipsec, and ipfilter config defns to 2002-10-10 22:45:45 +00:00
files.netipsec IPSEC_ESP depends on the "des", "blowfish", "cast128", and "rijndael" 2002-10-12 15:41:24 +00:00
frag6.c /*CONTCOND*/ while (0)'ed macros 2002-11-02 07:30:55 +00:00
icmp6.c avoid mbuf leak in redirect header option attachment. more complete 2003-03-31 23:55:46 +00:00
in6.c Add in6_localaddr(). From KAME via FreeBSD. 2003-02-27 22:06:38 +00:00
in6.h Add a new feature-test macro, _NETBSD_SOURCE. If this is defined 2003-04-28 23:16:11 +00:00
in6_cksum.c remove trailing \n in panic(). approved perry. 2002-09-27 15:35:29 +00:00
in6_gif.c Avoid strict-alias warnings. 2002-11-25 01:55:21 +00:00
in6_gif.h make USE_ENCAPCHECK (in netinet*/*gif.c) to global option, GIF_ENCAPCHECK. 2002-11-11 18:35:27 +00:00
in6_ifattach.c /*CONTCOND*/ while (0)'ed macros 2002-11-02 07:30:55 +00:00
in6_ifattach.h sync with latest KAME in6_ifaddr/prefix/default router manipulation. 2002-06-08 21:22:29 +00:00
in6_pcb.c include opt_inet.h -- found by David Laight 2002-11-05 21:46:42 +00:00
in6_pcb.h pass proc * to in6_pcbsetport. PR 18073 2002-08-26 14:25:00 +00:00
in6_proto.c Protect the definition of offsetof(). 2003-04-17 19:58:57 +00:00
in6_src.c KNF - return is not a function. sync w/kame. 2002-09-11 02:46:42 +00:00
in6_var.h Add extensible malloc types, adapted from FreeBSD. This turns 2003-02-01 06:23:35 +00:00
ip6_forward.c avoid from applying IPsec transport mode to the packets when the kernel 2002-09-11 08:15:37 +00:00
ip6_input.c The Double-Semi-Colon Police. 2003-01-20 05:29:53 +00:00
ip6_mroute.c recover original stanford copyright. sync w/kame 2002-11-27 05:09:36 +00:00
ip6_mroute.h
ip6_output.c /*CONTCOND*/ while (0)'ed macros 2002-11-02 07:30:55 +00:00
ip6_var.h success, not sucess. Noted by mjl. 2003-01-28 22:35:02 +00:00
ip6protosw.h
ipcomp.h
ipcomp_core.c /*CONTCOND*/ while (0)'ed macros 2002-11-02 07:30:55 +00:00
ipcomp_input.c correct signedness mixup in pointer passing. sync w/kame 2002-09-11 02:41:19 +00:00
ipcomp_output.c whitespace cleanup 2002-06-09 14:43:10 +00:00
ipsec.c switch from kame-based m_aux mbuf auxiliary data, to openbsd m_tag 2003-01-17 08:11:49 +00:00
ipsec.h /*CONTCOND*/ while (0)'ed macros 2002-11-02 07:30:55 +00:00
mld6.c whitespace cleanup 2002-06-09 14:43:10 +00:00
mld6_var.h use arc4random 2002-05-28 11:19:17 +00:00
nd6.c Make sure to initialize callout structs. 2003-02-25 22:17:47 +00:00
nd6.h Add extensible malloc types, adapted from FreeBSD. This turns 2003-02-01 06:23:35 +00:00
nd6_nbr.c Remove breaks after returns, unreachable returns and returns after 2002-09-23 05:51:10 +00:00
nd6_rtr.c KNF - return is not a function. sync w/kame. 2002-09-11 02:46:42 +00:00
pim6.h
pim6_var.h Remove an extern declaration for the "pim6stat" variable; the only other 2002-09-23 04:56:58 +00:00
raw_ip6.c KNF - return is not a function. sync w/kame. 2002-09-11 02:46:42 +00:00
raw_ip6.h
route6.c KNF - return is not a function. sync w/kame. 2002-09-11 02:46:42 +00:00
udp6.h
udp6_output.c KNF - return is not a function. sync w/kame. 2002-09-11 02:46:42 +00:00
udp6_usrreq.c KNF - return is not a function. sync w/kame. 2002-09-11 02:46:42 +00:00
udp6_var.h Eliminate commons. 2002-05-12 20:33:50 +00:00