VirtualBox

Changeset 106028 in vbox for trunk/src/VBox/Main/src-client


Ignore:
Timestamp:
Sep 12, 2024 11:32:11 AM (6 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
164777
Message:

Main/ConsoleImpl.cpp: i_powerDownHostInterfaces doesn't need to do anything unless VBOX_WITH_NETFLT isn't defined (non-standard config) and we're on linux or freebsd, so expanded the #if to cover most of the code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/ConsoleImpl.cpp

    r106026 r106028  
    1004010040            }
    1004110041#endif /* VBOX_WITH_CLOUD_NET */
     10042
    1004210043            /* Terminate host interface networking. If pUVM is NULL, we've been
    1004310044             * manually called from powerUpThread() either before calling
     
    1085810859    AssertReturn(isWriteLockOnCurrentThread(), E_FAIL);
    1085910860
     10861#if (defined(RT_OS_LINUX) || defined(RT_OS_FREEBSD)) && !defined(VBOX_WITH_NETFLT)
    1086010862    /*
    10861      * host interface termination handling
     10863     * Host TAP interface termination handling.
    1086210864     */
    1086310865    ComPtr<IVirtualBox> pVirtualBox;
     
    1089910901        if (attachment == NetworkAttachmentType_Bridged)
    1090010902        {
    10901 #if ((defined(RT_OS_LINUX) || defined(RT_OS_FREEBSD)) && !defined(VBOX_WITH_NETFLT))
    1090210903            HRESULT hrc2 = i_detachFromTapInterface(pNetworkAdapter);
    1090310904            if (FAILED(hrc2) && SUCCEEDED(hrc))
    1090410905                hrc = hrc2;
    10905 #endif /* (RT_OS_LINUX || RT_OS_FREEBSD) && !VBOX_WITH_NETFLT */
    1090610906        }
    1090710907    }
    1090810908
    1090910909    return hrc;
     10910
     10911#else
     10912    /* Nothing to do here. */
     10913    return S_OK;
     10914#endif
    1091010915}
    1091110916
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