diff options
author | Tom Gundersen <teg@jklm.no> | 2015-08-28 20:29:10 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2015-08-31 21:34:58 +0200 |
commit | 99634696183dfabae20104e58157c69029a11594 (patch) | |
tree | baa3505182666eaf47944ce6b1d4c0fd93ce28a7 /src/libsystemd-network/dhcp-server-internal.h | |
parent | d728d7faa6c60f185be72510d87bcc565bc0846a (diff) |
sd-dhcp-server: simplify pool creation
Merge sd_dhcp_server_set_address() and sd_dhcp_server_set_lease_pool() into
sd_dhcp_server_configure_pool() as the behavior of the two former depends
on the order they are called in. The flexibility is not needed, so let's
just do this in one call.
Diffstat (limited to 'src/libsystemd-network/dhcp-server-internal.h')
-rw-r--r-- | src/libsystemd-network/dhcp-server-internal.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libsystemd-network/dhcp-server-internal.h b/src/libsystemd-network/dhcp-server-internal.h index 268210fc50..5dc3c7aa26 100644 --- a/src/libsystemd-network/dhcp-server-internal.h +++ b/src/libsystemd-network/dhcp-server-internal.h @@ -57,8 +57,9 @@ struct sd_dhcp_server { int ifindex; be32_t address; be32_t netmask; - be32_t pool_start; - size_t pool_size; + be32_t subnet; + uint32_t pool_offset; + uint32_t pool_size; char *timezone; @@ -67,6 +68,7 @@ struct sd_dhcp_server { Hashmap *leases_by_client_id; DHCPLease **bound_leases; + DHCPLease invalid_lease; uint32_t max_lease_time, default_lease_time; }; |