From 59339a768949e3b8a2903539235bbb02e2631445 Mon Sep 17 00:00:00 2001 From: Hans Dedecker Date: Wed, 18 Apr 2018 14:09:47 +0200 Subject: [PATCH] router: fix managed address configuration setting Don't announce managed address configuration in case DHCPv6 is disabled Signed-off-by: Hans Dedecker --- src/router.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/router.c b/src/router.c index feae5c7..992253e 100644 --- a/src/router.c +++ b/src/router.c @@ -279,11 +279,12 @@ static uint64_t send_router_advert(struct interface *iface, const struct in6_add if (hlim > 0) adv.h.nd_ra_curhoplimit = hlim; - if (iface->dhcpv6) + 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; + if (iface->managed >= RELAYD_MANAGED_MFLAG) + adv.h.nd_ra_flags_reserved |= ND_RA_FLAG_MANAGED; + } if (iface->route_preference < 0) adv.h.nd_ra_flags_reserved |= ND_RA_PREF_LOW; -- 2.30.2