Changeset 17834 in vbox for trunk/src/VBox/Main/linux/NetIfList-linux.cpp
- Timestamp:
- Mar 13, 2009 3:15:50 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/linux/NetIfList-linux.cpp
r17443 r17834 146 146 ComObjPtr<HostNetworkInterface> IfObj; 147 147 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))) 149 156 list.push_back(IfObj); 150 157 }
Note:
See TracChangeset
for help on using the changeset viewer.