summaryrefslogtreecommitdiff
path: root/src/network/networkd.h
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-01-01 15:16:34 +0100
committerTom Gundersen <teg@jklm.no>2014-01-01 16:26:27 +0100
commitf5be560181d092c5f52a2b819aedcd48220f36ab (patch)
tree85f5c8da87d1b88bb3a2b5b4d76bd2609a03d80f /src/network/networkd.h
parentf048a16b464295a4e0a4f4c1210f06343ad31231 (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.h10
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 {