1、简介
net_bridge结构是表示网桥的数据结构,其内容如下:
struct net_bridge
{
spinlock_t lock;
struct list_headport_list;
struct net_device*dev;
struct net_device_statsstatistics;
spinlock_thash_lock;
struct hlist_headhash[BR_HASH_SIZE];
struct list_headage_list;
unsigned longfeature_mask;
/* STP */
bridge_iddesignated_root;
bridge_idbridge_id;
u32root_path_cost;
unsigned longmax_age;
unsigned longhello_time;
unsigned longforward_delay;
unsigned longbridge_max_age;
unsigned longageing_time;
unsigned longbridge_hello_time;
unsigned longbridge_forward_delay;
u8group_addr[ET