Commit f0dd7f80 authored by Simon Kelley's avatar Simon Kelley

Fix new-address logic and ordering for first address on new interface.

parent 0c050242
...@@ -393,17 +393,17 @@ static int nl_async(struct nlmsghdr *h) ...@@ -393,17 +393,17 @@ static int nl_async(struct nlmsghdr *h)
static void nl_newinterface(time_t now) static void nl_newinterface(time_t now)
{ {
if (option_bool(OPT_CLEVERBIND)) if (option_bool(OPT_CLEVERBIND) || daemon->doing_dhcp6 || daemon->doing_ra)
{
enumerate_interfaces(); enumerate_interfaces();
if (option_bool(OPT_CLEVERBIND))
create_bound_listeners(0); create_bound_listeners(0);
}
#ifdef HAVE_DHCP6 #ifdef HAVE_DHCP6
if (daemon->doing_dhcp6 || daemon->doing_ra) if (daemon->doing_dhcp6 || daemon->doing_ra)
{ {
dhcp_construct_contexts(now);
join_multicast(0); join_multicast(0);
dhcp_construct_contexts(now);
} }
if (daemon->doing_dhcp6) if (daemon->doing_dhcp6)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment