reset l3 dev on interface reload
authorFelix Fietkau <nbd@openwrt.org>
Tue, 18 Oct 2011 17:19:02 +0000 (19:19 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 18 Oct 2011 17:19:02 +0000 (19:19 +0200)
interface.c

index 5bbc0c3f77639d9d275a245ae538fc6248be9266..7c8a0c258eaabdb29d215750501140a08ef52c6a 100644 (file)
@@ -215,6 +215,7 @@ interface_cleanup(struct interface *iface)
        interface_clear_errors(iface);
        if (iface->main_dev.dev)
                device_remove_user(&iface->main_dev);
+       iface->l3_dev = &iface->main_dev;
        interface_set_proto_state(iface, NULL);
 }