From: Felix Fietkau Date: Thu, 10 Apr 2014 15:21:21 +0000 (+0200) Subject: proto-static: ensure that the l3 device is properly set X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=commitdiff_plain;h=e47461aedf90785f179331ac9a58127aadb3b650 proto-static: ensure that the l3 device is properly set Signed-off-by: Felix Fietkau --- 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; }