VirtualBox

Changeset 22543 in vbox


Ignore:
Timestamp:
Aug 28, 2009 7:05:42 AM (15 years ago)
Author:
vboxsync
Message:

NAT: up port-forwarding on address asignment (grateous ARP)

or on ARP_REPLY after restore making slirp_input free of
checking/initiating dynamic port-forwarding.

File:
1 edited

Legend:

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

    r22542 r22543  
    13911391                }
    13921392                slirp_arp_cache_add(pData, *(uint32_t *)ah->ar_tip, &eh->h_dest[0]);     
     1393                /* good opportunity to activate port-forwarding on address (self)asignment*/
     1394                activate_port_forwarding(pData, eh);
    13931395            }
    13941396            break;
     
    14011403            }
    14021404            slirp_arp_cache_add(pData, *(uint32_t *)ah->ar_sip, ah->ar_sha);
     1405            /*after/save restore we need up port forwarding again*/
     1406            if (pData->port_forwarding_activated == 0)
     1407                activate_port_forwarding(pData, eh);
    14031408            m_free(pData, m);
    14041409        }
     
    14471452    memcpy(m->m_data, pkt, pkt_len);
    14481453
     1454#if 0
    14491455    if (pData->port_forwarding_activated == 0)
    14501456        activate_port_forwarding(pData, mtod(m, struct ethhdr *));
     1457#endif
    14511458
    14521459    proto = ntohs(*(uint16_t *)(pkt + 12));
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