diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-04-19 11:57:50 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-04-19 11:57:50 +0200 |
commit | f06565ce63414c9a1ce558a5ea35f2b6a4ed1605 (patch) | |
tree | 60dedc4fa626f01287beb6a28735eef115d3445c | |
parent | d2a33f3f0fe704e4396fa2ada08401cb955ba7cb (diff) |
interface: ensure that l3_dev gets set whenever the proto handler marks the interface as up
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
-rw-r--r-- | interface.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/interface.c b/interface.c index c861b7d..684fd22 100644 --- a/interface.c +++ b/interface.c @@ -581,6 +581,9 @@ interface_proto_cb(struct interface_proto_state *state, enum interface_proto_eve return; } + if (!iface->l3_dev.dev) + interface_set_l3_dev(iface, iface->main_dev.dev); + interface_ip_set_enabled(&iface->config_ip, true); system_flush_routes(); iface->state = IFS_UP; |