summaryrefslogtreecommitdiffstats
path: root/src/ipv6nd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ipv6nd.c')
-rw-r--r--src/ipv6nd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ipv6nd.c b/src/ipv6nd.c
index ae267c7a..09595bc2 100644
--- a/src/ipv6nd.c
+++ b/src/ipv6nd.c
@@ -524,7 +524,11 @@ ipv6nd_advertise(struct ipv6_addr *ia)
na->nd_na_type = ND_NEIGHBOR_ADVERT;
na->nd_na_flags_reserved = ND_NA_FLAG_OVERRIDE;
+#ifdef HAVE_PLEDGE
+ if (ps_root_ip6_forwarding(ctx) == 1)
+#else
if (ip6_forwarding(ifp->name) == 1)
+#endif
na->nd_na_flags_reserved |= ND_NA_FLAG_ROUTER;
na->nd_na_target = ia->addr;