br_private.h (cf0f02d04a830c8202e6a8f8bb37acc6c1629a91) br_private.h (fda93d92d7824159d8532995072dde2bee4bc4b3)
1/*
2 * Linux ethernet bridge
3 *
4 * Authors:
5 * Lennert Buytenhek <buytenh@gnu.org>
6 *
7 * $Id: br_private.h,v 1.7 2001/12/24 00:59:55 davem Exp $
8 *

--- 95 unchanged lines hidden (view full) ---

104 unsigned long max_age;
105 unsigned long hello_time;
106 unsigned long forward_delay;
107 unsigned long bridge_max_age;
108 unsigned long ageing_time;
109 unsigned long bridge_hello_time;
110 unsigned long bridge_forward_delay;
111
1/*
2 * Linux ethernet bridge
3 *
4 * Authors:
5 * Lennert Buytenhek <buytenh@gnu.org>
6 *
7 * $Id: br_private.h,v 1.7 2001/12/24 00:59:55 davem Exp $
8 *

--- 95 unchanged lines hidden (view full) ---

104 unsigned long max_age;
105 unsigned long hello_time;
106 unsigned long forward_delay;
107 unsigned long bridge_max_age;
108 unsigned long ageing_time;
109 unsigned long bridge_hello_time;
110 unsigned long bridge_forward_delay;
111
112 u8 group_addr[ETH_ALEN];
112 u16 root_port;
113 unsigned char stp_enabled;
114 unsigned char topology_change;
115 unsigned char topology_change_detected;
116
117 struct timer_list hello_timer;
118 struct timer_list tcn_timer;
119 struct timer_list topology_change_timer;
120 struct timer_list gc_timer;
121 struct kobject ifobj;
122};
123
124extern struct notifier_block br_device_notifier;
113 u16 root_port;
114 unsigned char stp_enabled;
115 unsigned char topology_change;
116 unsigned char topology_change_detected;
117
118 struct timer_list hello_timer;
119 struct timer_list tcn_timer;
120 struct timer_list topology_change_timer;
121 struct timer_list gc_timer;
122 struct kobject ifobj;
123};
124
125extern struct notifier_block br_device_notifier;
125extern const unsigned char bridge_ula[6];
126extern const u8 br_group_address[ETH_ALEN];
126
127/* called under bridge lock */
128static inline int br_is_root_bridge(const struct net_bridge *br)
129{
130 return !memcmp(&br->bridge_id, &br->designated_root, 8);
131}
132
133

--- 117 unchanged lines hidden ---
127
128/* called under bridge lock */
129static inline int br_is_root_bridge(const struct net_bridge *br)
130{
131 return !memcmp(&br->bridge_id, &br->designated_root, 8);
132}
133
134

--- 117 unchanged lines hidden ---