1
2
3
4
5
6
7
8
9
10
11 #ifndef __LINUX_TC_SKBMOD_H
12 #define __LINUX_TC_SKBMOD_H
13
14 #include <linux/pkt_cls.h>
15
16 #define SKBMOD_F_DMAC 0x1
17 #define SKBMOD_F_SMAC 0x2
18 #define SKBMOD_F_ETYPE 0x4
19 #define SKBMOD_F_SWAPMAC 0x8
20
21 struct tc_skbmod {
22 tc_gen;
23 __u64 flags;
24 };
25
26 enum {
27 TCA_SKBMOD_UNSPEC,
28 TCA_SKBMOD_TM,
29 TCA_SKBMOD_PARMS,
30 TCA_SKBMOD_DMAC,
31 TCA_SKBMOD_SMAC,
32 TCA_SKBMOD_ETYPE,
33 TCA_SKBMOD_PAD,
34 __TCA_SKBMOD_MAX
35 };
36 #define TCA_SKBMOD_MAX (__TCA_SKBMOD_MAX - 1)
37
38 #endif