diff options
author | Tom Gundersen <teg@jklm.no> | 2014-05-08 20:50:05 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-05-09 14:41:27 +0200 |
commit | 370e9930c3260cc58984ec70e44b1e2ab7676496 (patch) | |
tree | 05ee13677924487647d400cb6bcc3b27a7f41f06 /src/network/networkd.h | |
parent | 2cc7e981af27b12a6a3d4f08728281febeb450c9 (diff) |
networkd: link - introduce LINGER state and link_drop()
We need the LINGER state in case we still have references to the link after it has been dropped.
Diffstat (limited to 'src/network/networkd.h')
-rw-r--r-- | src/network/networkd.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/networkd.h b/src/network/networkd.h index bdf9808721..692b3df9ae 100644 --- a/src/network/networkd.h +++ b/src/network/networkd.h @@ -195,6 +195,7 @@ typedef enum LinkState { LINK_STATE_CONFIGURED, LINK_STATE_UNMANAGED, LINK_STATE_FAILED, + LINK_STATE_LINGER, _LINK_STATE_MAX, _LINK_STATE_INVALID = -1 } LinkState; @@ -370,6 +371,7 @@ Link *link_unref(Link *link); Link *link_ref(Link *link); 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); |