VirtualBox

Changeset 93040 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Dec 21, 2021 11:14:56 AM (3 years ago)
Author:
vboxsync
Message:

Runtime/checksum/ipv4.cpp: Revert r65584 as it breaks checksumming for the *pfOff == true case because *pw is not updated appropriately, bugref:3409

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/checksum/ipv4.cpp

    r82968 r93040  
    299299DECLINLINE(uint32_t) rtNetIPv4AddDataChecksum(void const *pvData, size_t cbData, uint32_t u32Sum, bool *pfOdd)
    300300{
    301     uint16_t const *pw = (uint16_t const *)pvData;
    302301    if (*pfOdd)
    303302    {
     
    317316
    318317    /* iterate the data. */
     318    uint16_t const *pw = (uint16_t const *)pvData;
    319319    while (cbData > 1)
    320320    {
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