summaryrefslogtreecommitdiff
path: root/vlan.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-10-19 01:32:55 +0200
committerFelix Fietkau <nbd@openwrt.org>2011-10-19 01:32:55 +0200
commitf8276b9b149f3b0c8f3cdf8d3d0c232bd92e3464 (patch)
treeeba0adb88f9e0408740c2855922db80ece63d55e /vlan.c
parentbeecba5195b2f1180f0bdfb6f61f0dbd3dff0eba (diff)
downloadnetifd-f8276b9b149f3b0c8f3cdf8d3d0c232bd92e3464.tar.gz
apply device settings to simple devices with config specified from the interface section (legacy format compatibility), but only if no other config was provided
Diffstat (limited to 'vlan.c')
-rw-r--r--vlan.c1
1 files changed, 1 insertions, 0 deletions
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;