summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_reass.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/tcp_reass.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/tcp_reass.c')
-rw-r--r--sys/netinet/tcp_reass.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/tcp_reass.c b/sys/netinet/tcp_reass.c
index 225e682..babf03f 100644
--- a/sys/netinet/tcp_reass.c
+++ b/sys/netinet/tcp_reass.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;
OpenPOWER on IntegriCloud