1 /*
2  * Linux bridge configuration kernel interface
3  * Copyright (c) 2016, Jouni Malinen <j@w1.fi>
4  *
5  * This software may be distributed under the terms of the BSD license.
6  * See README for more details.
7  */
8 
9 #ifndef LINUX_BRIDGE_H
10 #define LINUX_BRIDGE_H
11 
12 /* This ioctl is defined in linux/sockios.h */
13 
14 #ifndef SIOCBRADDBR
15 #define SIOCBRADDBR 0x89a0
16 #endif
17 #ifndef SIOCBRDELBR
18 #define SIOCBRDELBR 0x89a1
19 #endif
20 #ifndef SIOCBRADDIF
21 #define SIOCBRADDIF 0x89a2
22 #endif
23 #ifndef SIOCBRDELIF
24 #define SIOCBRDELIF 0x89a3
25 #endif
26 
27 /* This interface is defined in linux/if_bridge.h */
28 
29 #define BRCTL_GET_VERSION 0
30 #define BRCTL_GET_BRIDGES 1
31 #define BRCTL_ADD_BRIDGE 2
32 #define BRCTL_DEL_BRIDGE 3
33 #define BRCTL_ADD_IF 4
34 #define BRCTL_DEL_IF 5
35 #define BRCTL_GET_BRIDGE_INFO 6
36 #define BRCTL_GET_PORT_LIST 7
37 #define BRCTL_SET_BRIDGE_FORWARD_DELAY 8
38 
39 #endif /* LINUX_BRIDGE_H */
40