vlan/macvlan: fix NULL pointer dereferences in ethtool handlers
[linux-2.6/mini2440.git] / include / linux / netfilter / xt_string.h
blobecbb95fc89ed274d70b756583293ef5a81bb2891
1 #ifndef _XT_STRING_H
2 #define _XT_STRING_H
4 #include <linux/types.h>
6 #define XT_STRING_MAX_PATTERN_SIZE 128
7 #define XT_STRING_MAX_ALGO_NAME_SIZE 16
9 enum {
10 XT_STRING_FLAG_INVERT = 0x01,
11 XT_STRING_FLAG_IGNORECASE = 0x02
14 struct xt_string_info
16 __u16 from_offset;
17 __u16 to_offset;
18 char algo[XT_STRING_MAX_ALGO_NAME_SIZE];
19 char pattern[XT_STRING_MAX_PATTERN_SIZE];
20 __u8 patlen;
21 union {
22 struct {
23 __u8 invert;
24 } v0;
26 struct {
27 __u8 flags;
28 } v1;
29 } u;
31 /* Used internally by the kernel */
32 struct ts_config __attribute__((aligned(8))) *config;
35 #endif /*_XT_STRING_H*/