netdev
[Top] [All Lists]

Re: 3c59x 2.4.18 userspace seeing UDP packets with bad checksum?

To: bert hubert <ahu@xxxxxxx>
Subject: Re: 3c59x 2.4.18 userspace seeing UDP packets with bad checksum?
From: Donald Becker <becker@xxxxxxxxx>
Date: Tue, 30 Jul 2002 10:09:13 -0400 (EDT)
Cc: kuznet@xxxxxxxxxxxxx, <netdev@xxxxxxxxxxx>, <akpm@xxxxxxxxxx>, <jgarzik@xxxxxxxxxxxxxxxx>
In-reply-to: <20020730134908.GA26100@outpost.ds9a.nl>
Sender: owner-netdev@xxxxxxxxxxx
On Tue, 30 Jul 2002, bert hubert wrote:
> On Tue, Jul 30, 2002 at 05:31:44PM +0400, kuznet@xxxxxxxxxxxxx wrote:
> 
> > Well, try to prove that corrupted packet is really received by application.
> > This is not useless work, in any case, you have to cure this place,
> > it should not abort because of invalid data. :-)
> 
> We fixed the bug already :-) Signed/unsigned arithmetic problems.

Were the arithmetic problems in your code, or the kernels checksumming?
(The latter seems unlikely.)

> I have six examples in my log of PowerDNS exiting just after receiving a
> packet with a broken checksum.

Wouldn't this have also happened with valid checksums and invalid data?
This is a good time to fix your application data validity checking.

Note that some network equipment will re-write the IP checksums, just as
some equipment regenerates the link-level frame CRC.  It's not
semantically correct, but claiming that such devices don't exist doesn't
make them go away.

-- 
Donald Becker                           becker@xxxxxxxxx
Scyld Computing Corporation             http://www.scyld.com
410 Severn Ave. Suite 210               Second Generation Beowulf Clusters
Annapolis MD 21403                      410-990-9993


<Prev in Thread] Current Thread [Next in Thread>