summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat
diff options
context:
space:
mode:
authorguido <guido@FreeBSD.org>1996-02-26 21:47:13 +0000
committerguido <guido@FreeBSD.org>1996-02-26 21:47:13 +0000
commit89b4ca893fe13e54c6d973cb8ba18e9fb0e54dc0 (patch)
treee890c502794e318e0fbf56859dd4046cd36c5744 /usr.bin/netstat
parentbf7c76b5e78a4af38d2a035ffa77e13ef8221015 (diff)
downloadFreeBSD-src-89b4ca893fe13e54c6d973cb8ba18e9fb0e54dc0.zip
FreeBSD-src-89b4ca893fe13e54c6d973cb8ba18e9fb0e54dc0.tar.gz
Add a counter for the number of times the listen queue was overflowed to
the tcpstat structure. (netstat -s) Reviewed by: wollman Obtained from: Steves, TCP/IP Ill. vol.3, page 189
Diffstat (limited to 'usr.bin/netstat')
-rw-r--r--usr.bin/netstat/inet.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/netstat/inet.c b/usr.bin/netstat/inet.c
index 8f1fd95..11ac1ce 100644
--- a/usr.bin/netstat/inet.c
+++ b/usr.bin/netstat/inet.c
@@ -218,6 +218,7 @@ tcp_stats(off, name)
p(tcps_connattempt, "\t%d connection request%s\n");
p(tcps_accepts, "\t%d connection accept%s\n");
p(tcps_badsyn, "\t%d bad connection attempt%s\n");
+ p(tcps_listendrop, "\t%d listen queue overflow%s\n");
p(tcps_connects, "\t%d connection%s established (including accepts)\n");
p2(tcps_closed, tcps_drops,
"\t%d connection%s closed (including %d drop%s)\n");
OpenPOWER on IntegriCloud