2 * Linux ethernet bridge
5 * Lennert Buytenhek <buytenh@gnu.org>
7 * $Id: if_bridge.h,v 1.1 2000/02/18 16:47:01 davem Exp $
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation; either version
12 * 2 of the License, or (at your option) any later version.
15 #ifndef _LINUX_IF_BRIDGE_H
16 #define _LINUX_IF_BRIDGE_H
18 #include <linux/types.h>
20 #define BRCTL_VERSION 1
22 #define BRCTL_GET_VERSION 0
23 #define BRCTL_GET_BRIDGES 1
24 #define BRCTL_ADD_BRIDGE 2
25 #define BRCTL_DEL_BRIDGE 3
26 #define BRCTL_ADD_IF 4
27 #define BRCTL_DEL_IF 5
28 #define BRCTL_GET_BRIDGE_INFO 6
29 #define BRCTL_GET_PORT_LIST 7
30 #define BRCTL_SET_BRIDGE_FORWARD_DELAY 8
31 #define BRCTL_SET_BRIDGE_HELLO_TIME 9
32 #define BRCTL_SET_BRIDGE_MAX_AGE 10
33 #define BRCTL_SET_AGEING_TIME 11
34 #define BRCTL_SET_GC_INTERVAL 12
35 #define BRCTL_GET_PORT_INFO 13
36 #define BRCTL_SET_BRIDGE_STP_STATE 14
37 #define BRCTL_SET_BRIDGE_PRIORITY 15
38 #define BRCTL_SET_PORT_PRIORITY 16
39 #define BRCTL_SET_PATH_COST 17
40 #define BRCTL_GET_FDB_ENTRIES 18
42 #define BR_STATE_DISABLED 0
43 #define BR_STATE_LISTENING 1
44 #define BR_STATE_LEARNING 2
45 #define BR_STATE_FORWARDING 3
46 #define BR_STATE_BLOCKING 4
50 __u64 designated_root
;
57 __u32 bridge_hello_time
;
58 __u32 bridge_forward_delay
;
60 __u8 topology_change_detected
;
65 __u32 hello_timer_value
;
66 __u32 tcn_timer_value
;
67 __u32 topology_change_timer_value
;
73 __u64 designated_root
;
74 __u64 designated_bridge
;
76 __u16 designated_port
;
78 __u32 designated_cost
;
83 __u32 message_age_timer_value
;
84 __u32 forward_delay_timer_value
;
85 __u32 hold_timer_value
;
93 __u32 ageing_timer_value
;
99 #include <linux/netdevice.h>
102 struct net_bridge_port
;
104 extern int (*br_ioctl_hook
)(unsigned long arg
);
105 extern void (*br_handle_frame_hook
)(struct sk_buff
*skb
);