]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
Build string match unconditionally
authorPatrick McHardy <kaber@trash.net>
Wed, 5 Sep 2007 13:47:58 +0000 (13:47 +0000)
committerPatrick McHardy <kaber@trash.net>
Wed, 5 Sep 2007 13:47:58 +0000 (13:47 +0000)
extensions/.string-testx [deleted file]
extensions/Makefile
include/linux/netfilter/xt_string.h [new file with mode: 0644]

diff --git a/extensions/.string-testx b/extensions/.string-testx
deleted file mode 100755 (executable)
index b8de540..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-#! /bin/sh
-[ -f $KERNEL_DIR/include/linux/netfilter_ipv4/ipt_string.h ] ||                \
-[ -f $KERNEL_DIR/include/linux/netfilter/xt_string.h ] && echo string
index 48e36bdfb78f9bdc632c480e323b761d84186fe5..63f8accd2be890db88281381e925f08caa886310 100644 (file)
@@ -7,7 +7,7 @@
 #
 PF_EXT_SLIB:=ah addrtype conntrack ecn icmp iprange owner policy realm tos ttl unclean DNAT ECN LOG MASQUERADE MIRROR NETMAP REDIRECT REJECT SAME SNAT TOS TTL ULOG
 PF6_EXT_SLIB:=eui64 hl icmp6 owner policy HL LOG
-PFX_EXT_SLIB:=connbytes connmark connlimit comment dscp esp hashlimit helper length limit mac mark multiport physdev pkttype quota sctp state statistic standard tcp tcpmss udp CLASSIFY CONNMARK DSCP MARK NFLOG NFQUEUE NOTRACK TCPMSS TRACE
+PFX_EXT_SLIB:=connbytes connmark connlimit comment dscp esp hashlimit helper length limit mac mark multiport physdev pkttype quota sctp state statistic standard string tcp tcpmss udp CLASSIFY CONNMARK DSCP MARK NFLOG NFQUEUE NOTRACK TCPMSS TRACE
 
 ifeq ($(DO_SELINUX), 1)
 PF_EXT_SE_SLIB:=
diff --git a/include/linux/netfilter/xt_string.h b/include/linux/netfilter/xt_string.h
new file mode 100644 (file)
index 0000000..3b3419f
--- /dev/null
@@ -0,0 +1,18 @@
+#ifndef _XT_STRING_H
+#define _XT_STRING_H
+
+#define XT_STRING_MAX_PATTERN_SIZE 128
+#define XT_STRING_MAX_ALGO_NAME_SIZE 16
+
+struct xt_string_info
+{
+       u_int16_t from_offset;
+       u_int16_t to_offset;
+       char      algo[XT_STRING_MAX_ALGO_NAME_SIZE];
+       char      pattern[XT_STRING_MAX_PATTERN_SIZE];
+       u_int8_t  patlen;
+       u_int8_t  invert;
+       struct ts_config __attribute__((aligned(8))) *config;
+};
+
+#endif /*_XT_STRING_H*/