summaryrefslogtreecommitdiff
path: root/src/network/networkd-link.h
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-08-08 12:12:17 +0200
committerTom Gundersen <teg@jklm.no>2014-08-12 20:42:59 +0200
commit3c9b886068d99e5d3cbabcac32a4decf37244c54 (patch)
tree202a4ad46576204b03c45d49f4696ebd6c54a4f6 /src/network/networkd-link.h
parent68ba38770640413b4fa06773447666eb88a38d4c (diff)
networkd: link - split out dhcp4 handling
Diffstat (limited to 'src/network/networkd-link.h')
-rw-r--r--src/network/networkd-link.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/network/networkd-link.h b/src/network/networkd-link.h
index 1d0b4665e7..1e64e12e8c 100644
--- a/src/network/networkd-link.h
+++ b/src/network/networkd-link.h
@@ -66,8 +66,7 @@ struct Link {
LinkState state;
LinkOperationalState operstate;
- unsigned addr_messages;
- unsigned route_messages;
+ unsigned link_messages;
unsigned enslaving;
LIST_HEAD(Address, addresses);
@@ -76,11 +75,15 @@ struct Link {
sd_dhcp_lease *dhcp_lease;
char *lease_file;
uint16_t original_mtu;
+ unsigned dhcp4_messages;
+ bool dhcp4_configured;
sd_ipv4ll *ipv4ll;
bool ipv4ll_address;
bool ipv4ll_route;
+ bool static_configured;
+
LIST_HEAD(Address, pool_addresses);
sd_dhcp_server *dhcp_server;
@@ -111,7 +114,11 @@ int link_save(Link *link);
bool link_has_carrier(unsigned flags, uint8_t operstate);
+int link_set_mtu(Link *link, uint32_t mtu);
+int link_set_hostname(Link *link, const char *hostname);
+
int ipv4ll_configure(Link *link);
+int dhcp4_configure(Link *link);
const char* link_state_to_string(LinkState s) _const_;
LinkState link_state_from_string(const char *s) _pure_;