system-dummy: print ipv6 addresses on address add/remove
[project/netifd.git] / interface.c
index 72ecf4d975cb64b07c30ebc1ccee9e66153f271e..a5675f7a77a35cc90d441fd755a0b028294219ab 100644 (file)
@@ -185,6 +185,13 @@ interface_proto_cb(struct interface_proto_state *state, enum interface_proto_eve
 
                mark_interface_down(iface);
                break;
+       case IFPEV_LINK_LOST:
+               if (iface->state != IFS_UP)
+                       return;
+
+               iface->state = IFS_SETUP;
+               interface_event(iface, IFEV_DOWN);
+               break;
        }
 }