From 02713a50084b26a927d5d1f95455829d320aa4e1 Mon Sep 17 00:00:00 2001 From: Hans Dedecker Date: Mon, 22 Dec 2014 15:46:16 +0100 Subject: netifd: Handle link down event in interface setup state as well Signed-off-by: Hans Dedecker --- interface.c | 1 + 1 file changed, 1 insertion(+) (limited to 'interface.c') diff --git a/interface.c b/interface.c index 4b5405e..83d7f94 100644 --- a/interface.c +++ b/interface.c @@ -271,6 +271,7 @@ interface_check_state(struct interface *iface) switch (iface->state) { case IFS_UP: + case IFS_SETUP: if (!iface->enabled || !link_state) { interface_proto_event(iface->proto, PROTO_CMD_TEARDOWN, false); mark_interface_down(iface); -- cgit v1.2.3