转:http://blog.csdn.net/nerdx/article/details/12310031
-
-
-
-
-
1.1 void br_stp_timer_init(struct net_bridge *br)
-
{
-
-
setup_timer(&br->hello_timer, br_hello_timer_expired,
-
(unsigned long) br);
-
-
setup_timer(&br->tcn_timer, br_tcn_timer_expired,
-
(unsigned long) br);
-
-
-
setup_timer(&br->topology_change_timer,
-
br_topology_change_timer_expired,
-
(unsigned long) br);
-
-
setup_timer(&br->gc_timer, br_fdb_cleanup, (unsigned long) br);
-
}
-
-
-
-
-
-
2.1 void br_stp_port_timer_init(struct net_bridge_port *p)
-
{
-
-
setup_timer(&p->message_age_timer, br_message_age_timer_expired,
-
(unsigned long) p);
-
-
setup_timer(&p->forward_delay_timer, br_forward_delay_timer_expired,
-
(unsigned long) p);
-
-
setup_timer(&p->hold_timer, br_hold_timer_expired,
-
(unsigned long) p);
-
}
-
阅读(595) | 评论(0) | 转发(0) |