Thomas Graf | d675c98 | 2005-06-23 21:00:58 -0700 | [diff] [blame] | 1 | #ifndef __LINUX_TC_EM_TEXT_H |
| 2 | #define __LINUX_TC_EM_TEXT_H |
| 3 | |
Jaswinder Singh Rajput | 30f410a | 2009-01-30 20:14:36 +0530 | [diff] [blame] | 4 | #include <linux/types.h> |
Thomas Graf | d675c98 | 2005-06-23 21:00:58 -0700 | [diff] [blame] | 5 | #include <linux/pkt_cls.h> |
| 6 | |
| 7 | #define TC_EM_TEXT_ALGOSIZ 16 |
| 8 | |
Eric Dumazet | d94d9fe | 2009-11-04 09:50:58 -0800 | [diff] [blame] | 9 | struct tcf_em_text { |
Thomas Graf | d675c98 | 2005-06-23 21:00:58 -0700 | [diff] [blame] | 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 |