From 111d2769845191e9d37e0f7cd5d9c83f08d4bdaa Mon Sep 17 00:00:00 2001 From: ume Date: Thu, 28 Jun 2001 18:06:15 +0000 Subject: - create an entry of IPV6CTL_STATS sysctl. - fix the problem that netstat doesn't show raw6 and icmp6 pcblist. - make netstat use sysctl to retreive stats of ipv6 and icmpv6 instead of kread. Obtained from: KAME MFC after: 1 week --- sys/netinet6/in6_proto.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/netinet6/in6_proto.c') diff --git a/sys/netinet6/in6_proto.c b/sys/netinet6/in6_proto.c index e73e4bb..1159915 100644 --- a/sys/netinet6/in6_proto.c +++ b/sys/netinet6/in6_proto.c @@ -402,6 +402,8 @@ SYSCTL_INT(_net_inet6_ip6, IPV6CTL_SENDREDIRECTS, redirect, CTLFLAG_RW, &ip6_sendredirects, 0, ""); SYSCTL_INT(_net_inet6_ip6, IPV6CTL_DEFHLIM, hlim, CTLFLAG_RW, &ip6_defhlim, 0, ""); +SYSCTL_STRUCT(_net_inet6_ip6, IPV6CTL_STATS, stats, CTLFLAG_RD, + &ip6stat, ip6stat, ""); SYSCTL_INT(_net_inet6_ip6, IPV6CTL_MAXFRAGPACKETS, maxfragpackets, CTLFLAG_RW, &ip6_maxfragpackets, 0, ""); SYSCTL_INT(_net_inet6_ip6, IPV6CTL_ACCEPT_RTADV, -- cgit v1.1