Blame view
include/uapi/linux/netfilter/xt_string.h
601 Bytes
2e4e6a17a
|
1 2 |
#ifndef _XT_STRING_H #define _XT_STRING_H |
60c195c72
|
3 |
#include <linux/types.h> |
2e4e6a17a
|
4 5 |
#define XT_STRING_MAX_PATTERN_SIZE 128 #define XT_STRING_MAX_ALGO_NAME_SIZE 16 |
4ad3f2616
|
6 7 8 9 |
enum { XT_STRING_FLAG_INVERT = 0x01, XT_STRING_FLAG_IGNORECASE = 0x02 }; |
d94d9fee9
|
10 |
struct xt_string_info { |
60c195c72
|
11 12 |
__u16 from_offset; __u16 to_offset; |
2e4e6a17a
|
13 14 |
char algo[XT_STRING_MAX_ALGO_NAME_SIZE]; char pattern[XT_STRING_MAX_PATTERN_SIZE]; |
60c195c72
|
15 |
__u8 patlen; |
4ad3f2616
|
16 17 |
union { struct { |
60c195c72
|
18 |
__u8 invert; |
4ad3f2616
|
19 20 21 |
} v0; struct { |
60c195c72
|
22 |
__u8 flags; |
4ad3f2616
|
23 24 |
} v1; } u; |
8b6f3f62f
|
25 26 |
/* Used internally by the kernel */ |
2e4e6a17a
|
27 28 29 30 |
struct ts_config __attribute__((aligned(8))) *config; }; #endif /*_XT_STRING_H*/ |