diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-04-10 17:21:21 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-04-10 17:21:21 +0200 |
commit | e47461aedf90785f179331ac9a58127aadb3b650 (patch) | |
tree | ae3a5997d01a3d6301d680face7e2ed85256f362 | |
parent | d5452cb41927b580df46f3ac81ed9e77a7c83a51 (diff) |
proto-static: ensure that the l3 device is properly set
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
-rw-r--r-- | proto-static.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/proto-static.c b/proto-static.c index b492d92..51e2083 100644 --- 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; } |