summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2019-04-20 11:30:12 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2019-04-20 11:30:12 +0000
commite0300bd3dc458366e94eb1082d0c746b3cad14ce (patch)
tree81fb08c6fc45b92be9d4d5f9c2ddb96c7d06aa2b
parente41c38db1380f8947c9b5943c3a7c5b9ac656ca7 (diff)
Statistics of "netstat -s -f inet6 -p rip6" did not work. In
rip6_sysctl_rip6stat() copy out rip6counters, not ip6counters. OK deraadt@ claudio@
-rw-r--r--sys/netinet6/raw_ip6.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet6/raw_ip6.c b/sys/netinet6/raw_ip6.c
index 25c924b2ee2..1caad919e78 100644
--- a/sys/netinet6/raw_ip6.c
+++ b/sys/netinet6/raw_ip6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: raw_ip6.c,v 1.134 2019/02/04 21:40:52 bluhm Exp $ */
+/* $OpenBSD: raw_ip6.c,v 1.135 2019/04/20 11:30:11 bluhm Exp $ */
/* $KAME: raw_ip6.c,v 1.69 2001/03/04 15:55:44 itojun Exp $ */
/*
@@ -759,7 +759,7 @@ rip6_sysctl_rip6stat(void *oldp, size_t *oldplen, void *newp)
struct rip6stat rip6stat;
CTASSERT(sizeof(rip6stat) == rip6s_ncounters * sizeof(uint64_t));
- counters_read(ip6counters, (uint64_t *)&rip6stat, rip6s_ncounters);
+ counters_read(rip6counters, (uint64_t *)&rip6stat, rip6s_ncounters);
return (sysctl_rdstruct(oldp, oldplen, newp,
&rip6stat, sizeof(rip6stat)));