list_for_each_entry_safe(a, tmp, &l->assignments, lease_list) {
if (a->flags & flag)
+#ifdef DHCPV4_SUPPORT
v6 ? dhcpv6_ia_free_assignment(a) : dhcpv4_free_assignment(a);
+#else
+ dhcpv6_ia_free_assignment(a);
+#endif
}
}
list_for_each_entry(a, &l->assignments, lease_list) {
if (a->flags & OAF_DHCPV6)
dhcpv6_ia_free_assignment(a);
+#ifdef DHCPV4_SUPPORT
else if (a->flags & OAF_DHCPV4)
dhcpv4_free_assignment(a);
+#endif
}
free_lease(l);
const struct in_addr *addr, const char *name, const char *interface);
#endif
-void dhcpv4_free_assignment(struct dhcp_assignment *a);
-
ssize_t dhcpv6_ia_handle_IAs(uint8_t *buf, size_t buflen, struct interface *iface,
const struct sockaddr_in6 *addr, const void *data, const uint8_t *end);
int dhcpv6_ia_init(void);
int ndp_init(void);
#ifdef DHCPV4_SUPPORT
int dhcpv4_init(void);
+void dhcpv4_free_assignment(struct dhcp_assignment *a);
int dhcpv4_setup_interface(struct interface *iface, bool enable);
#endif