From 0be9a1d0c1db1164a296a70157c01d1e5165d6cc Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 5 Jul 2012 15:08:55 +0200 Subject: [PATCH] make vlan devices virtual to avoid avl tree issues with changing ifnames when bound to alias interfaces --- vlan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlan.c b/vlan.c index 785cc9e..d1fb70b 100644 --- a/vlan.c +++ b/vlan.c @@ -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; -- 2.11.0