diff options
Diffstat (limited to 'include/uapi/linux/tc_ematch/tc_em_text.h')
-rw-r--r-- | include/uapi/linux/tc_ematch/tc_em_text.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/uapi/linux/tc_ematch/tc_em_text.h b/include/uapi/linux/tc_ematch/tc_em_text.h new file mode 100644 index 00000000000..5aac4045ba8 --- /dev/null +++ b/include/uapi/linux/tc_ematch/tc_em_text.h | |||
@@ -0,0 +1,19 @@ | |||
1 | #ifndef __LINUX_TC_EM_TEXT_H | ||
2 | #define __LINUX_TC_EM_TEXT_H | ||
3 | |||
4 | #include <linux/types.h> | ||
5 | #include <linux/pkt_cls.h> | ||
6 | |||
7 | #define TC_EM_TEXT_ALGOSIZ 16 | ||
8 | |||
9 | struct tcf_em_text { | ||
10 | char algo[TC_EM_TEXT_ALGOSIZ]; | ||
11 | __u16 from_offset; | ||
12 | __u16 to_offset; | ||
13 | __u16 pattern_len; | ||
14 | __u8 from_layer:4; | ||
15 | __u8 to_layer:4; | ||
16 | __u8 pad; | ||
17 | }; | ||
18 | |||
19 | #endif | ||