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