ndp: create ICMPv6 socket per interface
[project/odhcpd.git] / src / config.c
index e928536af794bc38036913df0d642b02e2e4232f..64639c91c43c46648205e8b9e80c2b59fb82279c 100644 (file)
@@ -430,6 +430,11 @@ int config_parse_interface(void *data, size_t len, const char *name, bool overwr
 
                iface->name = strcpy(new_name, name);
                iface->avl.key = iface->name;
+               iface->router_event.uloop.fd = -1;
+               iface->dhcpv6_event.uloop.fd = -1;
+               iface->ndp_event.uloop.fd = -1;
+               iface->ndp_ping_fd = -1;
+               iface->dhcpv4_event.uloop.fd = -1;
                set_interface_defaults(iface);
 
                avl_insert(&interfaces, &iface->avl);