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