diff options
author | Florian Obser <florian@cvs.openbsd.org> | 2018-04-24 19:53:39 +0000 |
---|---|---|
committer | Florian Obser <florian@cvs.openbsd.org> | 2018-04-24 19:53:39 +0000 |
commit | 200290c1434be8cfc1b95d93723d226f72ddbebe (patch) | |
tree | d464dc12b8ee0126b1b3932c80956efd091b23fc /sys/netinet6 | |
parent | 91d3c8262b6c45291d7af0a6877f9f0243c11f80 (diff) |
Make the ramdisks compile again, we don't have MROUTING on them.
Found the hard way.
Diffstat (limited to 'sys/netinet6')
-rw-r--r-- | sys/netinet6/in6.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/netinet6/in6.c b/sys/netinet6/in6.c index a89c306d713..ac9e25aafc1 100644 --- a/sys/netinet6/in6.c +++ b/sys/netinet6/in6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: in6.c,v 1.221 2018/04/24 15:40:55 pirofti Exp $ */ +/* $OpenBSD: in6.c,v 1.222 2018/04/24 19:53:38 florian Exp $ */ /* $KAME: in6.c,v 1.372 2004/06/14 08:14:21 itojun Exp $ */ /* @@ -188,18 +188,18 @@ in6_control(struct socket *so, u_long cmd, caddr_t data, struct ifnet *ifp) if ((so->so_state & SS_PRIV) != 0) privileged++; -#ifdef MROUTING switch (cmd) { +#ifdef MROUTING case SIOCGETSGCNT_IN6: case SIOCGETMIFCNT_IN6: error = mrt6_ioctl(so, cmd, data); - goto out; - } + break; #endif /* MROUTING */ + default: + error = in6_ioctl(cmd, data, ifp, privileged); + break; + } - error = in6_ioctl(cmd, data, ifp, privileged); - -out: NET_UNLOCK(); return error; } |