1*8d67ca89SAndroid Build Coastguard Worker /* 2*8d67ca89SAndroid Build Coastguard Worker * This file is auto-generated. Modifications will be lost. 3*8d67ca89SAndroid Build Coastguard Worker * 4*8d67ca89SAndroid Build Coastguard Worker * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ 5*8d67ca89SAndroid Build Coastguard Worker * for more information. 6*8d67ca89SAndroid Build Coastguard Worker */ 7*8d67ca89SAndroid Build Coastguard Worker #ifndef _UAPI_LINUX_IF_VLAN_H_ 8*8d67ca89SAndroid Build Coastguard Worker #define _UAPI_LINUX_IF_VLAN_H_ 9*8d67ca89SAndroid Build Coastguard Worker enum vlan_ioctl_cmds { 10*8d67ca89SAndroid Build Coastguard Worker ADD_VLAN_CMD, 11*8d67ca89SAndroid Build Coastguard Worker DEL_VLAN_CMD, 12*8d67ca89SAndroid Build Coastguard Worker SET_VLAN_INGRESS_PRIORITY_CMD, 13*8d67ca89SAndroid Build Coastguard Worker SET_VLAN_EGRESS_PRIORITY_CMD, 14*8d67ca89SAndroid Build Coastguard Worker GET_VLAN_INGRESS_PRIORITY_CMD, 15*8d67ca89SAndroid Build Coastguard Worker GET_VLAN_EGRESS_PRIORITY_CMD, 16*8d67ca89SAndroid Build Coastguard Worker SET_VLAN_NAME_TYPE_CMD, 17*8d67ca89SAndroid Build Coastguard Worker SET_VLAN_FLAG_CMD, 18*8d67ca89SAndroid Build Coastguard Worker GET_VLAN_REALDEV_NAME_CMD, 19*8d67ca89SAndroid Build Coastguard Worker GET_VLAN_VID_CMD 20*8d67ca89SAndroid Build Coastguard Worker }; 21*8d67ca89SAndroid Build Coastguard Worker enum vlan_flags { 22*8d67ca89SAndroid Build Coastguard Worker VLAN_FLAG_REORDER_HDR = 0x1, 23*8d67ca89SAndroid Build Coastguard Worker VLAN_FLAG_GVRP = 0x2, 24*8d67ca89SAndroid Build Coastguard Worker VLAN_FLAG_LOOSE_BINDING = 0x4, 25*8d67ca89SAndroid Build Coastguard Worker VLAN_FLAG_MVRP = 0x8, 26*8d67ca89SAndroid Build Coastguard Worker VLAN_FLAG_BRIDGE_BINDING = 0x10, 27*8d67ca89SAndroid Build Coastguard Worker }; 28*8d67ca89SAndroid Build Coastguard Worker enum vlan_name_types { 29*8d67ca89SAndroid Build Coastguard Worker VLAN_NAME_TYPE_PLUS_VID, 30*8d67ca89SAndroid Build Coastguard Worker VLAN_NAME_TYPE_RAW_PLUS_VID, 31*8d67ca89SAndroid Build Coastguard Worker VLAN_NAME_TYPE_PLUS_VID_NO_PAD, 32*8d67ca89SAndroid Build Coastguard Worker VLAN_NAME_TYPE_RAW_PLUS_VID_NO_PAD, 33*8d67ca89SAndroid Build Coastguard Worker VLAN_NAME_TYPE_HIGHEST 34*8d67ca89SAndroid Build Coastguard Worker }; 35*8d67ca89SAndroid Build Coastguard Worker struct vlan_ioctl_args { 36*8d67ca89SAndroid Build Coastguard Worker int cmd; 37*8d67ca89SAndroid Build Coastguard Worker char device1[24]; 38*8d67ca89SAndroid Build Coastguard Worker union { 39*8d67ca89SAndroid Build Coastguard Worker char device2[24]; 40*8d67ca89SAndroid Build Coastguard Worker int VID; 41*8d67ca89SAndroid Build Coastguard Worker unsigned int skb_priority; 42*8d67ca89SAndroid Build Coastguard Worker unsigned int name_type; 43*8d67ca89SAndroid Build Coastguard Worker unsigned int bind_type; 44*8d67ca89SAndroid Build Coastguard Worker unsigned int flag; 45*8d67ca89SAndroid Build Coastguard Worker } u; 46*8d67ca89SAndroid Build Coastguard Worker short vlan_qos; 47*8d67ca89SAndroid Build Coastguard Worker }; 48*8d67ca89SAndroid Build Coastguard Worker #endif 49