Changeset 17275 in vbox for trunk/src/VBox/Frontends/VBoxManage
- Timestamp:
- Mar 3, 2009 1:28:12 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 43635
- Location:
- trunk/src/VBox/Frontends/VBoxManage
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp
r17260 r17275 683 683 break; 684 684 } 685 case NetworkAttachmentType_ HostInterface:685 case NetworkAttachmentType_Bridged: 686 686 { 687 687 Bstr strHostIfDev; -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageList.cpp
r17255 r17275 44 44 45 45 #ifdef VBOX_WITH_HOSTNETIF_API 46 static const char *getHostIfTypeText(HostNetworkInterface Type_T enmType)46 static const char *getHostIfTypeText(HostNetworkInterfaceMediumType_T enmType) 47 47 { 48 48 switch (enmType) 49 49 { 50 case HostNetworkInterface Type_Ethernet: return "Ethernet";51 case HostNetworkInterface Type_PPP: return "PPP";52 case HostNetworkInterface Type_SLIP: return "SLIP";50 case HostNetworkInterfaceMediumType_Ethernet: return "Ethernet"; 51 case HostNetworkInterfaceMediumType_PPP: return "PPP"; 52 case HostNetworkInterfaceMediumType_SLIP: return "SLIP"; 53 53 } 54 54 return "Unknown"; … … 326 326 networkInterface->COMGETTER(HardwareAddress)(HardwareAddress.asOutParam()); 327 327 RTPrintf("HardwareAddress: %lS\n", HardwareAddress.raw()); 328 HostNetworkInterface Type_T Type;329 networkInterface->COMGETTER( Type)(&Type);328 HostNetworkInterfaceMediumType_T Type; 329 networkInterface->COMGETTER(MediumType)(&Type); 330 330 RTPrintf("Type: %s\n", getHostIfTypeText(Type)); 331 331 HostNetworkInterfaceStatus_T Status; -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp
r17255 r17275 1384 1384 { 1385 1385 CHECK_ERROR_RET(nic, COMSETTER(Enabled) (TRUE), 1); 1386 CHECK_ERROR_RET(nic, AttachTo HostInterface(), 1);1386 CHECK_ERROR_RET(nic, AttachToBridgedNetwork(), 1); 1387 1387 } 1388 1388 else if (strcmp(nics[n], "intnet") == 0) … … 1391 1391 CHECK_ERROR_RET(nic, AttachToInternalNetwork(), 1); 1392 1392 } 1393 #if defined(RT_OS_LINUX) || defined(RT_OS_DARWIN) 1393 #if defined(RT_OS_LINUX) || defined(RT_OS_DARWIN) || (defined(RT_OS_WINDOWS) && defined(VBOX_WITH_NETFLT)) 1394 1394 else if (strcmp(nics[n], "hostonly") == 0) 1395 1395 { 1396 1396 CHECK_ERROR_RET(nic, COMSETTER(Enabled) (TRUE), 1); 1397 CHECK_ERROR_RET(nic, AttachToHostOnly Network(), 1);1397 CHECK_ERROR_RET(nic, AttachToHostOnlyInterface(), 1); 1398 1398 } 1399 1399 #endif /* defined(RT_OS_LINUX) || defined(RT_OS_DARWIN) */
Note:
See TracChangeset
for help on using the changeset viewer.