freebsd-nq/sys/netinet
David Malone 1f44b0a1b5 Get rid of the RANDOM_IP_ID option and make it a sysctl. NetBSD
have already done this, so I have styled the patch on their work:

        1) introduce a ip_newid() static inline function that checks
        the sysctl and then decides if it should return a sequential
        or random IP ID.

        2) named the sysctl net.inet.ip.random_id

        3) IPv6 flow IDs and fragment IDs are now always random.
        Flow IDs and frag IDs are significantly less common in the
        IPv6 world (ie. rarely generated per-packet), so there should
        be smaller performance concerns.

The sysctl defaults to 0 (sequential IP IDs).

Reviewed by:	andre, silby, mlaier, ume
Based on:	NetBSD
MFC after:	2 months
2004-08-14 15:32:40 +00:00
..
libalias Fix outgoing ICMP on global instance. 2004-08-14 14:21:09 +00:00
accf_data.c
accf_http.c
icmp6.h
icmp_var.h
if_atm.c
if_atm.h
if_ether.c
if_ether.h
igmp_var.h
igmp.c
igmp.h
in_cksum.c
in_gif.c
in_gif.h
in_pcb.c Assert the locks of inpcbinfo's and inpcb's passed into in_pcbconnect() 2004-08-11 04:35:20 +00:00
in_pcb.h Now that IPv6 performs basic in6pcb and inpcb locking, enable inpcb 2004-08-04 18:27:55 +00:00
in_proto.c
in_rmx.c
in_systm.h
in_var.h
in.c Add the function in_localip() which returns 1 if an internet address is for 2004-08-11 11:49:48 +00:00
in.h Add the function in_localip() which returns 1 if an internet address is for 2004-08-11 11:49:48 +00:00
ip6.h
ip_divert.c Backout removal of UMA_ZONE_NOFREE flag for all zones which are established 2004-08-11 20:30:08 +00:00
ip_divert.h
ip_dummynet.c Do a pass over all modules in the kernel and make them return EOPNOTSUPP 2004-07-15 08:26:07 +00:00
ip_dummynet.h
ip_ecn.c
ip_ecn.h
ip_encap.c
ip_encap.h
ip_fastfwd.c Make use of in_localip() function and replace previous direct LIST_FOREACH 2004-08-11 12:32:10 +00:00
ip_fw2.c Add the ability to associate ipfw rules with a specific prison ID. 2004-08-12 22:06:55 +00:00
ip_fw.h Add the ability to associate ipfw rules with a specific prison ID. 2004-08-12 22:06:55 +00:00
ip_gre.c
ip_gre.h
ip_icmp.c Define semantic of M_SKIP_FIREWALL more precisely, i.e. also pass associated 2004-07-17 05:10:06 +00:00
ip_icmp.h
ip_id.c Get rid of the RANDOM_IP_ID option and make it a sysctl. NetBSD 2004-08-14 15:32:40 +00:00
ip_input.c Get rid of the RANDOM_IP_ID option and make it a sysctl. NetBSD 2004-08-14 15:32:40 +00:00
ip_mroute.c Get rid of the RANDOM_IP_ID option and make it a sysctl. NetBSD 2004-08-14 15:32:40 +00:00
ip_mroute.h
ip_output.c Get rid of the RANDOM_IP_ID option and make it a sysctl. NetBSD 2004-08-14 15:32:40 +00:00
ip_var.h Get rid of the RANDOM_IP_ID option and make it a sysctl. NetBSD 2004-08-14 15:32:40 +00:00
ip.h
ipprotosw.h
pim_var.h
pim.h
raw_ip.c Get rid of the RANDOM_IP_ID option and make it a sysctl. NetBSD 2004-08-14 15:32:40 +00:00
tcp_debug.c
tcp_debug.h
tcp_fsm.h
tcp_hostcache.c Remove the UMA_ZONE_NOFREE flag to all uma_zcreate() calls in the IP and 2004-08-11 17:08:31 +00:00
tcp_input.c After each label in tcp_input(), assert the inpcbinfo and inpcb lock 2004-07-12 19:28:07 +00:00
tcp_output.c Fix a bug in the sack code that was causing data to be retransmitted 2004-07-28 02:15:14 +00:00
tcp_reass.c After each label in tcp_input(), assert the inpcbinfo and inpcb lock 2004-07-12 19:28:07 +00:00
tcp_sack.c
tcp_seq.h
tcp_subr.c In tcp6_ctlinput, lock tcbinfo around the call to syncache_unreach 2004-08-12 18:19:36 +00:00
tcp_syncache.c Get rid of the RANDOM_IP_ID option and make it a sysctl. NetBSD 2004-08-14 15:32:40 +00:00
tcp_timer.c
tcp_timer.h
tcp_timewait.c In tcp6_ctlinput, lock tcbinfo around the call to syncache_unreach 2004-08-12 18:19:36 +00:00
tcp_usrreq.c Get rid of the RANDOM_IP_ID option and make it a sysctl. NetBSD 2004-08-14 15:32:40 +00:00
tcp_var.h The tcp syncache code was leaving the IPv6 flowlabel uninitialised 2004-07-17 19:44:13 +00:00
tcp.h
tcpip.h
udp_usrreq.c When udp_send() fails, make sure to free the control mbufs as well as 2004-08-12 01:34:27 +00:00
udp_var.h
udp.h