summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat
diff options
context:
space:
mode:
authorrpaulo <rpaulo@FreeBSD.org>2008-08-26 15:12:29 +0000
committerrpaulo <rpaulo@FreeBSD.org>2008-08-26 15:12:29 +0000
commit08e8549c49ad71e5e3966a1c1616cb6e7ff009e1 (patch)
tree15890256a0db54e20022a5ce1f2535142668fa65 /usr.bin/netstat
parentccc2330ba755451caffa377d95369e2954970561 (diff)
downloadFreeBSD-src-08e8549c49ad71e5e3966a1c1616cb6e7ff009e1.zip
FreeBSD-src-08e8549c49ad71e5e3966a1c1616cb6e7ff009e1.tar.gz
Add ECN stats.
Diffstat (limited to 'usr.bin/netstat')
-rw-r--r--usr.bin/netstat/inet.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/usr.bin/netstat/inet.c b/usr.bin/netstat/inet.c
index 8343581..3978f46 100644
--- a/usr.bin/netstat/inet.c
+++ b/usr.bin/netstat/inet.c
@@ -682,6 +682,11 @@ tcp_stats(u_long off, const char *name, int af1 __unused, int proto __unused)
p(tcps_sack_send_blocks, "\t%lu SACK option%s (SACK blocks) sent\n");
p1a(tcps_sack_sboverflow, "\t%lu SACK scoreboard overflow\n");
+ p(tcps_ecn_ce, "\t%lu packet%s with ECN CE bit set\n");
+ p(tcps_ecn_ect0, "\t%lu packet%s with ECN ECT(0) bit set\n");
+ p(tcps_ecn_ect1, "\t%lu packet%s with ECN ECT(1) bit set\n");
+ p(tcps_ecn_shs, "\t%lu successful ECN handshake%s\n");
+ p(tcps_ecn_rcwnd, "\t%lu time%s ECN reduced the congestion window\n");
#undef p
#undef p1a
#undef p2
OpenPOWER on IntegriCloud