diff options
author | Helmut Schaa <helmut.schaa@googlemail.com> | 2014-03-20 16:26:23 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-03-21 16:05:20 +0100 |
commit | 3d317e90f15eec480b23f4dcddb841c292bef690 (patch) | |
tree | 23bd42c83bd676a029fe4536d68de414a606d7c9 /device.h | |
parent | 559df99f259e88edaa7e45826a0ff436f2a07d1a (diff) |
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 <helmut.schaa@googlemail.com>
Diffstat (limited to 'device.h')
-rw-r--r-- | device.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 }; |