diff options
author | Marcelo Araujo <araujo@FreeBSD.org> | 2016-12-28 13:11:22 +0000 |
---|---|---|
committer | Marcelo Araujo <araujo@FreeBSD.org> | 2016-12-28 13:11:22 +0000 |
commit | e9d2c2010821ddd976a0a213068151ae7b57a7d9 (patch) | |
tree | 4145b0083ad69137cc56ceec0c39b1ec16b91a06 /usr.bin | |
parent | 3222b9de29fa5a2afcfb0e391bde6193156f69db (diff) | |
download | src-e9d2c2010821ddd976a0a213068151ae7b57a7d9.tar.gz src-e9d2c2010821ddd976a0a213068151ae7b57a7d9.zip |
Print hostcache usage counts with TCP statistics.
PR: 196252
Submitted by: Anton Yuzhaninov <citrin+pr@citrin.ru>
MFC after: 3 weeks.
Notes
Notes:
svn path=/head/; revision=310698
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/netstat/inet.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/usr.bin/netstat/inet.c b/usr.bin/netstat/inet.c index 6f912ac87e5a..c48d93dfbd5a 100644 --- a/usr.bin/netstat/inet.c +++ b/usr.bin/netstat/inet.c @@ -751,6 +751,12 @@ tcp_stats(u_long off, const char *name, int af1 __unused, int proto __unused) "{N:/ignored RSTs in the window%s}\n"); p(tcps_connects, "\t{:connections-established/%ju} " "{N:/connection%s established (including accepts)}\n"); + p(tcps_usedrtt, "\t\t{:connections-hostcache-rtt/%ju} " + "{N:/time%s used RTT from hostcache}\n"); + p(tcps_usedrttvar, "\t\t{:connections-hostcache-rttvar/%ju} " + "{N:/time%s used RTT variance from hostcache}\n"); + p(tcps_usedssthresh, "\t\t{:connections-hostcache-ssthresh/%ju} " + "{N:/time%s used slow-start threshold from hostcache}\n"); p2(tcps_closed, tcps_drops, "\t{:connections-closed/%ju} " "{N:/connection%s closed (including} " "{:connection-drops/%ju} {N:/drop%s})\n"); |