diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2005-04-05 20:27:36 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2005-04-05 20:27:36 +0000 |
commit | 1c426f1f218090a86478e6a9ab2db1bef88b1db7 (patch) | |
tree | 654a343090c994a4bab00987c1b8510ff7725efd /usr.bin/netstat/inet.c | |
parent | a6a8b68db3ab80dbf876cb629fcb89f25ab77f2b (diff) |
add tcp sack stats, similar to freebsd; ok deraadt
Diffstat (limited to 'usr.bin/netstat/inet.c')
-rw-r--r-- | usr.bin/netstat/inet.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/usr.bin/netstat/inet.c b/usr.bin/netstat/inet.c index 589f6b8c9cd..f1ea35fe8f9 100644 --- a/usr.bin/netstat/inet.c +++ b/usr.bin/netstat/inet.c @@ -1,4 +1,4 @@ -/* $OpenBSD: inet.c,v 1.94 2005/03/30 17:45:36 deraadt Exp $ */ +/* $OpenBSD: inet.c,v 1.95 2005/04/05 20:27:35 markus Exp $ */ /* $NetBSD: inet.c,v 1.14 1995/10/03 21:42:37 thorpej Exp $ */ /* @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "from: @(#)inet.c 8.4 (Berkeley) 4/20/94"; #else -static const char *rcsid = "$OpenBSD: inet.c,v 1.94 2005/03/30 17:45:36 deraadt Exp $"; +static const char *rcsid = "$OpenBSD: inet.c,v 1.95 2005/04/05 20:27:35 markus Exp $"; #endif #endif /* not lint */ @@ -347,6 +347,15 @@ tcp_stats(u_long off, char *name) "already in the cache\n"); p(tcps_sc_dropped, "\t%qd SYN%s dropped (no route or no space)\n"); + p(tcps_sack_recovery_episode, "\t%qd SACK recovery episode%s\n"); + p(tcps_sack_rexmits, + "\t\t%qd segment rexmit%s in SACK recovery episodes\n"); + p(tcps_sack_rexmit_bytes, + "\t\t%qd byte rexmit%s in SACK recovery episodes\n"); + p(tcps_sack_rcv_opts, + "\t%qd SACK option%s received\n"); + p(tcps_sack_snd_opts, "\t%qd SACK option%s sent\n"); + #undef p #undef p1 #undef p2 |