diff options
author | Tom Gundersen <teg@jklm.no> | 2014-01-01 15:16:34 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-01-01 16:26:27 +0100 |
commit | f5be560181d092c5f52a2b819aedcd48220f36ab (patch) | |
tree | 85f5c8da87d1b88bb3a2b5b4d76bd2609a03d80f /src/network/networkd.h | |
parent | f048a16b464295a4e0a4f4c1210f06343ad31231 (diff) |
networkd: add DHCPv4 support
This adds basic DHCPv4 support. Link-sense is enabled unconditionally,
but the plan is to make that configurable.
I tested this in a VM with lots of NICs and over wifi in the various
coffee shops I found this Christmas, but more testing would definitely
be appreciated.
Diffstat (limited to 'src/network/networkd.h')
-rw-r--r-- | src/network/networkd.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/network/networkd.h b/src/network/networkd.h index 547533fbab..cad81d9b71 100644 --- a/src/network/networkd.h +++ b/src/network/networkd.h @@ -26,6 +26,7 @@ #include "sd-event.h" #include "sd-rtnl.h" +#include "sd-dhcp-client.h" #include "udev.h" #include "rtnl-util.h" @@ -84,6 +85,7 @@ struct Network { char *description; Bridge *bridge; + bool dhcp; LIST_HEAD(Address, static_addresses); LIST_HEAD(Route, static_routes); @@ -153,9 +155,15 @@ struct Link { Network *network; + Route *dhcp_route; + Address *dhcp_address; + LinkState state; - unsigned rtnl_messages; + unsigned addr_messages; + unsigned route_messages; + + sd_dhcp_client *dhcp; }; struct Manager { |