lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] Bug in inet_chksum_pseudo() produces bad checksum (Paradigm


From: Dave Lyneham
Subject: [lwip-users] Bug in inet_chksum_pseudo() produces bad checksum (Paradigm C++)
Date: Fri, 24 Aug 2007 13:55:23 +1000

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




reply via email to

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