VirtualBox

Changeset 34330 in vbox for trunk


Ignore:
Timestamp:
Nov 24, 2010 4:12:25 PM (14 years ago)
Author:
vboxsync
Message:

DrvIntNet: Don't fail if we cannot connect to the internal network, instead raise a runtime warning to give the user a chance to change the network.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DrvIntNet.cpp

    r33540 r34330  
    15381538    rc = PDMDrvHlpSUPCallVMMR0Ex(pDrvIns, VMMR0_DO_INTNET_OPEN, &OpenReq, sizeof(OpenReq));
    15391539    if (RT_FAILURE(rc))
    1540         return PDMDrvHlpVMSetError(pDrvIns, rc, RT_SRC_POS,
    1541                                    N_("Failed to open/create the internal network '%s'"), pThis->szNetwork);
     1540    {
     1541         PDMDrvHlpVMSetRuntimeError (pDrvIns, 0 /*fFlags*/, "HostIfNotConnecting",
     1542                                     N_ ("Cannot connect to the network interface '%s'. The virtual "
     1543                                         "network card will appear to work but the guest will not "
     1544                                         "be able to connect. Please choose a different network in the "
     1545                                         "network settings"), OpenReq.szTrunk);
     1546
     1547        return VERR_PDM_NO_ATTACHED_DRIVER;
     1548    }
     1549
    15421550    AssertRelease(OpenReq.hIf != INTNET_HANDLE_INVALID);
    15431551    pThis->hIf = OpenReq.hIf;
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