[netfilter-cvslog] r6812 -
trunk/patch-o-matic-ng/patchlets/TARPIT/linux-2.6/net/ipv4/netfilter
kaber at trash.net
kaber at trash.net
Fri Apr 27 14:03:38 CEST 2007
Author: kaber at trash.net
Date: 2007-04-27 14:03:37 +0200 (Fri, 27 Apr 2007)
New Revision: 6812
Modified:
trunk/patch-o-matic-ng/patchlets/TARPIT/linux-2.6/net/ipv4/netfilter/ipt_TARPIT.c
Log:
[PATCH] ipt_TARPIT for Linux 2.6.21
Adapt ipt_TARPIT for Linux 2.6.21.
Signed-off-by: Max Kellermann <max at duempel.org>
Modified: trunk/patch-o-matic-ng/patchlets/TARPIT/linux-2.6/net/ipv4/netfilter/ipt_TARPIT.c
===================================================================
--- trunk/patch-o-matic-ng/patchlets/TARPIT/linux-2.6/net/ipv4/netfilter/ipt_TARPIT.c 2007-04-26 16:21:53 UTC (rev 6811)
+++ trunk/patch-o-matic-ng/patchlets/TARPIT/linux-2.6/net/ipv4/netfilter/ipt_TARPIT.c 2007-04-27 12:03:37 UTC (rev 6812)
@@ -100,7 +100,7 @@
return;
/* Check checksum. */
- if (tcp_v4_check(otcph, otcplen, oskb->nh.iph->saddr,
+ if (tcp_v4_check(otcplen, oskb->nh.iph->saddr,
oskb->nh.iph->daddr,
csum_partial((char *)otcph, otcplen, 0)) != 0)
return;
@@ -158,7 +158,7 @@
/* Adjust TCP checksum */
ntcph->check = 0;
- ntcph->check = tcp_v4_check(ntcph, sizeof(struct tcphdr),
+ ntcph->check = tcp_v4_check(sizeof(struct tcphdr),
nskb->nh.iph->saddr,
nskb->nh.iph->daddr,
csum_partial((char *)ntcph,
@@ -269,8 +269,9 @@
return 1;
}
-static struct ipt_target ipt_tarpit_reg = {
+static struct xt_target ipt_tarpit_reg = {
.name = "TARPIT",
+ .family = AF_INET,
.target = tarpit,
.checkentry = check,
.me = THIS_MODULE
@@ -278,12 +279,12 @@
static int __init init(void)
{
- return ipt_register_target(&ipt_tarpit_reg);
+ return xt_register_target(&ipt_tarpit_reg);
}
static void __exit fini(void)
{
- ipt_unregister_target(&ipt_tarpit_reg);
+ xt_unregister_target(&ipt_tarpit_reg);
}
module_init(init);
More information about the netfilter-cvslog
mailing list