netifd: Handle link down event in interface setup state as well
authorHans Dedecker <dedeckeh@gmail.com>
Mon, 22 Dec 2014 14:46:16 +0000 (15:46 +0100)
committerSteven Barth <steven@midlink.org>
Tue, 23 Dec 2014 13:00:36 +0000 (14:00 +0100)
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
interface.c

index 4b5405ee228ed07047594e96871495487da15390..83d7f94fe8268354925d65463ca62db7c54d93bf 100644 (file)
@@ -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);