lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #54506] LWIP_CHECKSUM_ON_COPY causes wrong checksum (0


From: Simon Goldschmidt
Subject: [lwip-devel] [bug #54506] LWIP_CHECKSUM_ON_COPY causes wrong checksum (0xFFFF)
Date: Sat, 8 Sep 2018 16:37:12 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36

Follow-up Comment #1, bug #54506 (project lwip):

I think the correct version of the fix is to invert back 'acc' (as it is
returned inverted by ip_chksum_pseudo_partial()), then do the calculation and
fold and then inverting it again. As that is the same what's already done, it
should be portable.

See attached patch.

(file #44958)
    _______________________________________________________

Additional Item Attachment:

File name: patch3.diff                    Size:0 KB


    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/bugs/?54506>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/




reply via email to

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