mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-08-20 20:49:19 +03:00
[kernel] netfilter: fix xt_TARPIT on 2.6.24
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10318 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
18076bc44e
commit
c48895bb28
@ -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;
|
||||
+
|
||||
|
Loading…
Reference in New Issue
Block a user