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:
bbfa8c1
)
do not attempt to get an interface if PROTO_FLAG_NODEV is set
author
Felix Fietkau
<nbd@openwrt.org>
Sun, 11 Sep 2011 10:32:54 +0000
(12:32 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Sun, 11 Sep 2011 10:32:54 +0000
(12:32 +0200)
interface.c
patch
|
blob
|
history
diff --git
a/interface.c
b/interface.c
index 8c1c006d49be95fddbf8632fd02981bca701ef12..acfe8b156457d60c1c788899d5a728e4ef9bdd06 100644
(file)
--- a/
interface.c
+++ b/
interface.c
@@
-234,7
+234,8
@@
interface_alloc(const char *name, struct blob_attr *attr)
proto_attach_interface(iface, proto_name);
- if ((cur = tb[IFACE_ATTR_IFNAME])) {
+ if (!(iface->proto_handler->flags & PROTO_FLAG_NODEV) &&
+ (cur = tb[IFACE_ATTR_IFNAME])) {
dev = device_get(blobmsg_data(cur), true);
if (dev)
device_add_user(&iface->main_dev, dev);