]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
Build recent match unconditionally
authorPatrick McHardy <kaber@trash.net>
Wed, 5 Sep 2007 13:50:33 +0000 (13:50 +0000)
committerPatrick McHardy <kaber@trash.net>
Wed, 5 Sep 2007 13:50:33 +0000 (13:50 +0000)
extensions/.recent-test [deleted file]
extensions/Makefile
include/linux/netfilter_ipv4/ipt_recent.h [new file with mode: 0644]

diff --git a/extensions/.recent-test b/extensions/.recent-test
deleted file mode 100755 (executable)
index 2a47fc9..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-# True if recent match patch is applied.
-[ -f $KERNEL_DIR/include/linux/netfilter_ipv4/ipt_recent.h ] && echo recent
index 5bea5623c950d2c14feaffc0ea47a662134504fd..a359a62b77ebc0b1b94643fe7f2a5dbb288a09fb 100644 (file)
@@ -5,7 +5,7 @@
 # header files are present in the include/linux directory of this iptables
 # package (HW)
 #
-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
+PF_EXT_SLIB:=ah addrtype conntrack ecn icmp iprange owner policy realm recent 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 dccp 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
 
diff --git a/include/linux/netfilter_ipv4/ipt_recent.h b/include/linux/netfilter_ipv4/ipt_recent.h
new file mode 100644 (file)
index 0000000..6508a45
--- /dev/null
@@ -0,0 +1,27 @@
+#ifndef _IPT_RECENT_H
+#define _IPT_RECENT_H
+
+#define RECENT_NAME    "ipt_recent"
+#define RECENT_VER     "v0.3.1"
+
+#define IPT_RECENT_CHECK  1
+#define IPT_RECENT_SET    2
+#define IPT_RECENT_UPDATE 4
+#define IPT_RECENT_REMOVE 8
+#define IPT_RECENT_TTL   16
+
+#define IPT_RECENT_SOURCE 0
+#define IPT_RECENT_DEST   1
+
+#define IPT_RECENT_NAME_LEN 200
+
+struct ipt_recent_info {
+       u_int32_t   seconds;
+       u_int32_t   hit_count;
+       u_int8_t    check_set;
+       u_int8_t    invert;
+       char        name[IPT_RECENT_NAME_LEN];
+       u_int8_t    side;
+};
+
+#endif /*_IPT_RECENT_H*/