diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2019-05-17 21:29:25 +0200 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2019-05-17 21:29:25 +0200 |
commit | d11180932b2fb8784aaad0830c032e42b8bb64ac (patch) | |
tree | 0f0cc379a264e7bb2c903067785f0d16069ab19a /src/dhcpv6-ia.c | |
parent | 41a74cba1bec349d1e1c5be4442e7fddb2d4adf7 (diff) |
router: make RA flags configurable (FS#2019)
Replace the config option ra_management by the config options ra_flags
and ra_slaac. The latter allows to configure the autonomous-address
config flag used for stateless address configuration while the former
allows to configure the RA flags in the form of a list.
The list can hold the following values :
managed-config
other-config
home-agent
none
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'src/dhcpv6-ia.c')
-rw-r--r-- | src/dhcpv6-ia.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dhcpv6-ia.c b/src/dhcpv6-ia.c index c0dfa2d..55b3cd4 100644 --- a/src/dhcpv6-ia.c +++ b/src/dhcpv6-ia.c @@ -687,7 +687,7 @@ static void handle_addrlist_change(struct netevent_handler_info *info) time_t now = odhcpd_time(); list_for_each_entry(c, &iface->ia_assignments, head) { - if (c != border && iface->ra_managed == RA_MANAGED_NO_MFLAG + if (c != border && !(iface->ra_flags & ND_RA_FLAG_MANAGED) && (c->flags & OAF_BOUND)) __apply_lease(iface, c, info->addrs_old.addrs, info->addrs_old.len, false); |