diff options
Diffstat (limited to 'src/router.c')
-rw-r--r-- | src/router.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/router.c b/src/router.c index 5abf1e6..945151e 100644 --- a/src/router.c +++ b/src/router.c @@ -219,7 +219,10 @@ static void send_router_advert(struct uloop_timeout *event) .lladdr = {ND_OPT_SOURCE_LINKADDR, 1, {0}}, .mtu = {ND_OPT_MTU, 1, 0, htonl(mtu)}, }; - adv.h.nd_ra_flags_reserved = ND_RA_FLAG_OTHER; + + if (iface->dhcpv6) + adv.h.nd_ra_flags_reserved = ND_RA_FLAG_OTHER; + if (iface->managed >= RELAYD_MANAGED_MFLAG) adv.h.nd_ra_flags_reserved |= ND_RA_FLAG_MANAGED; |