summaryrefslogtreecommitdiffhomepage
path: root/interface.c
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2013-10-17 16:51:49 +0200
committerSteven Barth <steven@midlink.org>2013-10-17 16:51:49 +0200
commit81a3b50ef7fad3096a8d164c871521e6e6b55aa1 (patch)
treee1f1c5bd0e6ea41c98f2dcc11429d8eece78fdf3 /interface.c
parent266d92dd83bd5bfe520f3e2838794bf9bb827c07 (diff)
Add protocol update notifications and hotplug legacy calls
Diffstat (limited to 'interface.c')
-rw-r--r--interface.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/interface.c b/interface.c
index 49fc830..a79de4a 100644
--- a/interface.c
+++ b/interface.c
@@ -378,6 +378,7 @@ interface_alias_cb(struct interface_user *dep, struct interface *iface, enum int
interface_remove_user(dep);
break;
case IFEV_RELOAD:
+ case IFEV_UPDATE:
break;
}
}
@@ -483,8 +484,10 @@ interface_proto_cb(struct interface_proto_state *state, enum interface_proto_eve
switch (ev) {
case IFPEV_UP:
- if (iface->state != IFS_SETUP)
+ if (iface->state != IFS_SETUP) {
+ interface_event(iface, IFEV_UPDATE);
return;
+ }
interface_ip_set_enabled(&iface->config_ip, true);
system_flush_routes();