Changeset 17843 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Mar 13, 2009 3:51:55 PM (16 years ago)
- Location:
- trunk/src/VBox/Frontends/VBoxManage
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp
r17759 r17843 181 181 " [-nicspeed<1-N> <kbps>]\n" 182 182 " [-bridgeadapter<1-N> none|<devicename>]\n" 183 #if (defined(RT_OS_WINDOWS) && defined(VBOX_WITH_NETFLT))183 #if defined(VBOX_WITH_NETFLT) 184 184 " [-hostonlyadapter<1-N> none|<devicename>]\n" 185 185 #endif -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp
r17816 r17843 717 717 case NetworkAttachmentType_HostOnly: 718 718 { 719 #if (defined(RT_OS_WINDOWS) && defined(VBOX_WITH_NETFLT))720 719 Bstr strHostonlyAdp; 721 720 nic->COMGETTER(HostInterface)(strHostonlyAdp.asOutParam()); 722 #endif723 721 if (details == VMINFO_MACHINEREADABLE) 724 722 { 725 #if (defined(RT_OS_WINDOWS) && defined(VBOX_WITH_NETFLT))726 723 RTPrintf("hostonlyadapter%d=\"%lS\"\n", currentNIC + 1, strHostonlyAdp.raw()); 727 #endif728 724 strAttachment = "hostonly"; 729 725 } 730 726 else 731 #if (defined(RT_OS_WINDOWS) && defined(VBOX_WITH_NETFLT))732 727 strAttachment = Utf8StrFmt("Host-only Interface '%lS'", strHostonlyAdp.raw()); 733 #else734 strAttachment = "Host-only Network";735 #endif736 728 break; 737 729 } -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp
r17755 r17843 443 443 i++; 444 444 } 445 else if ( strncmp(a->argv[i], "-bridgeadapter", 11) == 0 446 || strncmp(a->argv[i], "-hostonlyadapter", 12) == 0 447 || strncmp(a->argv[i], "-hostifdev", 10) == 0) /* backward compatibility */ 445 else if (strncmp(a->argv[i], "-hostifdev", 10) == 0) /* backward compatibility */ 448 446 { 449 447 unsigned n = parseNum(&a->argv[i][10], NetworkAdapterCount, "NIC"); 448 if (!n) 449 return 1; 450 if (a->argc <= i + 1) 451 return errorArgument("Missing argument to '%s'", a->argv[i]); 452 hostifdev[n - 1] = a->argv[i + 1]; 453 i++; 454 } 455 else if ( strncmp(a->argv[i], "-bridgeadapter", 14) == 0) 456 { 457 unsigned n = parseNum(&a->argv[i][14], NetworkAdapterCount, "NIC"); 458 if (!n) 459 return 1; 460 if (a->argc <= i + 1) 461 return errorArgument("Missing argument to '%s'", a->argv[i]); 462 hostifdev[n - 1] = a->argv[i + 1]; 463 i++; 464 } 465 else if (strncmp(a->argv[i], "-hostonlyadapter", 16) == 0) 466 { 467 unsigned n = parseNum(&a->argv[i][16], NetworkAdapterCount, "NIC"); 450 468 if (!n) 451 469 return 1;
Note:
See TracChangeset
for help on using the changeset viewer.