The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 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_ |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 14 | |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 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 | }; |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 27 | |
Dmitry Shmidt | 2a8245c | 2010-09-08 11:32:16 -0700 | [diff] [blame] | 28 | enum vlan_flags { |
| 29 | VLAN_FLAG_REORDER_HDR = 0x1, |
| 30 | VLAN_FLAG_GVRP = 0x2, |
| 31 | VLAN_FLAG_LOOSE_BINDING = 0x4, |
| 32 | }; |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 33 | |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 34 | enum vlan_name_types { |
| 35 | VLAN_NAME_TYPE_PLUS_VID, |
| 36 | VLAN_NAME_TYPE_RAW_PLUS_VID, |
| 37 | VLAN_NAME_TYPE_PLUS_VID_NO_PAD, |
| 38 | VLAN_NAME_TYPE_RAW_PLUS_VID_NO_PAD, |
| 39 | VLAN_NAME_TYPE_HIGHEST |
| 40 | }; |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 41 | |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 42 | struct vlan_ioctl_args { |
| 43 | int cmd; |
| 44 | char device1[24]; |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 45 | |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 46 | union { |
| 47 | char device2[24]; |
| 48 | int VID; |
| 49 | unsigned int skb_priority; |
| 50 | unsigned int name_type; |
| 51 | unsigned int bind_type; |
| 52 | unsigned int flag; |
| 53 | } u; |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 54 | |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 55 | short vlan_qos; |
| 56 | }; |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 57 | |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 58 | #endif |
Ben Cheng | 4b29af0 | 2012-03-07 16:14:53 -0800 | [diff] [blame] | 59 | |