Allow passing in IN6_IFF_AUTOCONF from userland. Needed by slaacd(8)
authorflorian <florian@openbsd.org>
Mon, 29 May 2017 20:28:57 +0000 (20:28 +0000)
committerflorian <florian@openbsd.org>
Mon, 29 May 2017 20:28:57 +0000 (20:28 +0000)
OK naddy

sys/netinet6/in6.c

index a378671..8b619f6 100644 (file)
@@ -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);
                }