]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
inet6: Linux will convert NULL to all, so don't specify all
authorRoy Marples <roy@marples.name>
Mon, 3 Aug 2020 15:55:51 +0000 (16:55 +0100)
committerRoy Marples <roy@marples.name>
Mon, 3 Aug 2020 15:55:51 +0000 (16:55 +0100)
src/ipv6.c

index 5a8b08be876a1316c735e04c4f97288223ff99e0..1cd02bec7966fee7f80e5d2b21938acad7a8a185 100644 (file)
@@ -1100,10 +1100,10 @@ ipv6_anyglobal(struct interface *sifp)
         * Per interface only affects IsRouter of NA messages. */
 #if defined(PRIVSEP) && (defined(HAVE_PLEDGE) || defined(__linux__))
        if (IN_PRIVSEP(sifp->ctx))
-               forwarding = ps_root_ip6forwarding(sifp->ctx, "all") != 0;
+               forwarding = ps_root_ip6forwarding(sifp->ctx, NULL) != 0;
        else
 #endif
-               forwarding = ip6_forwarding("all") != 0;
+               forwarding = ip6_forwarding(NULL) != 0;
 
        TAILQ_FOREACH(ifp, sifp->ctx->ifaces, next) {
                if (ifp != sifp && !forwarding)