blob: 967d1d5cf98d81e88413f0d9dc2f6a1ecdeeff16 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef __LINUX_BRIDGE_EBT_VLAN_H
2#define __LINUX_BRIDGE_EBT_VLAN_H
3
Jan Engelhardt06988b02011-01-20 17:50:17 +01004#include <linux/types.h>
5
Linus Torvalds1da177e2005-04-16 15:20:36 -07006#define EBT_VLAN_ID 0x01
7#define EBT_VLAN_PRIO 0x02
8#define EBT_VLAN_ENCAP 0x04
9#define EBT_VLAN_MASK (EBT_VLAN_ID | EBT_VLAN_PRIO | EBT_VLAN_ENCAP)
10#define EBT_VLAN_MATCH "vlan"
11
12struct ebt_vlan_info {
Jan Engelhardt0260c1d2011-01-18 07:33:09 +010013 __u16 id; /* VLAN ID {1-4095} */
14 __u8 prio; /* VLAN User Priority {0-7} */
Al Viro47c183fa2006-11-14 21:11:51 -080015 __be16 encap; /* VLAN Encapsulated frame code {0-65535} */
Jan Engelhardt0260c1d2011-01-18 07:33:09 +010016 __u8 bitmask; /* Args bitmask bit 1=1 - ID arg,
Linus Torvalds1da177e2005-04-16 15:20:36 -070017 bit 2=1 User-Priority arg, bit 3=1 encap*/
Jan Engelhardt0260c1d2011-01-18 07:33:09 +010018 __u8 invflags; /* Inverse bitmask bit 1=1 - inversed ID arg,
Linus Torvalds1da177e2005-04-16 15:20:36 -070019 bit 2=1 - inversed Pirority arg */
20};
21
22#endif