X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;f=interface.c;h=4c92f10962db451fe23bbceb6a82c48d34ac4c7c;hb=7c5d5bb952cff9fe57d0f4805cc2286318868e02;hp=1f83be32f5a0b269e314632005cb41a2b43ad505;hpb=01901f485a9f6c627fabdd2174f3b315a2e3c9cd;p=project%2Fnetifd.git diff --git a/interface.c b/interface.c index 1f83be3..4c92f10 100644 --- a/interface.c +++ b/interface.c @@ -509,8 +509,8 @@ interface_cleanup_state(struct interface *iface) interface_clear_errors(iface); interface_set_proto_state(iface, NULL); - if (iface->main_dev.dev) - interface_set_main_dev(iface, NULL); + interface_set_main_dev(iface, NULL); + interface_set_l3_dev(iface, NULL); } static void @@ -709,6 +709,7 @@ interface_alloc(const char *name, struct blob_attr *config) void interface_set_dynamic(struct interface *iface) { iface->dynamic = true; + iface->autostart = true; iface->node.version = -1; // Don't delete on reload }