interface: fix "if-down" hotplug event handling
authorMartin Schiller <ms@dev.tdt.de>
Fri, 12 Apr 2019 07:19:14 +0000 (09:19 +0200)
committerHans Dedecker <dedeckeh@gmail.com>
Fri, 12 Apr 2019 12:46:58 +0000 (14:46 +0200)
commitbfd4de3666901070d805878e55b02417fef6277c
treec5c2413da829bc471687389a0addd906e7fd897a
parent361b3e404ccf093afa58b147ff18df1b17f6016d
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>
interface.c