diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2014-12-22 15:46:16 +0100 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2014-12-23 14:00:36 +0100 |
commit | 02713a50084b26a927d5d1f95455829d320aa4e1 (patch) | |
tree | 8a35a423c23c79a606babcadb89edf18efe92f76 | |
parent | 19c53807d9dc62782d03c5564630ed1bcb953cd8 (diff) |
netifd: Handle link down event in interface setup state as well
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
-rw-r--r-- | interface.c | 1 |
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); |