diff options
Diffstat (limited to 'net/bridge/br_private.h')
-rw-r--r-- | net/bridge/br_private.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/net/bridge/br_private.h b/net/bridge/br_private.h index 3adacdf3406f..974feccd28b1 100644 --- a/net/bridge/br_private.h +++ b/net/bridge/br_private.h | |||
@@ -26,7 +26,10 @@ | |||
26 | #define BR_PORT_BITS 10 | 26 | #define BR_PORT_BITS 10 |
27 | #define BR_MAX_PORTS (1<<BR_PORT_BITS) | 27 | #define BR_MAX_PORTS (1<<BR_PORT_BITS) |
28 | 28 | ||
29 | #define BR_VERSION "2.2" | 29 | #define BR_VERSION "2.3" |
30 | |||
31 | /* Path to usermode spanning tree program */ | ||
32 | #define BR_STP_PROG "/sbin/bridge-stp" | ||
30 | 33 | ||
31 | typedef struct bridge_id bridge_id; | 34 | typedef struct bridge_id bridge_id; |
32 | typedef struct mac_addr mac_addr; | 35 | typedef struct mac_addr mac_addr; |
@@ -107,7 +110,13 @@ struct net_bridge | |||
107 | 110 | ||
108 | u8 group_addr[ETH_ALEN]; | 111 | u8 group_addr[ETH_ALEN]; |
109 | u16 root_port; | 112 | u16 root_port; |
110 | unsigned char stp_enabled; | 113 | |
114 | enum { | ||
115 | BR_NO_STP, /* no spanning tree */ | ||
116 | BR_KERNEL_STP, /* old STP in kernel */ | ||
117 | BR_USER_STP, /* new RSTP in userspace */ | ||
118 | } stp_enabled; | ||
119 | |||
111 | unsigned char topology_change; | 120 | unsigned char topology_change; |
112 | unsigned char topology_change_detected; | 121 | unsigned char topology_change_detected; |
113 | 122 | ||
@@ -127,7 +136,6 @@ static inline int br_is_root_bridge(const struct net_bridge *br) | |||
127 | return !memcmp(&br->bridge_id, &br->designated_root, 8); | 136 | return !memcmp(&br->bridge_id, &br->designated_root, 8); |
128 | } | 137 | } |
129 | 138 | ||
130 | |||
131 | /* br_device.c */ | 139 | /* br_device.c */ |
132 | extern void br_dev_setup(struct net_device *dev); | 140 | extern void br_dev_setup(struct net_device *dev); |
133 | extern int br_dev_xmit(struct sk_buff *skb, struct net_device *dev); | 141 | extern int br_dev_xmit(struct sk_buff *skb, struct net_device *dev); |
@@ -209,6 +217,7 @@ extern void br_become_designated_port(struct net_bridge_port *p); | |||
209 | /* br_stp_if.c */ | 217 | /* br_stp_if.c */ |
210 | extern void br_stp_enable_bridge(struct net_bridge *br); | 218 | extern void br_stp_enable_bridge(struct net_bridge *br); |
211 | extern void br_stp_disable_bridge(struct net_bridge *br); | 219 | extern void br_stp_disable_bridge(struct net_bridge *br); |
220 | extern void br_stp_set_enabled(struct net_bridge *br, unsigned long val); | ||
212 | extern void br_stp_enable_port(struct net_bridge_port *p); | 221 | extern void br_stp_enable_port(struct net_bridge_port *p); |
213 | extern void br_stp_disable_port(struct net_bridge_port *p); | 222 | extern void br_stp_disable_port(struct net_bridge_port *p); |
214 | extern void br_stp_recalculate_bridge_id(struct net_bridge *br); | 223 | extern void br_stp_recalculate_bridge_id(struct net_bridge *br); |