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:
d2a33f3
)
interface: ensure that l3_dev gets set whenever the proto handler marks the interface...
author
Felix Fietkau
<nbd@openwrt.org>
Sat, 19 Apr 2014 09:57:50 +0000
(11:57 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Sat, 19 Apr 2014 09:57:50 +0000
(11:57 +0200)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
interface.c
patch
|
blob
|
history
diff --git
a/interface.c
b/interface.c
index c861b7d16c506774bdd70accdfc060443c8df75c..684fd22d03bb422b7565ec1553c32e1884fccf5d 100644
(file)
--- a/
interface.c
+++ b/
interface.c
@@
-581,6
+581,9
@@
interface_proto_cb(struct interface_proto_state *state, enum interface_proto_eve
return;
}
+ if (!iface->l3_dev.dev)
+ interface_set_l3_dev(iface, iface->main_dev.dev);
+
interface_ip_set_enabled(&iface->config_ip, true);
system_flush_routes();
iface->state = IFS_UP;