projects
/
oweals
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
625a5a2
)
make vlan devices virtual to avoid avl tree issues with changing ifnames when bound...
author
Felix Fietkau
<nbd@openwrt.org>
Thu, 5 Jul 2012 13:08:55 +0000
(15:08 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Thu, 5 Jul 2012 13:10:43 +0000
(15:10 +0200)
vlan.c
patch
|
blob
|
history
diff --git
a/vlan.c
b/vlan.c
index 785cc9e6f01ab1940ef817ec5ad06193fd61c4a7..d1fb70b0c5594440fcd821ed1eea1010d32ccc3f 100644
(file)
--- 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;