lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Bug in inet_chksum_pseudo() produces bad checksum(Parad


From: Frédéric BERNON
Subject: Re: [lwip-users] Bug in inet_chksum_pseudo() produces bad checksum(Paradigm C++)
Date: Fri, 24 Aug 2007 16:15:13 +0200

Hi Dave,

I don't understand why Paradigm C++ misunderstand "while (acc >> 16)". Do you have report the problem to paradigm support ?

Else, can you give us the bug ID from 2002 which already report that?

Thank


----- Original Message ----- From: "Dave Lyneham" <address@hidden>
To: <address@hidden>
Sent: Friday, August 24, 2007 5:55 AM
Subject: [lwip-users] Bug in inet_chksum_pseudo() produces bad checksum(Paradigm C++)


Hi All,

inet_chksum_pseudo() had been producing bad checksum when compiled
under Paradigm C++.  Tracked problem down to the conditional based on
bitwise shift right as in:

 while (acc >> 16) {

This conditional is never true, but works when changed to

 while ((acc >> 16) > 0) {

I notice there was a report of a bug in 2002 for the same function
producing bad checksum, maybe this was also the cause in that case.

Cheers
Dave


_______________________________________________
lwip-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/lwip-users






reply via email to

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