From 3d84d7c0b5fa08068b4055c793e1cccd6e0e9ea3 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Tue, 10 Dec 2013 15:56:16 +0100 Subject: router: don't send O flag when no dhcpv6 is enabled --- src/router.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3