summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2009-03-15 09:58:31 +0000
committerrwatson <rwatson@FreeBSD.org>2009-03-15 09:58:31 +0000
commit038bfe209eeb1f951b217069a584edbcc92d0f2c (patch)
treecd3527457fd5c0f562c209d613115359c71177a9 /usr.bin/netstat
parent9fedeedb8d3b7b5964f22521c2fa9bf23fcfa02d (diff)
downloadFreeBSD-src-038bfe209eeb1f951b217069a584edbcc92d0f2c.zip
FreeBSD-src-038bfe209eeb1f951b217069a584edbcc92d0f2c.tar.gz
Correct a number of evolved problems with inp_vflag and inp_flags:
certain flags that should have been in inp_flags ended up in inp_vflag, meaning that they were inconsistently locked, and in one case, interpreted. Move the following flags from inp_vflag to gaps in the inp_flags space (and clean up the inp_flags constants to make gaps more obvious to future takers): INP_TIMEWAIT INP_SOCKREF INP_ONESBCAST INP_DROPPED Some aspects of this change have no effect on kernel ABI at all, as these are UDP/TCP/IP-internal uses; however, netstat and sockstat detect INP_TIMEWAIT when listing TCP sockets, so any MFC will need to take this into account. MFC after: 1 week (or after dependencies are MFC'd) Reviewed by: bz
Diffstat (limited to 'usr.bin/netstat')
-rw-r--r--usr.bin/netstat/inet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/netstat/inet.c b/usr.bin/netstat/inet.c
index 9d82ef3..8be6840 100644
--- a/usr.bin/netstat/inet.c
+++ b/usr.bin/netstat/inet.c
@@ -257,7 +257,7 @@ pcblist_kvm(u_long off, char **bufp, int istcp)
if (istcp) {
if (inp->inp_ppcb == NULL)
bzero(&xt.xt_tp, sizeof xt.xt_tp);
- else if (inp->inp_vflag & INP_TIMEWAIT) {
+ else if (inp->inp_flags & INP_TIMEWAIT) {
bzero(&xt.xt_tp, sizeof xt.xt_tp);
xt.xt_tp.t_state = TCPS_TIME_WAIT;
} else
OpenPOWER on IntegriCloud