X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=proto-static.c;h=51e20836e55db23083cc847122ad1fbda6c1e5f4;hp=77a536a0cdce2375d8a08e8a4675bb44e0122481;hb=c430d3278b91369204c83cd135673a5d5cded699;hpb=48ffedb4a2b6701eec99e32e91b8a66a0a4be950 diff --git a/proto-static.c b/proto-static.c index 77a536a..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; } @@ -52,6 +56,7 @@ static_handler(struct interface_proto_state *proto, break; case PROTO_CMD_TEARDOWN: + case PROTO_CMD_RENEW: break; }