From a27f57376c094539ee43669c84b6a3c222ffa3c2 Mon Sep 17 00:00:00 2001 From: florian Date: Mon, 29 May 2017 20:28:57 +0000 Subject: [PATCH] Allow passing in IN6_IFF_AUTOCONF from userland. Needed by slaacd(8) OK naddy --- sys/netinet6/in6.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sys/netinet6/in6.c b/sys/netinet6/in6.c index a378671a8bb..8b619f6a78e 100644 --- a/sys/netinet6/in6.c +++ b/sys/netinet6/in6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: in6.c,v 1.205 2017/05/16 12:24:02 mpi Exp $ */ +/* $OpenBSD: in6.c,v 1.206 2017/05/29 20:28:57 florian Exp $ */ /* $KAME: in6.c,v 1.372 2004/06/14 08:14:21 itojun Exp $ */ /* @@ -407,8 +407,7 @@ in6_ioctl(u_long cmd, caddr_t data, struct ifnet *ifp, int privileged) /* reject read-only flags */ if ((ifra->ifra_flags & IN6_IFF_DUPLICATED) != 0 || (ifra->ifra_flags & IN6_IFF_DETACHED) != 0 || - (ifra->ifra_flags & IN6_IFF_DEPRECATED) != 0 || - (ifra->ifra_flags & IN6_IFF_AUTOCONF) != 0) { + (ifra->ifra_flags & IN6_IFF_DEPRECATED) != 0) { return (EINVAL); } -- 2.20.1