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:
d5452cb
)
proto-static: ensure that the l3 device is properly set
author
Felix Fietkau
<nbd@openwrt.org>
Thu, 10 Apr 2014 15:21:21 +0000
(17:21 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Thu, 10 Apr 2014 15:21:21 +0000
(17:21 +0200)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
proto-static.c
patch
|
blob
|
history
diff --git
a/proto-static.c
b/proto-static.c
index b492d923985dd6ed0f3b6048b44faeca6c9ff30e..51e20836e55db23083cc847122ad1fbda6c1e5f4 100644
(file)
--- a/
proto-static.c
+++ b/
proto-static.c
@@
-33,6
+33,10
@@
struct static_proto_state {
static bool
static_proto_setup(struct static_proto_state *state)
{
+ struct interface *iface = state->proto.iface;
+ struct device *dev = iface->main_dev.dev;
+
+ interface_set_l3_dev(iface, dev);
return proto_apply_static_ip_settings(state->proto.iface, state->config) == 0;
}