diff options
author | Steven Barth <steven@midlink.org> | 2013-12-10 15:56:16 +0100 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2013-12-10 15:56:16 +0100 |
commit | 3d84d7c0b5fa08068b4055c793e1cccd6e0e9ea3 (patch) | |
tree | b523e35225655424a18c091953d6341657252af7 /src/router.c | |
parent | d2e8dc035bbbe8f29533817b892ddd41350b87f8 (diff) |
router: don't send O flag when no dhcpv6 is enabled
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; |