summaryrefslogtreecommitdiff
path: root/src/network/networkd-netdev.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-05-08 20:50:05 +0200
committerTom Gundersen <teg@jklm.no>2014-05-09 14:41:27 +0200
commit370e9930c3260cc58984ec70e44b1e2ab7676496 (patch)
tree05ee13677924487647d400cb6bcc3b27a7f41f06 /src/network/networkd-netdev.c
parent2cc7e981af27b12a6a3d4f08728281febeb450c9 (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-netdev.c')
-rw-r--r--src/network/networkd-netdev.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/networkd-netdev.c b/src/network/networkd-netdev.c
index c7bec74aa3..36decf459a 100644
--- a/src/network/networkd-netdev.c
+++ b/src/network/networkd-netdev.c
@@ -114,6 +114,8 @@ void netdev_drop(NetDev *netdev) {
netdev->state = NETDEV_STATE_LINGER;
+ log_debug_netdev(netdev, "dropped");
+
netdev_cancel_callbacks(netdev);
netdev_unref(netdev);