diff options
author | Martin Schiller <ms@dev.tdt.de> | 2019-04-12 09:19:14 +0200 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2019-04-12 14:46:58 +0200 |
commit | bfd4de3666901070d805878e55b02417fef6277c (patch) | |
tree | c5c2413da829bc471687389a0addd906e7fd897a | |
parent | 361b3e404ccf093afa58b147ff18df1b17f6016d (diff) |
interface: fix "if-down" hotplug event handling
commit a97297d83e42 ("interface: set interface in TEARDOWN state when checking link state")
broke the if-down hotplug event handling, as the iface->state is now IFS_TEARDOWN when
calling the mark_interface_down() function from the IFPEV_DOWN event.
Fixes: a97297d83e42 ("interface: set interface in TEARDOWN state when checking link state")
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
-rw-r--r-- | interface.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/interface.c b/interface.c index fd7a826..e0652cd 100644 --- a/interface.c +++ b/interface.c @@ -269,6 +269,7 @@ mark_interface_down(struct interface *iface) iface->state = IFS_DOWN; switch (state) { case IFS_UP: + case IFS_TEARDOWN: interface_event(iface, IFEV_DOWN); break; case IFS_SETUP: |