diff options
author | mohans <mohans@FreeBSD.org> | 2006-08-11 21:15:23 +0000 |
---|---|---|
committer | mohans <mohans@FreeBSD.org> | 2006-08-11 21:15:23 +0000 |
commit | 707c86ce464655cc21368747d6d2380c3a45d907 (patch) | |
tree | 79bc8d154909be166e8a4c6f574e46e753772107 /sys/netinet/tcp_reass.c | |
parent | ce9f8963fd6c7fcb782d8b9eebf51fb108d847f8 (diff) | |
download | FreeBSD-src-707c86ce464655cc21368747d6d2380c3a45d907.zip FreeBSD-src-707c86ce464655cc21368747d6d2380c3a45d907.tar.gz |
Fixes an edge case bug in timewait handling where ticks rolling over causing
the timewait expiry to be exactly 0 corrupts the timewait queues (and that entry).
Reviewed by: silby
Diffstat (limited to 'sys/netinet/tcp_reass.c')
-rw-r--r-- | sys/netinet/tcp_reass.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/tcp_reass.c b/sys/netinet/tcp_reass.c index ddea86f..86f9325 100644 --- a/sys/netinet/tcp_reass.c +++ b/sys/netinet/tcp_reass.c @@ -3251,7 +3251,7 @@ tcp_timewait(inp, to, th, m, tlen) if (thflags & TH_FIN) { seq = th->th_seq + tlen + (thflags & TH_SYN ? 1 : 0); if (seq + 1 == tw->rcv_nxt) - tcp_timer_2msl_reset(tw, 2 * tcp_msl); + tcp_timer_2msl_reset(tw, 2 * tcp_msl, 1); } /* |