From: Patrick McHardy <kaber@trash.net>
To: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Cc: Martin Josefsson <gandalf@wlug.westbo.se>,
Netfilter-devel <netfilter-devel@lists.netfilter.org>
Subject: Re: Checksum problem in tcp-window-tracking
Date: Tue, 15 Jun 2004 20:32:19 +0200 [thread overview]
Message-ID: <40CF40B3.7040109@trash.net> (raw)
In-Reply-To: <Pine.LNX.4.33.0406151510320.15738-100000@blackhole.kfki.hu>
Hi Jozsef,
Jozsef Kadlecsik wrote:
> I committed the fixed version of the patch in cvs. Besides the fix the
> talkative log messages were trimmed in order to fit (better) into the
> ULOG buffer.
I think there is still a problem.
+ if (csum_tcpudp_magic(iph->saddr, iph->daddr,
+ tcplen, IPPROTO_TCP,
+ skb->ip_summed == CHECKSUM_HW
+ && hooknum == NF_IP_PRE_ROUTING
+ ? skb->csum
+ : skb_checksum(skb, iph->ihl*4, tcplen,
0))) {
On the outgoing path, the NIC is supposed to checksum the packet when
CHECKSUM_HW is set, so it hasn't got a valid checksum when the check is
performed. Do we need to check the checksum in LOCAL_OUT at all ?
Other than from raw-sockets, invalid packets can not occur.
Regards
Patrick
PS: Martin, how did you trigger these errors ?
next prev parent reply other threads:[~2004-06-15 18:32 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-12 19:32 Checksum problem in tcp-window-tracking Martin Josefsson
2004-06-13 4:28 ` Patrick McHardy
2004-06-13 20:15 ` Jozsef Kadlecsik
2004-06-15 13:14 ` Jozsef Kadlecsik
2004-06-15 18:32 ` Patrick McHardy [this message]
2004-06-15 18:51 ` Martin Josefsson
2004-06-15 19:06 ` Jozsef Kadlecsik
2004-06-14 8:23 ` Jozsef Kadlecsik
2004-06-14 8:43 ` Martin Josefsson
2004-06-14 8:57 ` Jozsef Kadlecsik
2004-06-14 8:58 ` Martin Josefsson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=40CF40B3.7040109@trash.net \
--to=kaber@trash.net \
--cc=gandalf@wlug.westbo.se \
--cc=kadlec@blackhole.kfki.hu \
--cc=netfilter-devel@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.