projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
interface: fix regression on adding hotplug devices to interfaces
[project/netifd.git]
/
proto-static.c
diff --git
a/proto-static.c
b/proto-static.c
index 77a536a0cdce2375d8a08e8a4675bb44e0122481..3e33c3d872930d08b9e1bef907afa14c0db7507c 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)
{
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;
}
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:
break;
case PROTO_CMD_TEARDOWN:
+ case PROTO_CMD_RENEW:
break;
}
break;
}
@@
-95,7
+100,8
@@
error:
static struct proto_handler static_proto = {
.name = "static",
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,
};
.config_params = &proto_ip_attr,
.attach = static_attach,
};