dhcpv6-ia: use dhcp leasetime to set preferred/valid statefull lifetimes
[project/odhcpd.git] / src / odhcpd.h
index ae4826e3c2c72ee95a1acf00157fab44411c69cd..072a148727bb3d9d11a3667ed36afca2aa15294f 100644 (file)
@@ -272,6 +272,9 @@ struct interface {
        uint32_t ra_hoplimit;
        int ra_mtu;
 
+       // DHCP
+       uint32_t dhcp_leasetime;
+
        // DHCPv4
        struct in_addr dhcpv4_start;
        struct in_addr dhcpv4_end;
@@ -284,7 +287,6 @@ struct interface {
        size_t dhcpv4_router_cnt;
        struct in_addr *dhcpv4_dns;
        size_t dhcpv4_dns_cnt;
-       uint32_t dhcpv4_leasetime;
        bool dhcpv4_forcereconf;
 
        // DNS