blob: 17d710348901137c58dd82ca561153811d2ba4a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#ifndef _IPT_STRING_H
#define _IPT_STRING_H
/* *** PERFORMANCE TWEAK ***
* Packet size and search string threshold,
* above which sublinear searches is used. */
#define IPT_STRING_HAYSTACK_THRESH 100
#define IPT_STRING_NEEDLE_THRESH 20
#define BM_MAX_NLEN 256
#define BM_MAX_HLEN 1024
typedef char *(*proc_ipt_search) (char *, char *, int, int);
struct ipt_string_info {
char string[BM_MAX_NLEN];
u_int16_t invert;
u_int16_t len;
};
#endif /* _IPT_STRING_H */
|