summaryrefslogtreecommitdiffhomepage
path: root/interface.c
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2014-12-22 15:46:16 +0100
committerSteven Barth <steven@midlink.org>2014-12-23 14:00:36 +0100
commit02713a50084b26a927d5d1f95455829d320aa4e1 (patch)
tree8a35a423c23c79a606babcadb89edf18efe92f76 /interface.c
parent19c53807d9dc62782d03c5564630ed1bcb953cd8 (diff)
netifd: Handle link down event in interface setup state as well
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'interface.c')
-rw-r--r--interface.c1
1 files changed, 1 insertions, 0 deletions
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);