Blame view

include/uapi/linux/netfilter/xt_string.h 601 Bytes
2e4e6a17a   Harald Welte   [NETFILTER] x_tab...
1
2
  #ifndef _XT_STRING_H
  #define _XT_STRING_H
60c195c72   Arnd Bergmann   make netfilter us...
3
  #include <linux/types.h>
2e4e6a17a   Harald Welte   [NETFILTER] x_tab...
4
5
  #define XT_STRING_MAX_PATTERN_SIZE 128
  #define XT_STRING_MAX_ALGO_NAME_SIZE 16
4ad3f2616   Joonwoo Park   netfilter: fix st...
6
7
8
9
  enum {
  	XT_STRING_FLAG_INVERT		= 0x01,
  	XT_STRING_FLAG_IGNORECASE	= 0x02
  };
d94d9fee9   Eric Dumazet   net: cleanup incl...
10
  struct xt_string_info {
60c195c72   Arnd Bergmann   make netfilter us...
11
12
  	__u16 from_offset;
  	__u16 to_offset;
2e4e6a17a   Harald Welte   [NETFILTER] x_tab...
13
14
  	char	  algo[XT_STRING_MAX_ALGO_NAME_SIZE];
  	char 	  pattern[XT_STRING_MAX_PATTERN_SIZE];
60c195c72   Arnd Bergmann   make netfilter us...
15
  	__u8  patlen;
4ad3f2616   Joonwoo Park   netfilter: fix st...
16
17
  	union {
  		struct {
60c195c72   Arnd Bergmann   make netfilter us...
18
  			__u8  invert;
4ad3f2616   Joonwoo Park   netfilter: fix st...
19
20
21
  		} v0;
  
  		struct {
60c195c72   Arnd Bergmann   make netfilter us...
22
  			__u8  flags;
4ad3f2616   Joonwoo Park   netfilter: fix st...
23
24
  		} v1;
  	} u;
8b6f3f62f   Jan Engelhardt   [NETFILTER]: Anno...
25
26
  
  	/* Used internally by the kernel */
2e4e6a17a   Harald Welte   [NETFILTER] x_tab...
27
28
29
30
  	struct ts_config __attribute__((aligned(8))) *config;
  };
  
  #endif /*_XT_STRING_H*/