interface: fix "ifup-failed" hotplug event handling
authorMartin Schiller <ms@dev.tdt.de>
Tue, 10 Apr 2018 04:21:39 +0000 (06:21 +0200)
committerHans Dedecker <dedeckeh@gmail.com>
Tue, 10 Apr 2018 19:10:18 +0000 (21:10 +0200)
commit7aee60d2a0b4c588701361a55ef21f9cb3c902df
treebbdf1e43c71a0179040f0ba4ba1e249405a819a5
parent3dc8c916a94483bba2eed5ba34ccfc864866bb4e
interface: fix "ifup-failed" hotplug event handling

The ifup-failed event should only be triggered when the former
interface state is IFS_SETUP.

Otherwise, there will also be an ifup-failed event in the
IFS_TEARDOWN stateif you do an manual ifdown <IFC>.

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
interface.c