VirtualBox

Changeset 17824 in vbox


Ignore:
Timestamp:
Mar 13, 2009 1:45:46 PM (16 years ago)
Author:
vboxsync
Message:

Solaris network interface type fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/solaris/NetIfList-solaris.cpp

    r17443 r17824  
    188188    Info.enmMediumType = NETIF_T_ETHERNET;
    189189
     190    HostNetworkInterfaceType_T enmType;
     191    if (strncmp("vbox", szNICInstance, 4))
     192        enmType = HostNetworkInterfaceType_Bridged;
     193    else
     194        enmType = HostNetworkInterfaceType_HostOnly;
    190195    ComObjPtr<HostNetworkInterface> IfObj;
    191196    IfObj.createObject();
    192     if (SUCCEEDED(IfObj->init(Bstr(szNICDesc), HostNetworkInterfaceType_Bridged, &Info)))
     197    if (SUCCEEDED(IfObj->init(Bstr(szNICDesc), enmType, &Info)))
    193198        pList->push_back(IfObj);
    194199}
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