Home | History | Annotate | Download | only in linux
      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_flags {
     29  VLAN_FLAG_REORDER_HDR = 0x1,
     30  VLAN_FLAG_GVRP = 0x2,
     31  VLAN_FLAG_LOOSE_BINDING = 0x4,
     32 };
     33 
     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 };
     41 
     42 struct vlan_ioctl_args {
     43  int cmd;
     44  char device1[24];
     45 
     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;
     54 
     55  short vlan_qos;
     56 };
     57 
     58 #endif
     59 
     60