linux net_bridge结构简介
来源:互联网 发布:最近网络流行的词语 编辑:程序博客网 时间:2024/06/03 05:06
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[ETH_ALEN];
u16root_port;
enum {
BR_NO_STP,/* no spanning tree */
BR_KERNEL_STP,/* old STP in kernel */
BR_USER_STP,/* new RSTP in userspace */
} stp_enabled;
unsigned chartopology_change;
unsigned chartopology_change_detected;
struct timer_listhello_timer;
struct timer_listtcn_timer;
struct timer_listtopology_change_timer;
struct timer_listgc_timer;
struct kobjectifobj;
};
参考文献:linux 2.6内核
- linux net_bridge结构简介
- Linux 目录结构简介
- Linux 文件结构 简介
- linux目录结构简介
- Linux 文件结构 简介
- linux文件系统目录结构简介
- linux 图形用户界面结构简介
- Linux下的目录结构简介
- Linux文件系统以及目录结构简介
- Linux文件系统以及目录结构简介
- Linux文件系统以及目录结构简介
- Linux-文件系统以及目录结构简介
- Linux文件系统以及目录结构简介
- Linux文件系统以及目录结构简介
- Linux文件系统以及目录结构简介
- Linux下的文件目录结构简介
- Linux文件系统以及目录结构简介
- linux系统的开机加载流程及其系统结构简介
- hdu 1009
- 简明Linux命令行笔记:tr
- 简明Linux命令行笔记:uniq
- 简明Linux命令行笔记:wc
- Meta programming 学习 <二> Template parameter
- linux net_bridge结构简介
- 简明Linux命令行笔记:fmt
- 《Windows网络与通信程序设计》读书笔记----可伸缩服务器系统设计实例
- 不需要显式地声明tld路径了
- ubuntu下emacs的配置(cedit,ecb)
- 在一台Windows电脑上安装多个Mysql服务的方法
- 简明Linux命令行笔记:comm
- 链表的基本操作
- Linux驱动中的异步通知