VirtualBox

Changeset 53360 in vbox for trunk/src


Ignore:
Timestamp:
Nov 20, 2014 2:18:55 PM (10 years ago)
Author:
vboxsync
Message:

NAT: fix in_cksum_skip() calls - "len" parameter must include the
"skip"ped amount.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/ip_icmpwin.c

    r53350 r53360  
    315315        m_append(pData, m, reqsize, reply->Data);
    316316
    317         icmp->icmp_cksum = in_cksum_skip(m, sizeof(*icmp) + reqsize, sizeof(*ip));
     317        icmp->icmp_cksum = in_cksum_skip(m, ip->ip_len, sizeof(*ip));
    318318    }
    319319    else {
     
    412412    m_append(pData, m, sizeof(pong->reqicmph), (caddr_t)&pong->reqicmph);
    413413
    414     icmp->icmp_cksum = in_cksum_skip(m, sizeof(*icmp) + reqsize, sizeof(*ip));
     414    icmp->icmp_cksum = in_cksum_skip(m, ip->ip_len, sizeof(*ip));
    415415
    416416    return m;
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