Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
tc_pedit.h
Go to the documentation of this file.
1 #ifndef __LINUX_TC_PED_H
2 #define __LINUX_TC_PED_H
3 
4 #include <linux/types.h>
5 #include <linux/pkt_cls.h>
6 
7 #define TCA_ACT_PEDIT 7
8 
9 enum {
14 };
15 #define TCA_PEDIT_MAX (__TCA_PEDIT_MAX - 1)
16 
17 struct tc_pedit_key {
18  __u32 mask; /* AND */
19  __u32 val; /*XOR */
20  __u32 off; /*offset */
24 };
25 
26 struct tc_pedit_sel {
28  unsigned char nkeys;
29  unsigned char flags;
30  struct tc_pedit_key keys[0];
31 };
32 #define tc_pedit tc_pedit_sel
33 
34 #endif