summaryrefslogtreecommitdiff
path: root/src/network/networkd-link.h
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-08-06 15:54:03 +0200
committerTom Gundersen <teg@jklm.no>2014-08-12 20:42:59 +0200
commitb22d8a00f48f3c5fc4510b4acd3e1a43e731e592 (patch)
tree67568050b229a99af15b7d4e23feafc2a8a80ed1 /src/network/networkd-link.h
parent431ca2cebbfbf046699b5cb9308e9271b464ed36 (diff)
networkd: link - split out ipv4ll handling
Diffstat (limited to 'src/network/networkd-link.h')
-rw-r--r--src/network/networkd-link.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/network/networkd-link.h b/src/network/networkd-link.h
index 9f54c8c391..1d0b4665e7 100644
--- a/src/network/networkd-link.h
+++ b/src/network/networkd-link.h
@@ -76,7 +76,10 @@ struct Link {
sd_dhcp_lease *dhcp_lease;
char *lease_file;
uint16_t original_mtu;
+
sd_ipv4ll *ipv4ll;
+ bool ipv4ll_address;
+ bool ipv4ll_route;
LIST_HEAD(Address, pool_addresses);
@@ -92,15 +95,24 @@ int link_get(Manager *m, int ifindex, Link **ret);
int link_add(Manager *manager, sd_rtnl_message *message, Link **ret);
void link_drop(Link *link);
-int link_update(Link *link, sd_rtnl_message *message);
-int link_rtnl_process_address(sd_rtnl *rtnl, sd_rtnl_message *message, void *userdata);
+int link_get_address_handler(sd_rtnl *rtnl, sd_rtnl_message *m, void *userdata);
+int link_address_drop_handler(sd_rtnl *rtnl, sd_rtnl_message *m, void *userdata);
+int link_route_drop_handler(sd_rtnl *rtnl, sd_rtnl_message *m, void *userdata);
+void link_enter_failed(Link *link);
int link_initialized(Link *link, struct udev_device *device);
+void link_client_handler(Link *link);
+
+int link_update(Link *link, sd_rtnl_message *message);
+int link_rtnl_process_address(sd_rtnl *rtnl, sd_rtnl_message *message, void *userdata);
+
int link_save(Link *link);
bool link_has_carrier(unsigned flags, uint8_t operstate);
+int ipv4ll_configure(Link *link);
+
const char* link_state_to_string(LinkState s) _const_;
LinkState link_state_from_string(const char *s) _pure_;