summaryrefslogtreecommitdiffstats
path: root/src/ipv6nd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-08-03 16:15:39 +0100
committerRoy Marples <roy@marples.name>2020-08-03 16:15:39 +0100
commit670f1d7519c50679bc4627b57b3250ad56b02898 (patch)
tree40a3e347360753d6ba56f5b4480c15efd7e3cc31 /src/ipv6nd.c
parent59430d295e41b4533a5e695cf3d3f27877a2aaf2 (diff)
downloaddhcpcd-670f1d7519c50679bc4627b57b3250ad56b02898.tar.xz
Linux: IP6 forwaring only applies to "all" interface
Per interface forwarding is apparently only for setting things like IsRouter in NA messages.
Diffstat (limited to 'src/ipv6nd.c')
-rw-r--r--src/ipv6nd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ipv6nd.c b/src/ipv6nd.c
index 009792dc..d1cc4efa 100644
--- a/src/ipv6nd.c
+++ b/src/ipv6nd.c
@@ -544,11 +544,11 @@ ipv6nd_advertise(struct ipv6_addr *ia)
na->nd_na_flags_reserved = ND_NA_FLAG_OVERRIDE;
#if defined(PRIVSEP) && (defined(__linux__) || defined(HAVE_PLEDGE))
if (IN_PRIVSEP(ctx)) {
- if (ps_root_ip6forwarding(ctx, ifp->name) == 1)
+ if (ps_root_ip6forwarding(ctx, ifp->name) != 0)
na->nd_na_flags_reserved |= ND_NA_FLAG_ROUTER;
} else
#endif
- if (ip6_forwarding(ifp->name) == 1)
+ if (ip6_forwarding(ifp->name) != 0)
na->nd_na_flags_reserved |= ND_NA_FLAG_ROUTER;
na->nd_na_target = ia->addr;