Introduction to Linux Net_bridge structure __linux

Source: Internet
Author: User

1. Introduction

The Net_bridge structure is the data structure that represents the network bridge, and its contents are as follows:

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;
};

References: Linux 2.6 kernel

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.