dhcpv6-ia: don't always send reconf accept option (FS#1377)
[project/odhcpd.git] / src / odhcpd.h
index f1a1119..258d3b6 100644 (file)
@@ -95,6 +95,7 @@ enum odhcpd_assignment_flags {
 
 struct config {
        bool legacy;
+       bool main_dhcpv4;
        char *dhcp_cb;
        char *dhcp_statefile;
        int log_level;
@@ -243,12 +244,16 @@ bool ubus_has_prefix(const char *name, const char *ifname);
 // Exported module initializers
 int init_router(void);
 int init_dhcpv6(void);
+#ifdef DHCPV4_SUPPORT
 int init_dhcpv4(void);
+#endif
 int init_ndp(void);
 
 int setup_router_interface(struct interface *iface, bool enable);
 int setup_dhcpv6_interface(struct interface *iface, bool enable);
 int setup_ndp_interface(struct interface *iface, bool enable);
+#ifdef DHCPV4_SUPPORT
 int setup_dhcpv4_interface(struct interface *iface, bool enable);
+#endif
 
 void odhcpd_reload(void);