blob: 54ce9064115a43a18d9cf5061d7bb09ec1c67614 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef __LINUX_TC_PED_H
2#define __LINUX_TC_PED_H
3
Jaswinder Singh Rajput5dbbf3b2009-01-30 20:11:22 +05304#include <linux/types.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -07005#include <linux/pkt_cls.h>
6
7#define TCA_ACT_PEDIT 7
8
9enum
10{
11 TCA_PEDIT_UNSPEC,
12 TCA_PEDIT_TM,
13 TCA_PEDIT_PARMS,
14 __TCA_PEDIT_MAX
15};
16#define TCA_PEDIT_MAX (__TCA_PEDIT_MAX - 1)
17
18struct tc_pedit_key
19{
20 __u32 mask; /* AND */
21 __u32 val; /*XOR */
22 __u32 off; /*offset */
23 __u32 at;
24 __u32 offmask;
25 __u32 shift;
26};
27
28struct tc_pedit_sel
29{
30 tc_gen;
31 unsigned char nkeys;
32 unsigned char flags;
33 struct tc_pedit_key keys[0];
34};
35#define tc_pedit tc_pedit_sel
36
37#endif