Commit bfd4de36 authored by Martin Schiller's avatar Martin Schiller Committed by Hans Dedecker

interface: fix "if-down" hotplug event handling

commit a97297d8 ("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: a97297d8 ("interface: set interface in TEARDOWN state when checking link state")
Signed-off-by: default avatarMartin Schiller <ms@dev.tdt.de>
parent 361b3e40
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment