VirtualBox

Changeset 15445 in vbox


Ignore:
Timestamp:
Dec 13, 2008 3:46:14 PM (16 years ago)
Author:
vboxsync
Message:

slirp:icmp: correct ip_p in package to guest

File:
1 edited

Legend:

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

    r15437 r15445  
    841841    memcpy(m->m_data + original_hlen, buff + hlen, len - hlen);
    842842    m->m_len = len - hlen + original_hlen;
     843    ip->ip_len = m->m_len;
     844    ip->ip_p = IPPROTO_ICMP; /* the original package could ba whatever, but we're response via ICMP*/
    843845
    844846    icp = (struct icmp *)((char *)ip + (ip->ip_hl << 2));
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