VirtualBox

Changeset 51138 in vbox for trunk/src/VBox/Devices/Network


Ignore:
Timestamp:
Apr 24, 2014 3:34:40 PM (11 years ago)
Author:
vboxsync
Message:

NAT: slirp_arp_cache_update: ARP maps IP to MAC, so check for IP match
and update the MAC, not the other way around. This makes it possible
to use proxy ARP in the guest - otherwise different IPs take turns
kicking each other out of the single entry for the guest MAC.

File:
1 edited

Legend:

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

    r51135 r51138  
    19411941    LIST_FOREACH(ac, &pData->arp_cache, list)
    19421942    {
    1943         if (!memcmp(ac->ether, mac, ETH_ALEN))
    1944         {
    1945             ac->ip = dst;
     1943        if (ac->ip == dst)
     1944        {
     1945            memcpy(ac->ether, mac, ETH_ALEN);
    19461946            return 0;
    19471947        }
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