summaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_subr.c
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2006-09-07 13:06:00 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2006-09-07 13:06:00 +0000
commit751dea2935da440e92aabd40e8220ae414bc756a (patch)
treee02398a49c460cafd22200e8f849a887f6e31762 /sys/netinet/tcp_subr.c
parentb3c0f300fbf1e175fc42b573f3f324a3c6bb85c7 (diff)
Notes
Diffstat (limited to 'sys/netinet/tcp_subr.c')
-rw-r--r--sys/netinet/tcp_subr.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c
index 39acf6223edf..85d5a9e10d63 100644
--- a/sys/netinet/tcp_subr.c
+++ b/sys/netinet/tcp_subr.c
@@ -1736,7 +1736,7 @@ tcp_twstart(struct tcpcb *tp)
{
struct tcptw *tw;
struct inpcb *inp;
- int tw_time, acknow;
+ int acknow;
struct socket *so;
INP_INFO_WLOCK_ASSERT(&tcbinfo); /* tcp_timer_2msl_reset(). */
@@ -1781,7 +1781,6 @@ tcp_twstart(struct tcpcb *tp)
* be used for fin-wait-2 state also, then we may need
* a ts_recent from the last segment.
*/
- tw_time = 2 * tcp_msl;
acknow = tp->t_flags & TF_ACKNOW;
/*
@@ -1803,7 +1802,7 @@ tcp_twstart(struct tcpcb *tp)
tcp_twrespond(tw, TH_ACK);
inp->inp_ppcb = tw;
inp->inp_vflag |= INP_TIMEWAIT;
- tcp_timer_2msl_reset(tw, tw_time, 0);
+ tcp_timer_2msl_reset(tw, 0);
/*
* If the inpcb owns the sole reference to the socket, then we can