VirtualBox

Changeset 36943 in vbox


Ignore:
Timestamp:
May 3, 2011 4:09:51 PM (14 years ago)
Author:
vboxsync
Message:

NAT: correct ar_sha format in who-is requests initiated by Slirp.

File:
1 edited

Legend:

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

    r36901 r36943  
    20302030    ahdr->ar_op = RT_H2N_U16_C(ARPOP_REQUEST);
    20312031    memcpy(ahdr->ar_sha, special_ethaddr, ETH_ALEN);
     2032    /* we assume that this request come from gw, but not from DNS or TFTP */
     2033    ahdr->ar_sha[5] = CTL_ALIAS;
    20322034    *(uint32_t *)ahdr->ar_sip = RT_H2N_U32(RT_N2H_U32(pData->special_addr.s_addr) | CTL_ALIAS);
    20332035    memset(ahdr->ar_tha, 0xff, ETH_ALEN); /*broadcast*/
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