Blame include/uapi/linux/if_vlan.h

Packit Service 3880ab
/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
Packit Service 3880ab
/*
Packit Service 3880ab
 * VLAN		An implementation of 802.1Q VLAN tagging.
Packit Service 3880ab
 *
Packit Service 3880ab
 * Authors:	Ben Greear <greearb@candelatech.com>
Packit Service 3880ab
 *
Packit Service 3880ab
 *		This program is free software; you can redistribute it and/or
Packit Service 3880ab
 *		modify it under the terms of the GNU General Public License
Packit Service 3880ab
 *		as published by the Free Software Foundation; either version
Packit Service 3880ab
 *		2 of the License, or (at your option) any later version.
Packit Service 3880ab
 *
Packit Service 3880ab
 */
Packit Service 3880ab
Packit Service 3880ab
#ifndef _LINUX_IF_VLAN_H_
Packit Service 3880ab
#define _LINUX_IF_VLAN_H_
Packit Service 3880ab
Packit Service 3880ab
Packit Service 3880ab
/* VLAN IOCTLs are found in sockios.h */
Packit Service 3880ab
Packit Service 3880ab
/* Passed in vlan_ioctl_args structure to determine behaviour. */
Packit Service 3880ab
enum vlan_ioctl_cmds {
Packit Service 3880ab
	ADD_VLAN_CMD,
Packit Service 3880ab
	DEL_VLAN_CMD,
Packit Service 3880ab
	SET_VLAN_INGRESS_PRIORITY_CMD,
Packit Service 3880ab
	SET_VLAN_EGRESS_PRIORITY_CMD,
Packit Service 3880ab
	GET_VLAN_INGRESS_PRIORITY_CMD,
Packit Service 3880ab
	GET_VLAN_EGRESS_PRIORITY_CMD,
Packit Service 3880ab
	SET_VLAN_NAME_TYPE_CMD,
Packit Service 3880ab
	SET_VLAN_FLAG_CMD,
Packit Service 3880ab
	GET_VLAN_REALDEV_NAME_CMD, /* If this works, you know it's a VLAN device, btw */
Packit Service 3880ab
	GET_VLAN_VID_CMD /* Get the VID of this VLAN (specified by name) */
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
enum vlan_flags {
Packit Service 3880ab
	VLAN_FLAG_REORDER_HDR		= 0x1,
Packit Service 3880ab
	VLAN_FLAG_GVRP			= 0x2,
Packit Service 3880ab
	VLAN_FLAG_LOOSE_BINDING		= 0x4,
Packit Service 3880ab
	VLAN_FLAG_MVRP			= 0x8,
Packit Service 3880ab
	VLAN_FLAG_BRIDGE_BINDING	= 0x10,
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
enum vlan_name_types {
Packit Service 3880ab
	VLAN_NAME_TYPE_PLUS_VID, /* Name will look like:  vlan0005 */
Packit Service 3880ab
	VLAN_NAME_TYPE_RAW_PLUS_VID, /* name will look like:  eth1.0005 */
Packit Service 3880ab
	VLAN_NAME_TYPE_PLUS_VID_NO_PAD, /* Name will look like:  vlan5 */
Packit Service 3880ab
	VLAN_NAME_TYPE_RAW_PLUS_VID_NO_PAD, /* Name will look like:  eth0.5 */
Packit Service 3880ab
	VLAN_NAME_TYPE_HIGHEST
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
struct vlan_ioctl_args {
Packit Service 3880ab
	int cmd; /* Should be one of the vlan_ioctl_cmds enum above. */
Packit Service 3880ab
	char device1[24];
Packit Service 3880ab
Packit Service 3880ab
        union {
Packit Service 3880ab
		char device2[24];
Packit Service 3880ab
		int VID;
Packit Service 3880ab
		unsigned int skb_priority;
Packit Service 3880ab
		unsigned int name_type;
Packit Service 3880ab
		unsigned int bind_type;
Packit Service 3880ab
		unsigned int flag; /* Matches vlan_dev_priv flags */
Packit Service 3880ab
        } u;
Packit Service 3880ab
Packit Service 3880ab
	short vlan_qos;   
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
#endif /* _LINUX_IF_VLAN_H_ */