diff options
author | ps <ps@FreeBSD.org> | 2005-04-21 20:11:01 +0000 |
---|---|---|
committer | ps <ps@FreeBSD.org> | 2005-04-21 20:11:01 +0000 |
commit | a61b20503e3588f6845f8ccaae377a75c7e6d8f0 (patch) | |
tree | 708a3fc3e4119aa30468d62e470d428e92893525 /sys/netinet/tcp_timewait.c | |
parent | 3c771e02c3cfe19cccaa8af7039cb235a14ead3a (diff) | |
download | FreeBSD-src-a61b20503e3588f6845f8ccaae377a75c7e6d8f0.zip FreeBSD-src-a61b20503e3588f6845f8ccaae377a75c7e6d8f0.tar.gz |
- Make the sack scoreboard logic use the TAILQ macros. This improves
code readability and facilitates some anticipated optimizations in
tcp_sack_option().
- Remove tcp_print_holes() and TCP_SACK_DEBUG.
Submitted by: Raja Mukerji.
Reviewed by: Mohan Srinivasan, Noritoshi Demizu.
Diffstat (limited to 'sys/netinet/tcp_timewait.c')
-rw-r--r-- | sys/netinet/tcp_timewait.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet/tcp_timewait.c b/sys/netinet/tcp_timewait.c index 474aa52..25a9266 100644 --- a/sys/netinet/tcp_timewait.c +++ b/sys/netinet/tcp_timewait.c @@ -605,6 +605,8 @@ tcp_newtcpcb(inp) if (tcp_do_rfc1323) tp->t_flags = (TF_REQ_SCALE|TF_REQ_TSTMP); tp->sack_enable = tcp_do_sack; + if (tp->sack_enable) + TAILQ_INIT(&tp->snd_holes); tp->t_inpcb = inp; /* XXX */ /* * Init srtt to TCPTV_SRTTBASE (0), so we can tell that we have no |