X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=vlan.c;h=1e0628003d890420c5f735b90cc9c4c9229e3731;hp=bf8cfba21b9d948387c8fc6e01cce8851f593c62;hb=e8f450ba2e67716cf3ed70060a309b80aa24cf00;hpb=beaf1b3d4ad313522bdd02f4c561dca94360bd46 diff --git a/vlan.c b/vlan.c index bf8cfba..1e06280 100644 --- a/vlan.c +++ b/vlan.c @@ -94,6 +94,7 @@ static struct device *get_vlan_device(struct device *dev, int id, bool create) snprintf(vldev->dev.ifname, IFNAMSIZ, "%s.%d", dev->ifname, id); device_init(&vldev->dev, &vlan_type, NULL); + vldev->dev.default_config = true; vldev->set_state = vldev->dev.set_state; vldev->dev.set_state = vlan_set_device_state;