lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] Re: Checksum calculations


From: Jonathan Larmour
Subject: Re: [lwip-users] Re: Checksum calculations
Date: Wed, 23 Jan 2008 18:58:48 +0000
User-agent: Thunderbird 1.5.0.12 (X11/20070530)

Sourath Roy wrote:
> Hello!
> I am porting some network applications from Linux to lwIP stack. So far
> the progress has been good, but while some stress tests I often see
> checksum errors being reported by the network sniffer.

I presume this occurs only with data sent from lwIP to linux.

> The ethernet chip
> does not have any checksum generation support, and so we rely on the
> software algorithms available inside lwIP library. Have you guys seen
> such a problem before? Endianness on the system is little-endian, but I
> believe the algorithm already takes care of that.

The checksum generation has not changed and has been working fine for a
long time, including under stress. More likely it is not the checksum that
is the problem, but rather the data being checksummed. For example, if you
are changing data after it was sent, but did not tell the stack to copy the
data. Or of course something in the ethernet driver implementation.

I would suggest you check the payload for corruption, and if there is
corruption, what pattern does the corruption have e.g. random, only after a
certain point in the packet, etc.

Jifl
-- 
eCosCentric Limited      http://www.eCosCentric.com/     The eCos experts
Barnwell House, Barnwell Drive, Cambridge, UK.       Tel: +44 1223 245571
Registered in England and Wales: Reg No 4422071.
------["Si fractum non sit, noli id reficere"]------       Opinions==mine




reply via email to

[Prev in Thread] Current Thread [Next in Thread]