summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat/netstat.1
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2001-06-23 17:17:59 +0000
committerru <ru@FreeBSD.org>2001-06-23 17:17:59 +0000
commitf8e11dde2671e192fa12edbf3487f63e8e0ade6e (patch)
tree1118088749c1baef05d754645d1ad80a5646de4e /usr.bin/netstat/netstat.1
parentdb2094554ee872866a777f43b3a558c744e82e2f (diff)
downloadFreeBSD-src-f8e11dde2671e192fa12edbf3487f63e8e0ade6e.zip
FreeBSD-src-f8e11dde2671e192fa12edbf3487f63e8e0ade6e.tar.gz
Add netstat(1) knob to reset net.inet.{ip|icmp|tcp|udp|igmp}.stats.
For example, ``netstat -s -p ip -z'' will show and reset IP stats. PR: bin/17338
Diffstat (limited to 'usr.bin/netstat/netstat.1')
-rw-r--r--usr.bin/netstat/netstat.13
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.bin/netstat/netstat.1 b/usr.bin/netstat/netstat.1
index 667c29f..9209628 100644
--- a/usr.bin/netstat/netstat.1
+++ b/usr.bin/netstat/netstat.1
@@ -57,6 +57,7 @@
.Op Fl N Ar system
.Nm
.Fl s Op Fl s
+.Op Fl z
.Op Fl f Ar address_family | Fl p Ar protocol
.Op Fl M Ar core
.Op Fl N Ar system
@@ -272,6 +273,8 @@ some fields to overflow.
Show network interface statistics at intervals of
.Ar wait
seconds.
+.It Fl z
+Reset statistics.
.El
.Pp
The default display, for active sockets, shows the local
OpenPOWER on IntegriCloud