summaryrefslogtreecommitdiffstats
path: root/src/ipv6.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-08-03 16:55:51 +0100
committerRoy Marples <roy@marples.name>2020-08-03 16:55:51 +0100
commitc87f17c64c513a9495deb6b0749d90be529af79b (patch)
treea35bc4585dda06071f1a5eefc039080a2fe66cdb /src/ipv6.c
parent6b4c7dd7218ee83d4b2fa1fdd210a1393df7be7a (diff)
downloaddhcpcd-c87f17c64c513a9495deb6b0749d90be529af79b.tar.xz
inet6: Linux will convert NULL to all, so don't specify all
Diffstat (limited to 'src/ipv6.c')
-rw-r--r--src/ipv6.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ipv6.c b/src/ipv6.c
index 5a8b08be..1cd02bec 100644
--- a/src/ipv6.c
+++ b/src/ipv6.c
@@ -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)