VirtualBox

Changeset 61000 in vbox


Ignore:
Timestamp:
May 17, 2016 12:08:55 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
107252
Message:

NAT: Initialize guest address guess for the port-forwarding to
CTL_GUEST. This is strictly an improvement since it helps the common
case and doesn't affect corner cases, which will still need a sign of
life packet just like before.

When a VM is restored we do flap the link for 5 seconds to make guest
reacquire the DHCP lease, but from the guest PoV that flap may be
shorter and sometimes it just ignores it, preventing port-forwarding
from working. ticketref:15412

File:
1 edited

Legend:

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

    r60039 r61000  
    375375    /* @todo: add ability to configure this staff */
    376376
     377    /*
     378     * Some guests won't reacquire DHCP lease on link flap when VM is
     379     * restored.  Instead of forcing users to explicitly set CTL_GUEST
     380     * in port-forwarding rules, provide it as initial guess here.
     381     */
     382    slirp_update_guest_addr_guess(pData,
     383                                  pData->special_addr.s_addr | RT_H2N_U32_C(CTL_GUEST),
     384                                  "initialization");
     385
    377386    /* set default addresses */
    378387    inet_aton("127.0.0.1", &loopback_addr);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette