freebsd-nq/sys/netinet
Lawrence Stewart 03f0843bdb Algorithm modules can define their own private congestion signal types in the
top 8 bits of the 32 bit signal bit field space for internal use. These private
signals should not be leaked outside of a module.

Given that many algorithm modules use the NewReno hook functions to simplify
their implementation, the obvious place such a leak would show up is in the
NewReno cong_signal hook function.

- Show the full number of significant bits in the signal type definitions in
  <netinet/cc.h>.

- Add a bitmask to simplify figuring out if a given signal is in the private or
  public bit range.

- Add a sanity check in newreno_cong_signal() to ensure private signals are not
  being leaked into the hook function.

Sponsored by:	FreeBSD Foundation
Discussed with:	David Hayes <dahayes at swin edu au>
MFC after:	1 week
X-MFC with:	r215166
2011-02-01 13:32:27 +00:00
..
cc Algorithm modules can define their own private congestion signal types in the 2011-02-01 13:32:27 +00:00
ipfw Use a blocking malloc() to initialize the dummynet taskq. 2011-01-13 17:02:39 +00:00
khelp Import the ERTT (Enhanced Round Trip Time) Khelp module. ERTT uses the 2011-01-24 23:08:38 +00:00
libalias Standardise all Swinburne related copyright/licence statements throughout the 2010-11-12 00:44:18 +00:00
accf_data.c
accf_dns.c
accf_http.c
cc.h Algorithm modules can define their own private congestion signal types in the 2011-02-01 13:32:27 +00:00
icmp6.h
icmp_var.h
if_atm.c Bring back (most of) NATM to avoid further bitrot after r186119. 2010-12-15 22:58:45 +00:00
if_atm.h
if_ether.c When matching an incoming ARP against a bridge, ensure both interfaces belong 2011-01-25 17:15:23 +00:00
if_ether.h
igmp_var.h
igmp.c After some off-list discussion, revert a number of changes to the 2010-11-22 19:32:54 +00:00
igmp.h These are no longer referenced in the tree, so can be safely removed. 2009-06-10 18:12:15 +00:00
in_cksum.c
in_debug.c
in_gif.c
in_gif.h
in_mcast.c
in_pcb.c Prison check addresses set with multicast interface options. 2011-01-26 17:31:03 +00:00
in_pcb.h
in_proto.c
in_rmx.c After some off-list discussion, revert a number of changes to the 2010-11-22 19:32:54 +00:00
in_systm.h
in_var.h
in.c Use time_uptime instead of non-monotonic time_second to drive ARP 2010-11-30 15:57:00 +00:00
in.h
ip6.h Fix more continuous/contiguous typos (cf. r215955) 2010-11-27 21:51:39 +00:00
ip_carp.c Redo r166423. It is important not only skip freeing multicast 2010-11-24 05:24:36 +00:00
ip_carp.h
ip_divert.c Specify a CTLTYPE_FOO so that a future sysctl(8) change does not need 2011-01-18 21:14:13 +00:00
ip_divert.h
ip_dummynet.h
ip_ecn.c
ip_ecn.h
ip_encap.c
ip_encap.h
ip_fastfwd.c Use correct field to track statistics counting error as bad header length. 2010-12-05 01:09:48 +00:00
ip_fw.h The first customer of the SO_USER_COOKIE option: 2010-11-12 13:05:17 +00:00
ip_gre.c
ip_gre.h
ip_icmp.c After some off-list discussion, revert a number of changes to the 2010-11-22 19:32:54 +00:00
ip_icmp.h
ip_id.c
ip_input.c After some off-list discussion, revert a number of changes to the 2010-11-22 19:32:54 +00:00
ip_ipsec.c After some off-list discussion, revert a number of changes to the 2010-11-22 19:32:54 +00:00
ip_ipsec.h
ip_mroute.c After some off-list discussion, revert a number of changes to the 2010-11-22 19:32:54 +00:00
ip_mroute.h
ip_options.c
ip_options.h
ip_output.c Try to catch a possible divide-by-zero as early as possible if "mtu" is 0 2010-12-31 21:47:11 +00:00
ip_var.h
ip.h
pim_var.h
pim.h
raw_ip.c Specify a CTLTYPE_FOO so that a future sysctl(8) change does not need 2011-01-18 21:14:13 +00:00
sctp_asconf.c Define and use SCTP_SSN_GE, SCTP_SSN_GT, SCTP_TSN_GE, SCTP_TSN_GT macros 2010-12-30 21:32:35 +00:00
sctp_asconf.h
sctp_auth.c
sctp_auth.h
sctp_bsd_addr.c Code cleanup: Use LIST_FOREACH, LIST_FOREACH_SAFE, TAILQ_FOREACH, 2010-12-30 16:56:20 +00:00
sctp_bsd_addr.h
sctp_cc_functions.c More ECN fixes: 2011-01-31 11:50:11 +00:00
sctp_constants.h More ECN fixes: 2011-01-31 11:50:11 +00:00
sctp_crc32.c Simplify sctp_delayed_cksum() a bit. 2010-11-14 14:37:20 +00:00
sctp_crc32.h
sctp_dtrace_declare.h Adds new dtrace for cwnd functions and lay's 2010-11-25 13:39:55 +00:00
sctp_dtrace_define.h Adds new dtrace for cwnd functions and lay's 2010-11-25 13:39:55 +00:00
sctp_header.h More ECN fixes: 2011-01-31 11:50:11 +00:00
sctp_indata.c More ECN fixes: 2011-01-31 11:50:11 +00:00
sctp_indata.h More ECN fixes: 2011-01-31 11:50:11 +00:00
sctp_input.c More ECN fixes: 2011-01-31 11:50:11 +00:00
sctp_input.h
sctp_lock_bsd.h
sctp_os_bsd.h
sctp_os.h
sctp_output.c More ECN fixes: 2011-01-31 11:50:11 +00:00
sctp_output.h Fixes to ECN in SCTP. 2011-01-29 19:55:29 +00:00
sctp_pcb.c More ECN fixes: 2011-01-31 11:50:11 +00:00
sctp_pcb.h Change infrastructure for SCTP_MAX_BURST to allow compliance 2011-01-26 19:49:03 +00:00
sctp_peeloff.c
sctp_peeloff.h
sctp_ss_functions.c Add stream scheduling support. 2011-01-23 19:36:28 +00:00
sctp_structs.h More ECN fixes: 2011-01-31 11:50:11 +00:00
sctp_sysctl.c More ECN fixes: 2011-01-31 11:50:11 +00:00
sctp_sysctl.h More ECN fixes: 2011-01-31 11:50:11 +00:00
sctp_timer.c More ECN fixes: 2011-01-31 11:50:11 +00:00
sctp_timer.h
sctp_uio.h Fix a bug in the way ECN-Echo chunk 2011-01-28 20:49:15 +00:00
sctp_usrreq.c Make SCTP_MAX_BURST compliant with the latest version of 2011-01-26 19:55:54 +00:00
sctp_var.h
sctp.h Fixes to ECN in SCTP. 2011-01-29 19:55:29 +00:00
sctputil.c More ECN fixes: 2011-01-31 11:50:11 +00:00
sctputil.h
siftr.c After some off-list discussion, revert a number of changes to the 2010-11-22 19:32:54 +00:00
tcp_debug.c
tcp_debug.h
tcp_fsm.h
tcp_hostcache.c sysctl(9) cleanup checkpoint: amd64 GENERIC builds cleanly. 2011-01-12 19:53:50 +00:00
tcp_hostcache.h
tcp_input.c Reset the last_sack_ack SACK hint for TCP input processing to ensure that the 2011-01-10 06:12:01 +00:00
tcp_lro.c Trim extra spaces before tabs. 2011-01-07 21:40:34 +00:00
tcp_lro.h Trim extra spaces before tabs. 2011-01-07 21:40:34 +00:00
tcp_offload.c
tcp_offload.h
tcp_output.c - Add some helper hook points to the TCP stack. The hooks allow Khelp modules to 2010-12-28 12:13:30 +00:00
tcp_reass.c Specify a CTLTYPE_FOO so that a future sysctl(8) change does not need 2011-01-18 21:14:13 +00:00
tcp_sack.c Add a new sack hint to track the most recent and highest sacked sequence number. 2010-12-28 03:27:20 +00:00
tcp_seq.h
tcp_subr.c Specify a CTLTYPE_FOO so that a future sysctl(8) change does not need 2011-01-18 21:14:13 +00:00
tcp_syncache.c sysctl(9) cleanup checkpoint: amd64 GENERIC builds cleanly. 2011-01-12 19:53:50 +00:00
tcp_syncache.h Trim extra spaces before tabs. 2011-01-07 21:40:34 +00:00
tcp_timer.c Trim extra spaces before tabs. 2011-01-07 21:40:34 +00:00
tcp_timer.h
tcp_timewait.c After some off-list discussion, revert a number of changes to the 2010-11-22 19:32:54 +00:00
tcp_usrreq.c Remove duplicate printing of TF_NOPUSH in db_print_tflags(). 2011-01-29 22:11:13 +00:00
tcp_var.h Fixe some whitespace nits that were introduced in r216758. 2011-01-11 01:32:08 +00:00
tcp.h Add new, per connection, statistics for TCP, including: 2010-11-17 18:55:12 +00:00
tcpip.h
toedev.h
udp_usrreq.c Fix style 9 nit that snuck in when I 2011-01-19 20:57:08 +00:00
udp_var.h Trim extra spaces before tabs. 2011-01-07 21:40:34 +00:00
udp.h Trim extra spaces before tabs. 2011-01-07 21:40:34 +00:00