diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-07-05 15:08:55 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-07-05 15:10:43 +0200 |
commit | 0be9a1d0c1db1164a296a70157c01d1e5165d6cc (patch) | |
tree | 64447ff87313efe1aa6ae3bfd7e6b2fcef1a5319 /vlan.c | |
parent | 625a5a26ec6da9e8e7c969b383a5cac7701ed6f6 (diff) |
make vlan devices virtual to avoid avl tree issues with changing ifnames when bound to alias interfaces
Diffstat (limited to 'vlan.c')
-rw-r--r-- | vlan.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -106,7 +106,7 @@ static struct device *get_vlan_device(struct device *dev, int id, bool create) vldev = calloc(1, sizeof(*vldev)); snprintf(vldev->dev.ifname, IFNAMSIZ, "%s.%d", dev->ifname, id); - device_init(&vldev->dev, &vlan_type, NULL); + device_init_virtual(&vldev->dev, &vlan_type, NULL); vldev->dev.default_config = true; vldev->set_state = vldev->dev.set_state; |