summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authorHelmut Schaa <helmut.schaa@googlemail.com>2014-03-20 16:26:23 +0100
committerFelix Fietkau <nbd@openwrt.org>2014-03-21 16:05:20 +0100
commit3d317e90f15eec480b23f4dcddb841c292bef690 (patch)
tree23bd42c83bd676a029fe4536d68de414a606d7c9 /proto.h
parent559df99f259e88edaa7e45826a0ff436f2a07d1a (diff)
downloadnetifd-3d317e90f15eec480b23f4dcddb841c292bef690.tar.gz
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 'proto.h')
-rw-r--r--proto.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/proto.h b/proto.h
index e402a91..e7d84ac 100644
--- a/proto.h
+++ b/proto.h
@@ -22,17 +22,20 @@ enum interface_proto_event {
IFPEV_UP,
IFPEV_DOWN,
IFPEV_LINK_LOST,
+ IFPEV_RENEW,
};
enum interface_proto_cmd {
PROTO_CMD_SETUP,
PROTO_CMD_TEARDOWN,
+ PROTO_CMD_RENEW,
};
enum {
PROTO_FLAG_IMMEDIATE = (1 << 0),
PROTO_FLAG_NODEV = (1 << 1),
PROTO_FLAG_INIT_AVAILABLE = (1 << 2),
+ PROTO_FLAG_RENEW_AVAILABLE = (1 << 3),
};
struct interface_proto_state {