VirtualBox

Ignore:
Timestamp:
Mar 13, 2009 3:15:50 PM (16 years ago)
Author:
vboxsync
Message:

Fix for listing Linux hostonly adapters.

File:
1 edited

Legend:

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

    r17443 r17834  
    146146                    ComObjPtr<HostNetworkInterface> IfObj;
    147147                    IfObj.createObject();
    148                     if (SUCCEEDED(IfObj->init(Bstr(pszName), HostNetworkInterfaceType_Bridged, &Info)))
     148
     149                    HostNetworkInterfaceType_T enmType;
     150                    if (strncmp("vbox", pszName, 4))
     151                        enmType = HostNetworkInterfaceType_Bridged;
     152                    else
     153                        enmType = HostNetworkInterfaceType_HostOnly;
     154
     155                    if (SUCCEEDED(IfObj->init(Bstr(pszName), enmType, &Info)))
    149156                        list.push_back(IfObj);
    150157                }
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