From 3d317e90f15eec480b23f4dcddb841c292bef690 Mon Sep 17 00:00:00 2001 From: Helmut Schaa Date: Thu, 20 Mar 2014 16:26:23 +0100 Subject: netifd: Reload proto on topology change Introduce a new device event "topology change" that gets signaled by bridges on adding/removing members. On "topology changes" the proto handlers are requested to "renew" which is most useful for DHCP. Signed-off-by: Helmut Schaa --- device.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'device.h') diff --git a/device.h b/device.h index dd57927..e71027e 100644 --- a/device.h +++ b/device.h @@ -78,6 +78,9 @@ enum device_event { DEV_EVENT_LINK_UP, DEV_EVENT_LINK_DOWN, + /* Topology changed (i.e. bridge member added) */ + DEV_EVENT_TOPO_CHANGE, + __DEV_EVENT_MAX }; -- cgit v1.2.3