diff options
author | Simon Kelley <simon@thekelleys.org.uk> | 2012-12-17 21:54:08 +0000 |
---|---|---|
committer | Simon Kelley <simon@thekelleys.org.uk> | 2012-12-18 18:31:11 +0000 |
commit | 8445f5d2e2cf224edc71b896189a6526e58ec463 (patch) | |
tree | a92d82fd1bde25d716815d0ffd2194a3f8289e84 /src/netlink.c | |
parent | 72c9c3b11bbc448144210abc5fb8ba89813d2fdf (diff) | |
download | dnsmasq-8445f5d2e2cf224edc71b896189a6526e58ec463.tar.gz |
Fix initialisation order.
Diffstat (limited to 'src/netlink.c')
-rw-r--r-- | src/netlink.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/netlink.c b/src/netlink.c index 9090034..db575c3 100644 --- a/src/netlink.c +++ b/src/netlink.c @@ -200,13 +200,19 @@ int iface_enumerate(int family, void *parm, int (*callback)()) after we complete as we're not re-entrant */ if (newaddr) { + time_t now = dnsmasq_time(); + if (option_bool(OPT_CLEVERBIND)) { enumerate_interfaces(); create_bound_listeners(0); } #ifdef HAVE_DHCP6 - dhcp_construct_contexts(dnsmasq_time()); + if (daemon->doing_dhcp6 || daemon->doing_ra) + dhcp_construct_contexts(now); + + if (daemon->doing_dhcp6) + lease_find_interfaces(now); #endif } return callback_ok; |