diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2017-08-01 23:14:33 +0200 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2017-08-02 10:09:33 +0200 |
commit | f4d38e0a853e933a4da54fde8ec2711b5dc5b741 (patch) | |
tree | 85fa571925b20bfd7d9a5bbb48e29638d2bf7930 /src/router.c | |
parent | f0d78e7ebfa785fd6037e1f1f711d6c382450c3b (diff) |
treewide: reflect managed mode is related to RA
Improve code readability by renaming managed into ra_managed and
define the according ra_managed flags.
This will help to better understand the ra_managed logic as defined
in the README file.
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'src/router.c')
-rw-r--r-- | src/router.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/router.c b/src/router.c index 19702a2..cb2afc9 100644 --- a/src/router.c +++ b/src/router.c @@ -298,7 +298,7 @@ static uint64_t send_router_advert(struct interface *iface, const struct in6_add if (iface->dhcpv6) adv.h.nd_ra_flags_reserved = ND_RA_FLAG_OTHER; - if (iface->managed >= RELAYD_MANAGED_MFLAG) + if (iface->ra_managed >= RA_MANAGED_MFLAG) adv.h.nd_ra_flags_reserved |= ND_RA_FLAG_MANAGED; if (iface->route_preference < 0) @@ -408,7 +408,7 @@ static uint64_t send_router_advert(struct interface *iface, const struct in6_add p->nd_opt_pi_flags_reserved = 0; if (!iface->ra_not_onlink) p->nd_opt_pi_flags_reserved |= ND_OPT_PI_FLAG_ONLINK; - if (iface->managed < RELAYD_MANAGED_NO_AFLAG && addr->prefix <= 64) + if (iface->ra_managed < RA_MANAGED_NO_AFLAG && addr->prefix <= 64) p->nd_opt_pi_flags_reserved |= ND_OPT_PI_FLAG_AUTO; if (iface->ra_advrouter) p->nd_opt_pi_flags_reserved |= ND_OPT_PI_FLAG_RADDR; |