NetBSD/sys/netinet
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
fil.c Resync with official IPF 2002-09-19 08:12:43 +00:00
files.ipfilter Add missing "needs-flag". 2002-10-11 15:58:20 +00:00
files.netinet Move netinet, netinet6, ipsec, and ipfilter config defns to 2002-10-10 22:45:45 +00:00
icmp6.h /*CONTCOND*/ while (0)'ed macros 2002-11-02 07:20:42 +00:00
icmp_var.h Changes to allow the IPv4 and IPv6 layers to align headers themseves, 2002-06-30 22:40:32 +00:00
if_arp.c Add MBUFTRACE kernel option. 2003-02-26 06:31:08 +00:00
if_atm.c KNF - return is not a function. sync w/kame. 2002-09-11 02:46:42 +00:00
if_atm.h
if_ether.h
if_inarp.h
igmp.c Fix signed/unsigned comparison warnings. 2002-11-07 07:15:19 +00:00
igmp.h
igmp_var.h Changes to allow the IPv4 and IPv6 layers to align headers themseves, 2002-06-30 22:40:32 +00:00
in.c Fix signed/unsigned comparison warnings. 2002-11-07 07:15:19 +00:00
in.h Add a new feature-test macro, _NETBSD_SOURCE. If this is defined 2003-04-28 23:16:11 +00:00
in4_cksum.c be friendly with gcc-3.1.1 -O2, which takes advantage of ANSI C 2002-07-29 09:14:36 +00:00
in_cksum.c
in_gif.c make USE_ENCAPCHECK (in netinet*/*gif.c) to global option, GIF_ENCAPCHECK. 2002-11-11 18:35:27 +00:00
in_gif.h make USE_ENCAPCHECK (in netinet*/*gif.c) to global option, GIF_ENCAPCHECK. 2002-11-11 18:35:27 +00:00
in_pcb.c Enable check in in_pcbbind() to enforce sin_family == AF_INET. 2003-03-16 03:33:28 +00:00
in_pcb.h cleanup ipsec.h dependency. commented by perry, sync w/kame 2002-11-02 19:03:44 +00:00
in_proto.c cleanup ipsec.h dependency. commented by perry, sync w/kame 2002-11-02 19:03:44 +00:00
in_systm.h
in_var.h
ip.h bring into conformance with RFC 3514 2003-04-01 07:39:47 +00:00
ip6.h /*CONTCOND*/ while (0)'ed macros 2002-11-02 07:20:42 +00:00
ip_auth.c Resync with official IPF 2002-09-19 08:12:43 +00:00
ip_auth.h
ip_compat.h vax -> __vax__. Didn't I fix this a year ago? 2003-03-05 13:19:59 +00:00
ip_ecn.c
ip_ecn.h
ip_encap.c correct panic when ip-in-ip encapsulation is used. found by Masanori Kanaoka 2003-01-21 03:23:44 +00:00
ip_encap.h switch from kame-based m_aux mbuf auxiliary data, to openbsd m_tag 2003-01-17 08:11:49 +00:00
ip_fil.c Always recompute the IP checksum, otherwise fast-routed packets that 2002-12-11 16:33:11 +00:00
ip_fil.h Remove unused ipl_usec. 2002-09-29 17:55:14 +00:00
ip_flow.c /*CONTCOND*/ while (0)'ed macros 2002-11-02 07:20:42 +00:00
ip_frag.c Resync with official IPF 2002-09-19 08:12:43 +00:00
ip_frag.h Upgraded IPFilter to 3.4.29 2002-09-19 08:08:14 +00:00
ip_ftp_pxy.c Resync with official IPF 2002-09-19 08:12:43 +00:00
ip_gre.c remove redundant adjustment of m->m_pkthdr.len 2003-04-21 08:14:45 +00:00
ip_gre.h
ip_h323_pxy.c Resync with official IPF 2002-09-19 08:12:43 +00:00
ip_icmp.c Clear hardware checksum flags before reusing a mbuf for an ICMP reply as 2003-04-17 16:57:49 +00:00
ip_icmp.h
ip_input.c PR/991: Darren Reed: Add a sysctl (checkinteface) to implement this. This 2003-04-11 19:41:37 +00:00
ip_ipsec_pxy.c
ip_log.c Fix ipmon problems on 64-bit platforms (PR#17403 and PR#17404). 2002-09-25 06:43:17 +00:00
ip_mroute.c Add MBUFTRACE kernel option. 2003-02-26 06:31:08 +00:00
ip_mroute.h
ip_nat.c Relax overly-conservative TCP option parsing used by ipnat when 2002-09-24 14:14:25 +00:00
ip_nat.h Upgraded IPFilter to 3.4.29 2002-09-19 08:08:14 +00:00
ip_netbios_pxy.c Resync with official IPF 2002-09-19 08:12:43 +00:00
ip_output.c Add MBUFTRACE kernel option. 2003-02-26 06:31:08 +00:00
ip_proxy.c Resync with official IPF 2002-09-19 08:12:43 +00:00
ip_proxy.h Upgraded IPFilter to 3.4.29 2002-09-19 08:08:14 +00:00
ip_raudio_pxy.c
ip_rcmd_pxy.c
ip_state.c Resync with official IPF 2002-09-19 08:12:43 +00:00
ip_state.h Upgraded IPFilter to 3.4.29 2002-09-19 08:08:14 +00:00
ip_var.h Add MBUFTRACE kernel option. 2003-02-26 06:31:08 +00:00
ipl.h Upgraded IPFilter to 3.4.29 2002-09-19 08:08:14 +00:00
raw_ip.c Add MBUFTRACE kernel option. 2003-02-26 06:31:08 +00:00
tcp.h
tcp_debug.c
tcp_debug.h
tcp_fsm.h
tcp_input.c Allow TCP connections to hosts on a local network to use a larger 2003-03-01 04:40:27 +00:00
tcp_output.c Allow TCP connections to hosts on a local network to use a larger 2003-03-01 04:40:27 +00:00
tcp_seq.h
tcp_subr.c Allow TCP connections to hosts on a local network to use a larger 2003-03-01 04:40:27 +00:00
tcp_timer.c Test callout_pending(), not callout_active(), and eliminate now-unnecessary 2003-02-03 23:50:59 +00:00
tcp_timer.h Use callout_setfunc() and callout_schedule(). 2003-02-04 03:31:32 +00:00
tcp_usrreq.c PR/2352: Tor Egge: Add sysctl to get uid of connected socket. 2003-04-19 20:58:35 +00:00
tcp_var.h PR/2352: Tor Egge: Add sysctl to get uid of connected socket. 2003-04-19 20:58:35 +00:00
tcpip.h
udp.h
udp_usrreq.c Add MBUFTRACE kernel option. 2003-02-26 06:31:08 +00:00
udp_var.h Changes to allow the IPv4 and IPv6 layers to align headers themseves, 2002-06-30 22:40:32 +00:00