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_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/ip_input.c')
-rw-r--r-- | sys/netinet/ip_input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index 3cf13cf..2cc3fd6 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -163,7 +163,7 @@ SYSCTL_INT(_net_inet_ip, IPCTL_INTRQDROPS, intr_queue_drops, CTLFLAG_RD, &ipintrq.ifq_drops, 0, "Number of packets dropped from the IP input queue"); struct ipstat ipstat; -SYSCTL_STRUCT(_net_inet_ip, IPCTL_STATS, stats, CTLFLAG_RD, +SYSCTL_STRUCT(_net_inet_ip, IPCTL_STATS, stats, CTLFLAG_RW, &ipstat, ipstat, "IP statistics (struct ipstat, netinet/ip_var.h)"); /* Packet reassembly stuff */ |