summaryrefslogtreecommitdiffstats
path: root/sys/netinet/in_pcb.h
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2009-03-11 00:29:22 +0000
committerrwatson <rwatson@FreeBSD.org>2009-03-11 00:29:22 +0000
commitfae6f1ab823ff29d6165da7eb2dcae9534b1428c (patch)
tree88d74d5bfa4d7788502c22bbca5dc1217057b838 /sys/netinet/in_pcb.h
parentfc149b72fe729e2cf94edc71b4402d1d76325ac0 (diff)
downloadFreeBSD-src-fae6f1ab823ff29d6165da7eb2dcae9534b1428c.zip
FreeBSD-src-fae6f1ab823ff29d6165da7eb2dcae9534b1428c.tar.gz
Add INP_INHASHLIST flag for inpcb->inp_flags to indicate whether
or not the inpcb is currenty on various hash lookup lists, rather than using (lport != 0) to detect this. This means that the full 4-tuple of a connection can be retained after close, which should lead to more sensible netstat output in the window between TCP close and socket close. MFC after: 2 weeks
Diffstat (limited to 'sys/netinet/in_pcb.h')
-rw-r--r--sys/netinet/in_pcb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netinet/in_pcb.h b/sys/netinet/in_pcb.h
index 72436f8..677b974 100644
--- a/sys/netinet/in_pcb.h
+++ b/sys/netinet/in_pcb.h
@@ -406,6 +406,7 @@ void inp_4tuple_get(struct inpcb *inp, uint32_t *laddr, uint16_t *lp,
#define INP_DONTFRAG 0x800 /* don't fragment packet */
#define INP_NONLOCALOK 0x1000 /* Allow bind to spoof any address */
/* - requires options IP_NONLOCALBIND */
+#define INP_INHASHLIST 0x2000 /* in_pcbinshash() has been called */
#define IN6P_IPV6_V6ONLY 0x008000 /* restrict AF_INET6 socket for v6 */
OpenPOWER on IntegriCloud