VirtualBox

Changeset 101737 in vbox for trunk/src/VBox/Main/src-all


Ignore:
Timestamp:
Nov 3, 2023 2:55:39 PM (15 months ago)
Author:
vboxsync
Message:

Main: Added IPlatformProperties::getSupportedNetworkAdapterPromiscModePolicies(). bugref:10384

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-all/PlatformPropertiesImpl.cpp

    r101480 r101737  
    729729}
    730730
     731HRESULT PlatformProperties::getSupportedNetworkAdapterPromiscModePolicies(std::vector<NetworkAdapterPromiscModePolicy_T> &aSupportedNetworkAdapterPromiscModePolicies)
     732{
     733    static const NetworkAdapterPromiscModePolicy_T aNetworkAdapterPromiscModePolicies[] =
     734    {
     735        NetworkAdapterPromiscModePolicy_Deny,
     736        NetworkAdapterPromiscModePolicy_AllowNetwork,
     737        NetworkAdapterPromiscModePolicy_AllowAll
     738    };
     739
     740    aSupportedNetworkAdapterPromiscModePolicies.assign(aNetworkAdapterPromiscModePolicies,
     741                                                       aNetworkAdapterPromiscModePolicies + RT_ELEMENTS(aSupportedNetworkAdapterPromiscModePolicies));
     742    return S_OK;
     743}
     744
    731745HRESULT PlatformProperties::getSupportedNetworkAdapterTypes(std::vector<NetworkAdapterType_T> &aSupportedNetworkAdapterTypes)
    732746{
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