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;
}
break;
case PROTO_CMD_TEARDOWN:
+ case PROTO_CMD_RENEW:
break;
}
static struct proto_handler static_proto = {
.name = "static",
- .flags = PROTO_FLAG_IMMEDIATE,
+ .flags = PROTO_FLAG_IMMEDIATE |
+ PROTO_FLAG_FORCE_LINK_DEFAULT,
.config_params = &proto_ip_attr,
.attach = static_attach,
};