diff options
author | Tom Gundersen <teg@jklm.no> | 2013-12-03 18:48:20 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2013-12-04 14:15:13 +0100 |
commit | dd3efc0993b6e95ff04775e9125e2fc9d30fe261 (patch) | |
tree | dddf34390fd4dfdc399305a6b95c4dc9ebcc9c3a /src/network/networkd.h | |
parent | 50b3c42f971f4c9c7791c3b2831f6146ebd15e06 (diff) |
networkd: add link-sense and simplify state-machine a bit
This listens to rtnetlink for changes to IFF_UP and IFF_LOWER_UP (link sense). The latter
is simply logged at the moment, but will be useful once we add dhcp support.
Diffstat (limited to 'src/network/networkd.h')
-rw-r--r-- | src/network/networkd.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/network/networkd.h b/src/network/networkd.h index 1ab8a55a88..075cc1275e 100644 --- a/src/network/networkd.h +++ b/src/network/networkd.h @@ -138,7 +138,6 @@ typedef enum LinkState { LINK_STATE_SET_ADDRESSES, LINK_STATE_ADDRESSES_SET, LINK_STATE_SET_ROUTES, - LINK_STATE_ROUTES_SET, LINK_STATE_CONFIGURED, LINK_STATE_FAILED, _LINK_STATE_MAX, @@ -264,5 +263,7 @@ void link_free(Link *link); int link_add(Manager *manager, struct udev_device *device); int link_configure(Link *link); +int link_update_flags(Link *link, unsigned flags); + DEFINE_TRIVIAL_CLEANUP_FUNC(Link*, link_free); #define _cleanup_link_free_ _cleanup_(link_freep) |