netfilter: fix string extension for case insensitive pattern matching
[deliverable/linux.git] / include / linux / netfilter / xt_string.h
CommitLineData
2e4e6a17
HW
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
4ad3f261
JP
7enum {
8 XT_STRING_FLAG_INVERT = 0x01,
9 XT_STRING_FLAG_IGNORECASE = 0x02
10};
11
2e4e6a17
HW
12struct 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;
4ad3f261
JP
19 union {
20 struct {
21 u_int8_t invert;
22 } v0;
23
24 struct {
25 u_int8_t flags;
26 } v1;
27 } u;
8b6f3f62
JE
28
29 /* Used internally by the kernel */
2e4e6a17
HW
30 struct ts_config __attribute__((aligned(8))) *config;
31};
32
33#endif /*_XT_STRING_H*/
This page took 0.429104 seconds and 5 git commands to generate.