]> git.ipfire.org Git - people/ms/dnsmasq.git/commitdiff
Missed interface re-read path in netlink.c
authorSimon Kelley <simon@thekelleys.org.uk>
Tue, 18 Dec 2012 09:14:57 +0000 (09:14 +0000)
committerSimon Kelley <simon@thekelleys.org.uk>
Tue, 18 Dec 2012 18:31:11 +0000 (18:31 +0000)
src/netlink.c

index db575c3b199202d48bbacdffc47425e845516c0e..1f1c6586e6bbfdee6028ef9e2940a5cb6d1c659d 100644 (file)
@@ -207,6 +207,7 @@ int iface_enumerate(int family, void *parm, int (*callback)())
                    enumerate_interfaces();
                    create_bound_listeners(0);
                  }
+
 #ifdef HAVE_DHCP6
                if (daemon->doing_dhcp6 || daemon->doing_ra)
                  dhcp_construct_contexts(now);
@@ -353,8 +354,13 @@ void netlink_multicast(time_t now)
          enumerate_interfaces();
          create_bound_listeners(0);
        }
+
 #ifdef HAVE_DHCP6
-      dhcp_construct_contexts(now);
+      if (daemon->doing_dhcp6 || daemon->doing_ra)
+       dhcp_construct_contexts(now);   
+
+      if (daemon->doing_dhcp6)
+       lease_find_interfaces(now);
 #endif
     }
 }