1
2
3
4
5
6
7
8
9
10
11 #ifndef __LINUX_TC_VLAN_H
12 #define __LINUX_TC_VLAN_H
13
14 #include <linux/pkt_cls.h>
15
16 #define TCA_VLAN_ACT_POP 1
17 #define TCA_VLAN_ACT_PUSH 2
18 #define TCA_VLAN_ACT_MODIFY 3
19
20 struct tc_vlan {
21 tc_gen;
22 int v_action;
23 };
24
25 enum {
26 TCA_VLAN_UNSPEC,
27 TCA_VLAN_TM,
28 TCA_VLAN_PARMS,
29 TCA_VLAN_PUSH_VLAN_ID,
30 TCA_VLAN_PUSH_VLAN_PROTOCOL,
31 TCA_VLAN_PAD,
32 TCA_VLAN_PUSH_VLAN_PRIORITY,
33 __TCA_VLAN_MAX,
34 };
35 #define TCA_VLAN_MAX (__TCA_VLAN_MAX - 1)
36
37 #endif