diff options
author | Tom Gundersen <teg@jklm.no> | 2014-02-04 23:13:52 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-02-07 15:48:35 +0100 |
commit | a6cc569e33a05b07550c6c7b4d67d83d868f8bc1 (patch) | |
tree | 5b8754fa594896f79ba4cb62772f6b1b49be4325 /src/network/networkd.h | |
parent | d72143bad46b51fc0bbedf01ff92aea8b07afac6 (diff) |
sd-dhcp-client: split sd_dhcp_lease from sd_dhcp_client
This allows us users of the library to keep copies of old leases. This is
used by networkd to know what addresses to drop (if any) when the lease
expires.
In the future this may be used by DNAv4 and sd-dhcp-server.
Diffstat (limited to 'src/network/networkd.h')
-rw-r--r-- | src/network/networkd.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/network/networkd.h b/src/network/networkd.h index 831a9cbdd9..e9ca38f597 100644 --- a/src/network/networkd.h +++ b/src/network/networkd.h @@ -174,18 +174,15 @@ struct Link { Network *network; - Route *dhcp_route; - Address *dhcp_address; - Address *dns; - uint16_t original_mtu; - LinkState state; unsigned addr_messages; unsigned route_messages; unsigned enslaving; - sd_dhcp_client *dhcp; + sd_dhcp_client *dhcp_client; + sd_dhcp_lease *dhcp_lease; + uint16_t original_mtu; }; struct Manager { |