aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2008-01-30 07:04:48 +0000
committerGabor Juhos <juhosg@openwrt.org>2008-01-30 07:04:48 +0000
commitf386042ef01c43bb6fcb2d03bebb7d2576d194e3 (patch)
tree0aa1f75b55f0df0598bcc2c203af390627e5defc
parented4be07dd7491902ad06d009432d5a8b42f99575 (diff)
downloadmaster-187ad058-f386042ef01c43bb6fcb2d03bebb7d2576d194e3.tar.gz
master-187ad058-f386042ef01c43bb6fcb2d03bebb7d2576d194e3.tar.bz2
master-187ad058-f386042ef01c43bb6fcb2d03bebb7d2576d194e3.zip
[kernel] netfilter: fix xt_TARPIT on 2.6.24
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10318 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--target/linux/generic-2.6/patches-2.6.24/171-netfilter_tarpit.patch5
1 files changed, 2 insertions, 3 deletions
diff --git a/target/linux/generic-2.6/patches-2.6.24/171-netfilter_tarpit.patch b/target/linux/generic-2.6/patches-2.6.24/171-netfilter_tarpit.patch
index 058dda5c28..f5f5589ff4 100644
--- a/target/linux/generic-2.6/patches-2.6.24/171-netfilter_tarpit.patch
+++ b/target/linux/generic-2.6/patches-2.6.24/171-netfilter_tarpit.patch
@@ -42,7 +42,7 @@ Index: linux-2.6.23/net/netfilter/xt_TARPIT.c
===================================================================
--- /dev/null
+++ linux-2.6.23/net/netfilter/xt_TARPIT.c
-@@ -0,0 +1,280 @@
+@@ -0,0 +1,279 @@
+/*
+ * Kernel module to capture and hold incoming TCP connections using
+ * no local per-connection resources.
@@ -246,14 +246,13 @@ Index: linux-2.6.23/net/netfilter/xt_TARPIT.c
+ kfree_skb(nskb);
+}
+
-+static unsigned int xt_tarpit_target(struct sk_buff **pskb,
++static unsigned int xt_tarpit_target(struct sk_buff *skb,
+ const struct net_device *in,
+ const struct net_device *out,
+ unsigned int hooknum,
+ const struct xt_target *target,
+ const void *targinfo)
+{
-+ const struct sk_buff *skb = *pskb;
+ const struct iphdr *iph = ip_hdr(skb);
+ struct rtable *rt = (void *)skb->dst;
+