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/ip_icmp.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/ip_icmp.c')
-rw-r--r-- | sys/netinet/ip_icmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/ip_icmp.c b/sys/netinet/ip_icmp.c index 7e8c722..4b20dd0 100644 --- a/sys/netinet/ip_icmp.c +++ b/sys/netinet/ip_icmp.c @@ -76,7 +76,7 @@ */ static struct icmpstat icmpstat; -SYSCTL_STRUCT(_net_inet_icmp, ICMPCTL_STATS, stats, CTLFLAG_RD, +SYSCTL_STRUCT(_net_inet_icmp, ICMPCTL_STATS, stats, CTLFLAG_RW, &icmpstat, icmpstat, ""); static int icmpmaskrepl = 0; |