Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
if_bridge.h
Go to the documentation of this file.
1 /*
2  * Linux ethernet bridge
3  *
4  * Authors:
5  * Lennert Buytenhek <[email protected]>
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version
10  * 2 of the License, or (at your option) any later version.
11  */
12 
13 #ifndef _UAPI_LINUX_IF_BRIDGE_H
14 #define _UAPI_LINUX_IF_BRIDGE_H
15 
16 #include <linux/types.h>
17 
18 #define SYSFS_BRIDGE_ATTR "bridge"
19 #define SYSFS_BRIDGE_FDB "brforward"
20 #define SYSFS_BRIDGE_PORT_SUBDIR "brif"
21 #define SYSFS_BRIDGE_PORT_ATTR "brport"
22 #define SYSFS_BRIDGE_PORT_LINK "bridge"
23 
24 #define BRCTL_VERSION 1
25 
26 #define BRCTL_GET_VERSION 0
27 #define BRCTL_GET_BRIDGES 1
28 #define BRCTL_ADD_BRIDGE 2
29 #define BRCTL_DEL_BRIDGE 3
30 #define BRCTL_ADD_IF 4
31 #define BRCTL_DEL_IF 5
32 #define BRCTL_GET_BRIDGE_INFO 6
33 #define BRCTL_GET_PORT_LIST 7
34 #define BRCTL_SET_BRIDGE_FORWARD_DELAY 8
35 #define BRCTL_SET_BRIDGE_HELLO_TIME 9
36 #define BRCTL_SET_BRIDGE_MAX_AGE 10
37 #define BRCTL_SET_AGEING_TIME 11
38 #define BRCTL_SET_GC_INTERVAL 12
39 #define BRCTL_GET_PORT_INFO 13
40 #define BRCTL_SET_BRIDGE_STP_STATE 14
41 #define BRCTL_SET_BRIDGE_PRIORITY 15
42 #define BRCTL_SET_PORT_PRIORITY 16
43 #define BRCTL_SET_PATH_COST 17
44 #define BRCTL_GET_FDB_ENTRIES 18
45 
46 #define BR_STATE_DISABLED 0
47 #define BR_STATE_LISTENING 1
48 #define BR_STATE_LEARNING 2
49 #define BR_STATE_FORWARDING 3
50 #define BR_STATE_BLOCKING 4
51 
52 struct __bridge_info {
72 };
73 
74 struct __port_info {
88 };
89 
90 struct __fdb_entry {
98 };
99 
100 
101 #endif /* _UAPI_LINUX_IF_BRIDGE_H */