summaryrefslogtreecommitdiff
path: root/usr.bin/netstat
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2016-03-21 15:52:28 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2016-03-21 15:52:28 +0000
commit95115698abd8a112b96ae56c328f254615c2a638 (patch)
treeb02dfbe392759118d9deb09babfdadd13f067513 /usr.bin/netstat
parente25b6e904b4dccbcc7eafbcaae3a8202521f0616 (diff)
Add a tcps_sc_seedrandom counter in TCP SYN cache and netstat -s.
This shows how often the hash function is reseeded and the random bucket distribution changes. OK mpi@ claudio@
Diffstat (limited to 'usr.bin/netstat')
-rw-r--r--usr.bin/netstat/inet.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/netstat/inet.c b/usr.bin/netstat/inet.c
index a56d5d51a03..81fb5de0727 100644
--- a/usr.bin/netstat/inet.c
+++ b/usr.bin/netstat/inet.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: inet.c,v 1.144 2015/08/20 22:32:41 deraadt Exp $ */
+/* $OpenBSD: inet.c,v 1.145 2016/03/21 15:52:27 bluhm Exp $ */
/* $NetBSD: inet.c,v 1.14 1995/10/03 21:42:37 thorpej Exp $ */
/*
@@ -455,6 +455,7 @@ tcp_stats(char *name)
p(tcps_sc_dupesyn, "\t%qd duplicate SYN%s received for entries "
"already in the cache\n");
p(tcps_sc_dropped, "\t%qd SYN%s dropped (no route or no space)\n");
+ p(tcps_sc_seedrandom, "\t%qd SYN cache seed%s with new random\n");
p(tcps_sack_recovery_episode, "\t%qd SACK recovery episode%s\n");
p(tcps_sack_rexmits,