summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_timewait.c
diff options
context:
space:
mode:
authorps <ps@FreeBSD.org>2005-04-21 20:11:01 +0000
committerps <ps@FreeBSD.org>2005-04-21 20:11:01 +0000
commita61b20503e3588f6845f8ccaae377a75c7e6d8f0 (patch)
tree708a3fc3e4119aa30468d62e470d428e92893525 /sys/netinet/tcp_timewait.c
parent3c771e02c3cfe19cccaa8af7039cb235a14ead3a (diff)
downloadFreeBSD-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.c2
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
OpenPOWER on IntegriCloud