diff options
author | ru <ru@FreeBSD.org> | 2001-06-23 17:17:59 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2001-06-23 17:17:59 +0000 |
commit | f8e11dde2671e192fa12edbf3487f63e8e0ade6e (patch) | |
tree | 1118088749c1baef05d754645d1ad80a5646de4e /sys/netinet/tcp_input.c | |
parent | db2094554ee872866a777f43b3a558c744e82e2f (diff) | |
download | FreeBSD-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 'sys/netinet/tcp_input.c')
-rw-r--r-- | sys/netinet/tcp_input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index 225e682..babf03f 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -105,7 +105,7 @@ tcp_seq tcp_iss; tcp_cc tcp_ccgen; struct tcpstat tcpstat; -SYSCTL_STRUCT(_net_inet_tcp, TCPCTL_STATS, stats, CTLFLAG_RD, +SYSCTL_STRUCT(_net_inet_tcp, TCPCTL_STATS, stats, CTLFLAG_RW, &tcpstat , tcpstat, "TCP statistics (struct tcpstat, netinet/tcp_var.h)"); static int log_in_vain = 0; |