summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPablo Neira Ayuso2005-08-22 08:30:34 +0200
committerDavid S. Miller2005-08-30 01:04:07 +0200
commit7567662ba896ee0c33d6215f32e2011488a6d1bf (patch)
treed259de5c48a54b7017ee21b5a141c223f8b082e6 /include
parent[DCCP]: Fix ackno setting in SYNC/SYNCACK packets (diff)
downloadkernel-qcow2-linux-7567662ba896ee0c33d6215f32e2011488a6d1bf.tar.gz
kernel-qcow2-linux-7567662ba896ee0c33d6215f32e2011488a6d1bf.tar.xz
kernel-qcow2-linux-7567662ba896ee0c33d6215f32e2011488a6d1bf.zip
[NETFILTER]: Add string match
Signed-off-by: Pablo Neira Ayuso <pablo@eurodev.net> Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/linux/netfilter_ipv4/ipt_string.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/linux/netfilter_ipv4/ipt_string.h b/include/linux/netfilter_ipv4/ipt_string.h
new file mode 100644
index 000000000000..a265f6e44eab
--- /dev/null
+++ b/include/linux/netfilter_ipv4/ipt_string.h
@@ -0,0 +1,18 @@
+#ifndef _IPT_STRING_H
+#define _IPT_STRING_H
+
+#define IPT_STRING_MAX_PATTERN_SIZE 128
+#define IPT_STRING_MAX_ALGO_NAME_SIZE 16
+
+struct ipt_string_info
+{
+ u_int16_t from_offset;
+ u_int16_t to_offset;
+ char algo[IPT_STRING_MAX_ALGO_NAME_SIZE];
+ char pattern[IPT_STRING_MAX_PATTERN_SIZE];
+ u_int8_t patlen;
+ u_int8_t invert;
+ struct ts_config __attribute__((aligned(8))) *config;
+};
+
+#endif /*_IPT_STRING_H*/