mm-only debug patch...
[mmotm.git] / include / linux / tc_act / tc_pedit.h
blob54ce9064115a43a18d9cf5061d7bb09ec1c67614
1 #ifndef __LINUX_TC_PED_H
2 #define __LINUX_TC_PED_H
4 #include <linux/types.h>
5 #include <linux/pkt_cls.h>
7 #define TCA_ACT_PEDIT 7
9 enum
11 TCA_PEDIT_UNSPEC,
12 TCA_PEDIT_TM,
13 TCA_PEDIT_PARMS,
14 __TCA_PEDIT_MAX
16 #define TCA_PEDIT_MAX (__TCA_PEDIT_MAX - 1)
18 struct tc_pedit_key
20 __u32 mask; /* AND */
21 __u32 val; /*XOR */
22 __u32 off; /*offset */
23 __u32 at;
24 __u32 offmask;
25 __u32 shift;
28 struct tc_pedit_sel
30 tc_gen;
31 unsigned char nkeys;
32 unsigned char flags;
33 struct tc_pedit_key keys[0];
35 #define tc_pedit tc_pedit_sel
37 #endif