From 5dfd6621d53984c68fbbab49fef4d0a582e80bee Mon Sep 17 00:00:00 2001 From: Rafael Zalamena Date: Thu, 22 Dec 2016 11:04:45 +0000 Subject: Remove PIM support from the multicast stack. ok mpi@ --- sbin/sysctl/sysctl.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'sbin') diff --git a/sbin/sysctl/sysctl.c b/sbin/sysctl/sysctl.c index 1b981f0d067..41aeda92402 100644 --- a/sbin/sysctl/sysctl.c +++ b/sbin/sysctl/sysctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sysctl.c,v 1.223 2016/10/18 09:31:05 otto Exp $ */ +/* $OpenBSD: sysctl.c,v 1.224 2016/12/22 11:04:44 rzalamena Exp $ */ /* $NetBSD: sysctl.c,v 1.9 1995/09/30 07:12:50 thorpej Exp $ */ /* @@ -76,7 +76,6 @@ #include #include #include -#include #include #include @@ -565,8 +564,7 @@ parse(char *string, int flags) if (len < 0) return; - if ((mib[2] == IPPROTO_PIM && mib[3] == PIM6CTL_STATS) || - (mib[2] == IPPROTO_IPV6 && mib[3] == IPV6CTL_MRTMFC) || + if ((mib[2] == IPPROTO_IPV6 && mib[3] == IPV6CTL_MRTMFC) || (mib[2] == IPPROTO_IPV6 && mib[3] == IPV6CTL_MRTMIF) || (mib[2] == IPPROTO_DIVERT && mib[3] == DIVERT6CTL_STATS)) { if (flags == 0) @@ -1989,7 +1987,6 @@ sysctl_inet(char *string, char **bufpp, int mib[], int flags, int *typep) struct ctlname inet6name[] = CTL_IPV6PROTO_NAMES; struct ctlname ip6name[] = IPV6CTL_NAMES; struct ctlname icmp6name[] = ICMPV6CTL_NAMES; -struct ctlname pim6name[] = PIM6CTL_NAMES; struct ctlname divert6name[] = DIVERT6CTL_NAMES; struct list inet6list = { inet6name, IPV6PROTO_MAXID }; struct list inet6vars[] = { @@ -2028,7 +2025,7 @@ struct list inet6vars[] = { /*100*/ { 0, 0 }, { 0, 0 }, { 0, 0 }, - { pim6name, PIM6CTL_MAXID }, /* pim6 */ + { 0, 0 }, /* pim6 */ { 0, 0 }, { 0, 0 }, { 0, 0 }, -- cgit v1.2.3