summaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_subr.c
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2006-04-25 11:17:35 +0000
committerRobert Watson <rwatson@FreeBSD.org>2006-04-25 11:17:35 +0000
commit10702a2840103bc1e439073c1b67e7dcfca21e8d (patch)
treeac3c32c6d4a4115de24383a3ecb36ad35f4fff67 /sys/netinet/tcp_subr.c
parent2eafb39b6769fd571c9956fa49a8a40fdbfb5d06 (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 d768fb38cb2a..89bd41ca5768 100644
--- a/sys/netinet/tcp_subr.c
+++ b/sys/netinet/tcp_subr.c
@@ -791,8 +791,7 @@ tcp_close(struct tcpcb *tp)
INP_INFO_WLOCK_ASSERT(&tcbinfo);
INP_LOCK_ASSERT(inp);
- inp->inp_vflag |= INP_DROPPED;
-
+ in_pcbdrop(inp);
tcpstat.tcps_closed++;
KASSERT(inp->inp_socket != NULL, ("tcp_close: inp_socket NULL"));
so = inp->inp_socket;
@@ -1852,7 +1851,7 @@ tcp_twclose(struct tcptw *tw, int reuse)
tw->tw_inpcb = NULL;
tcp_timer_2msl_stop(tw);
inp->inp_ppcb = NULL;
- inp->inp_vflag |= INP_DROPPED;
+ in_pcbdrop(inp);
so = inp->inp_socket;
if (so != NULL) {