1 /**************************************************************************** 2 **************************************************************************** 3 *** 4 *** This header was automatically generated from a Linux kernel header 5 *** of the same name, to make information necessary for userspace to 6 *** call into the kernel available to libc. It contains only constants, 7 *** structures, and macros generated from the original header, and thus, 8 *** contains no copyrightable information. 9 *** 10 **************************************************************************** 11 ****************************************************************************/ 12 #ifndef _LINUX_IF_VLAN_H_ 13 #define _LINUX_IF_VLAN_H_ 14 15 enum vlan_ioctl_cmds { 16 ADD_VLAN_CMD, 17 DEL_VLAN_CMD, 18 SET_VLAN_INGRESS_PRIORITY_CMD, 19 SET_VLAN_EGRESS_PRIORITY_CMD, 20 GET_VLAN_INGRESS_PRIORITY_CMD, 21 GET_VLAN_EGRESS_PRIORITY_CMD, 22 SET_VLAN_NAME_TYPE_CMD, 23 SET_VLAN_FLAG_CMD, 24 GET_VLAN_REALDEV_NAME_CMD, 25 GET_VLAN_VID_CMD 26 }; 27 28 enum vlan_name_types { 29 VLAN_NAME_TYPE_PLUS_VID, 30 VLAN_NAME_TYPE_RAW_PLUS_VID, 31 VLAN_NAME_TYPE_PLUS_VID_NO_PAD, 32 VLAN_NAME_TYPE_RAW_PLUS_VID_NO_PAD, 33 VLAN_NAME_TYPE_HIGHEST 34 }; 35 36 struct vlan_ioctl_args { 37 int cmd; 38 char device1[24]; 39 40 union { 41 char device2[24]; 42 int VID; 43 unsigned int skb_priority; 44 unsigned int name_type; 45 unsigned int bind_type; 46 unsigned int flag; 47 } u; 48 49 short vlan_qos; 50 }; 51 52 #endif 53