ipt_TARPIT for Linux 2.6.21
Subsystems (2)
PATCH 1/1 ipt_TARPIT for Linux 2.6.21
Adapt ipt_TARPIT for Linux 2.6.21.
net/ipv4/netfilter/ipt_TARPIT.c +6 -5
@@ -100,7 +100,7 @@ static void tarpit_tcp(struct sk_buff *oskb,struct rtable *ort,int local)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 @@ static void tarpit_tcp(struct sk_buff *oskb,struct rtable *ort,int local)/* 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 @@ static int check(const char *tablename,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 struct ipt_target ipt_tarpit_reg = {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);
Quoted 7 lines · Max Kellermann
Date: Fri, 27 Apr 2007 10:23:43 +0200
From: Max Kellermann <[email protected]>
To: [email protected]
Cc: Patrick McHardy <[email protected]>
Subject: [PATCH]ipt_TARPITfor Linux 2.6.21Adapt
ipt_TARPITfor Linux 2.6.21.
Man... how many more people are gonna submit this...
http://lists.netfilter.org/pipermail/netfilter/2007-April/068385.html
Jan
Quoted 1 line · Jan Engelhardt
Man... how many more people are gonna submit this...
Oops. I must have been blind, though it isn't in SVN yet.
Max
Patrick McHardy
AppliedQuoted 1 line · Max Kellermann
Adapt
ipt_TARPITfor Linux 2.6.21.
Applied, thanks.
Quoted 3 lines · Jan Engelhardt
Man... how many more people are gonna submit this...
http://lists.netfilter.org/pipermail/netfilter/2007-April/068385.html
Again, netfilter@ is not the proper list to submit patches, they won't get applied.