1 From: Patrick McHardy <kaber@trash.net>
2 Date: Fri, 18 Jan 2008 16:55:48 +0000 (+0100)
3 Subject: [LIBNL]: Add if_vlan.h
4 X-Git-Url: http://git.kernel.org/?p=libs%2Fnetlink%2Flibnl.git;a=commitdiff_plain;h=e91bb2ffb090955d443e643a25b250bf3d33534a;hp=7f6b7a8eea0334b34d58dec72c66121a76f08958
8 vlan support needs VLAN_FLAG_REORDER_HDR, which is not available in
9 older if_vlan.h versions. Add the current version from the kernel.
11 Signed-off-by: Patrick McHardy <kaber@trash.net>
14 diff --git a/include/linux/if_vlan.h b/include/linux/if_vlan.h
16 index 0000000..068cd7b
18 +++ b/include/linux/if_vlan.h
21 + * VLAN An implementation of 802.1Q VLAN tagging.
23 + * Authors: Ben Greear <greearb@candelatech.com>
25 + * This program is free software; you can redistribute it and/or
26 + * modify it under the terms of the GNU General Public License
27 + * as published by the Free Software Foundation; either version
28 + * 2 of the License, or (at your option) any later version.
32 +#ifndef _LINUX_IF_VLAN_H_
33 +#define _LINUX_IF_VLAN_H_
36 +/* VLAN IOCTLs are found in sockios.h */
38 +/* Passed in vlan_ioctl_args structure to determine behaviour. */
39 +enum vlan_ioctl_cmds {
42 + SET_VLAN_INGRESS_PRIORITY_CMD,
43 + SET_VLAN_EGRESS_PRIORITY_CMD,
44 + GET_VLAN_INGRESS_PRIORITY_CMD,
45 + GET_VLAN_EGRESS_PRIORITY_CMD,
46 + SET_VLAN_NAME_TYPE_CMD,
48 + GET_VLAN_REALDEV_NAME_CMD, /* If this works, you know it's a VLAN device, btw */
49 + GET_VLAN_VID_CMD /* Get the VID of this VLAN (specified by name) */
53 + VLAN_FLAG_REORDER_HDR = 0x1,
56 +enum vlan_name_types {
57 + VLAN_NAME_TYPE_PLUS_VID, /* Name will look like: vlan0005 */
58 + VLAN_NAME_TYPE_RAW_PLUS_VID, /* name will look like: eth1.0005 */
59 + VLAN_NAME_TYPE_PLUS_VID_NO_PAD, /* Name will look like: vlan5 */
60 + VLAN_NAME_TYPE_RAW_PLUS_VID_NO_PAD, /* Name will look like: eth0.5 */
61 + VLAN_NAME_TYPE_HIGHEST
64 +struct vlan_ioctl_args {
65 + int cmd; /* Should be one of the vlan_ioctl_cmds enum above. */
71 + unsigned int skb_priority;
72 + unsigned int name_type;
73 + unsigned int bind_type;
74 + unsigned int flag; /* Matches vlan_dev_info flags */
80 +#endif /* !(_LINUX_IF_VLAN_H_) */