Merge branch 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mfashe...
[linux-2.6] / include / linux / netfilter / xt_string.h
1 #ifndef _XT_STRING_H
2 #define _XT_STRING_H
3
4 #define XT_STRING_MAX_PATTERN_SIZE 128
5 #define XT_STRING_MAX_ALGO_NAME_SIZE 16
6
7 enum {
8         XT_STRING_FLAG_INVERT           = 0x01,
9         XT_STRING_FLAG_IGNORECASE       = 0x02
10 };
11
12 struct xt_string_info
13 {
14         u_int16_t from_offset;
15         u_int16_t to_offset;
16         char      algo[XT_STRING_MAX_ALGO_NAME_SIZE];
17         char      pattern[XT_STRING_MAX_PATTERN_SIZE];
18         u_int8_t  patlen;
19         union {
20                 struct {
21                         u_int8_t  invert;
22                 } v0;
23
24                 struct {
25                         u_int8_t  flags;
26                 } v1;
27         } u;
28
29         /* Used internally by the kernel */
30         struct ts_config __attribute__((aligned(8))) *config;
31 };
32
33 #endif /*_XT_STRING_H*/