summaryrefslogtreecommitdiffstats
path: root/sys/netinet/udp_usrreq.c
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 /sys/netinet/udp_usrreq.c
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 'sys/netinet/udp_usrreq.c')
-rw-r--r--sys/netinet/udp_usrreq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c
index d546b1f..d388538 100644
--- a/sys/netinet/udp_usrreq.c
+++ b/sys/netinet/udp_usrreq.c
@@ -108,7 +108,7 @@ struct inpcbinfo udbinfo;
#endif
struct udpstat udpstat; /* from udp_var.h */
-SYSCTL_STRUCT(_net_inet_udp, UDPCTL_STATS, stats, CTLFLAG_RD,
+SYSCTL_STRUCT(_net_inet_udp, UDPCTL_STATS, stats, CTLFLAG_RW,
&udpstat, udpstat, "UDP statistics (struct udpstat, netinet/udp_var.h)");
static struct sockaddr_in udp_in = { sizeof(udp_in), AF_INET };
OpenPOWER on IntegriCloud