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 --- usr.bin/netstat/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'usr.bin/netstat/main.c') diff --git a/usr.bin/netstat/main.c b/usr.bin/netstat/main.c index d2417de..a6e9966 100644 --- a/usr.bin/netstat/main.c +++ b/usr.bin/netstat/main.c @@ -206,10 +206,10 @@ struct protox ip6protox[] = { tcp_stats, NULL, "tcp", IPPROTO_TCP }, { -1, -1, 1, protopr, udp_stats, NULL, "udp", IPPROTO_UDP }, - { -1, N_IP6STAT, 1, 0, - ip6_stats, ip6_ifstats, "ip6", 0 }, - { -1, N_ICMP6STAT, 1, 0, - icmp6_stats, icmp6_ifstats, "icmp6",0 }, + { -1, N_IP6STAT, 1, protopr, + ip6_stats, ip6_ifstats, "ip6", IPPROTO_RAW }, + { -1, N_ICMP6STAT, 1, protopr, + icmp6_stats, icmp6_ifstats, "icmp6",IPPROTO_ICMPV6 }, #ifdef IPSEC { -1, N_IPSEC6STAT, 1, 0, ipsec_stats, NULL, "ipsec6",0 }, -- cgit v1.1