Commit | Line | Data |
---|---|---|
2e4e6a17 HW |
1 | #ifndef _XT_STRING_H |
2 | #define _XT_STRING_H | |
3 | ||
60c195c7 AB |
4 | #include <linux/types.h> |
5 | ||
2e4e6a17 HW |
6 | #define XT_STRING_MAX_PATTERN_SIZE 128 |
7 | #define XT_STRING_MAX_ALGO_NAME_SIZE 16 | |
8 | ||
4ad3f261 JP |
9 | enum { |
10 | XT_STRING_FLAG_INVERT = 0x01, | |
11 | XT_STRING_FLAG_IGNORECASE = 0x02 | |
12 | }; | |
13 | ||
d94d9fee | 14 | struct xt_string_info { |
60c195c7 AB |
15 | __u16 from_offset; |
16 | __u16 to_offset; | |
2e4e6a17 HW |
17 | char algo[XT_STRING_MAX_ALGO_NAME_SIZE]; |
18 | char pattern[XT_STRING_MAX_PATTERN_SIZE]; | |
60c195c7 | 19 | __u8 patlen; |
4ad3f261 JP |
20 | union { |
21 | struct { | |
60c195c7 | 22 | __u8 invert; |
4ad3f261 JP |
23 | } v0; |
24 | ||
25 | struct { | |
60c195c7 | 26 | __u8 flags; |
4ad3f261 JP |
27 | } v1; |
28 | } u; | |
8b6f3f62 JE |
29 | |
30 | /* Used internally by the kernel */ | |
2e4e6a17 HW |
31 | struct ts_config __attribute__((aligned(8))) *config; |
32 | }; | |
33 | ||
34 | #endif /*_XT_STRING_H*/ |