Dr Andrew Scott G7VAV

My photo
 
June 2025
Mo Tu We Th Fr Sa Su
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 1 2 3 4 5 6


xt_string.h
01: #ifndef _XT_STRING_H
02: #define _XT_STRING_H
03: 
04: #include <linux/types.h>
05: 
06: #define XT_STRING_MAX_PATTERN_SIZE 128
07: #define XT_STRING_MAX_ALGO_NAME_SIZE 16
08: 
09: enum {
10:         XT_STRING_FLAG_INVERT           = 0x01,
11:         XT_STRING_FLAG_IGNORECASE       = 0x02
12: };
13: 
14: struct xt_string_info {
15:         __u16 from_offset;
16:         __u16 to_offset;
17:         char      algo[XT_STRING_MAX_ALGO_NAME_SIZE];
18:         char      pattern[XT_STRING_MAX_PATTERN_SIZE];
19:         __u8  patlen;
20:         union {
21:                 struct {
22:                         __u8  invert;
23:                 } v0;
24: 
25:                 struct {
26:                         __u8  flags;
27:                 } v1;
28:         } u;
29: 
30:         /* Used internally by the kernel */
31:         struct ts_config __attribute__((aligned(8))) *config;
32: };
33: 
34: #endif /*_XT_STRING_H*/
35: 


for client (none)
© Andrew Scott 2006 - 2025,
All Rights Reserved
http://www.andrew-scott.uk/
Andrew Scott
http://www.andrew-scott.co.uk/