From 6519cf31e4b033fd4a03c031ad882166be84fa6d Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 22 Aug 2021 08:00:18 +0200 Subject: bridge: add support for an external STP daemon netifd notifies the stp daemon through the network.device object and sends STP related configuration parameters. The daemon can also trigger a STP restart in order to close the race on init Signed-off-by: Felix Fietkau --- system.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'system.h') diff --git a/system.h b/system.h index ae10c59..c5c4f23 100644 --- a/system.h +++ b/system.h @@ -121,6 +121,8 @@ enum bridge_opt { struct bridge_config { enum bridge_opt flags; bool stp; + bool stp_kernel; + const char *stp_proto; bool igmp_snoop; bool multicast_querier; @@ -208,6 +210,7 @@ int system_bridge_addif(struct device *bridge, struct device *dev); int system_bridge_delif(struct device *bridge, struct device *dev); int system_bridge_vlan(const char *iface, uint16_t vid, bool add, unsigned int vflags); int system_bridge_vlan_check(struct device *dev, char *ifname); +void system_bridge_set_stp_state(struct device *dev, bool val); int system_macvlan_add(struct device *macvlan, struct device *dev, struct macvlan_config *cfg); int system_macvlan_del(struct device *macvlan); -- cgit v1.2.1