netdev
[Top] [All Lists]

Re: 2.4.18 userspace seeing UDP packets with bad checksum?

To: bert hubert <ahu@xxxxxxx>
Subject: Re: 2.4.18 userspace seeing UDP packets with bad checksum?
From: Andi Kleen <ak@xxxxxxx>
Date: Tue, 30 Jul 2002 14:57:48 +0200
Cc: netdev@xxxxxxxxxxx
In-reply-to: <20020730104815.GA22307@outpost.ds9a.nl>
References: <20020730104815.GA22307@outpost.ds9a.nl>
Sender: owner-netdev@xxxxxxxxxxx
User-agent: Mutt/1.3.22.1i
On Tue, Jul 30, 2002 at 12:48:15PM +0200, bert hubert wrote:
> I'm under the strong impression that 2.4.18 lets userspace see packets with
> incorrect UDP checksums. The packet attached arrived in userspace after
> travelling all the way from Taiwan.
> 
> Is this policy?

Yes. The checksum is checked while doing the copy to user space. When the
checksum fails you still have the already done copy, the kernel does not 
try to undo it.

-Andi


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