VirtualBox

Changeset 56409 in vbox


Ignore:
Timestamp:
Jun 14, 2015 12:10:52 AM (10 years ago)
Author:
vboxsync
Message:

lwip: fix wraparound check when updating icmp echo reply checksum
that incorrectly applied carry to 0xFFFF too.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/lwip-new/src/core/ipv4/icmp.c

    r50189 r56409  
    206206#if CHECKSUM_GEN_ICMP
    207207    /* adjust the checksum */
    208     if (iecho->chksum >= PP_HTONS(0xffffU - (ICMP_ECHO << 8))) {
     208    if (iecho->chksum > PP_HTONS(0xffffU - (ICMP_ECHO << 8))) {
    209209      iecho->chksum += PP_HTONS(ICMP_ECHO << 8) + 1;
    210210    } else {
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette