2 * Copyright (C) 2000 Lennert Buytenhek
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; either version 2 of the
7 * License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 #include <sys/socket.h>
24 #include <linux/if_bridge.h>
26 /* defined in net/if.h but that conflicts with linux/if.h... */
27 extern unsigned int if_nametoindex (const char *__ifname
);
28 extern char *if_indextoname (unsigned int __ifindex
, char *__ifname
);
32 unsigned char prio
[2];
33 unsigned char addr
[6];
38 struct bridge_id designated_root
;
39 struct bridge_id bridge_id
;
40 unsigned root_path_cost
;
41 struct timeval max_age
;
42 struct timeval hello_time
;
43 struct timeval forward_delay
;
44 struct timeval bridge_max_age
;
45 struct timeval bridge_hello_time
;
46 struct timeval bridge_forward_delay
;
48 unsigned char stp_enabled
;
49 unsigned char topology_change
;
50 unsigned char topology_change_detected
;
51 struct timeval ageing_time
;
52 struct timeval hello_timer_value
;
53 struct timeval tcn_timer_value
;
54 struct timeval topology_change_timer_value
;
55 struct timeval gc_timer_value
;
62 unsigned char is_local
;
63 struct timeval ageing_timer_value
;
69 struct bridge_id designated_root
;
70 struct bridge_id designated_bridge
;
72 u_int16_t designated_port
;
74 unsigned char top_change_ack
;
75 unsigned char config_pending
;
78 unsigned designated_cost
;
79 struct timeval message_age_timer_value
;
80 struct timeval forward_delay_timer_value
;
81 struct timeval hold_timer_value
;