Changeset 18072 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Mar 18, 2009 4:58:40 PM (16 years ago)
- Location:
- trunk/src/VBox/Frontends/VBoxManage
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp
r18023 r18072 1725 1725 { "import", handleImportAppliance }, 1726 1726 { "export", handleExportAppliance }, 1727 #if defined(VBOX_WITH_NETFLT) 1727 1728 { "hostonlyif", handleHostonlyIf }, 1729 #endif 1728 1730 { "dhcpserver", handleDHCPServer}, 1729 1731 { NULL, NULL } -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageDHCPServer.cpp
r18023 r18072 1 /* $Id $ */1 /* $Id: VBoxManageDHCPServer.cpp 44622 2009-03-17 13:48:59Z misha $ */ 2 2 /** @file 3 * VBoxManage - Implementation of hostonlyifcommand.3 * VBoxManage - Implementation of dhcpserver command. 4 4 */ 5 5 -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp
r18069 r18072 76 76 { 77 77 RTPrintf("VBoxManage list [--long|-l] vms|runningvms|ostypes|hostdvds|hostfloppies|\n" 78 #if (defined(RT_OS_WINDOWS) && defined(VBOX_WITH_NETFLT))78 #if defined(VBOX_WITH_NETFLT) 79 79 " bridgedifs|hostonlyifs|dhcpservers|hostinfo|\n" 80 80 #else … … 155 155 " [-floppy disabled|empty|<uuid>|\n" 156 156 " <filename>|host:<drive>]\n" 157 #if defined( RT_OS_LINUX) || defined(RT_OS_DARWIN) || (defined(RT_OS_WINDOWS) && defined(VBOX_WITH_NETFLT))157 #if defined(VBOX_WITH_NETFLT) 158 158 " [-nic<1-N> none|null|nat|bridged|intnet|hostonly]\n" 159 159 #else /* !RT_OS_LINUX && !RT_OS_DARWIN */ … … 489 489 "\n"); 490 490 } 491 #if !defined(RT_OS_WINDOWS) ||defined(VBOX_WITH_NETFLT)491 #if defined(VBOX_WITH_NETFLT) 492 492 if (u64Cmd & USAGE_HOSTONLYIFS) 493 493 { … … 504 504 #endif 505 505 506 #if !defined(RT_OS_WINDOWS) || defined(VBOX_WITH_NETFLT)507 506 if (u64Cmd & USAGE_DHCPSERVER) 508 507 { 509 508 RTPrintf("VBoxManage dhcpserver add|modify -netname <network_name> |\n" 509 #if defined(VBOX_WITH_NETFLT) 510 510 " -ifname <hostonly_if_name>\n" 511 #endif 511 512 " [-ip <ip_address>\n" 512 513 " -netmask <network_mask>\n" … … 515 516 " [-enable | -disable]\n" 516 517 "VBoxManage dhcpserver remove -netname <network_name> |\n" 518 #if defined(VBOX_WITH_NETFLT) 517 519 " -ifname <hostonly_if_name>\n" 518 "\n"); 519 }520 #endif 520 #endif 521 "\n"); 522 } 521 523 } 522 524 -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp
r17843 r18072 715 715 break; 716 716 } 717 #if defined(VBOX_WITH_NETFLT) 717 718 case NetworkAttachmentType_HostOnly: 718 719 { … … 728 729 break; 729 730 } 731 #endif 730 732 default: 731 733 strAttachment = "unknown"; -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp
r17939 r18072 464 464 i++; 465 465 } 466 #if defined(VBOX_WITH_NETFLT) 466 467 else if (strncmp(a->argv[i], "-hostonlyadapter", 16) == 0) 467 468 { … … 474 475 i++; 475 476 } 477 #endif 476 478 else if (strncmp(a->argv[i], "-intnet", 7) == 0) 477 479 { … … 1455 1457 CHECK_ERROR_RET(nic, AttachToInternalNetwork(), 1); 1456 1458 } 1457 #if defined( RT_OS_LINUX) || defined(RT_OS_DARWIN) || (defined(RT_OS_WINDOWS) && defined(VBOX_WITH_NETFLT))1459 #if defined(VBOX_WITH_NETFLT) 1458 1460 else if (strcmp(nics[n], "hostonly") == 0) 1459 1461 { … … 1462 1464 CHECK_ERROR_RET(nic, AttachToHostOnlyInterface(), 1); 1463 1465 } 1464 #endif /* defined(RT_OS_LINUX) || defined(RT_OS_DARWIN) */1466 #endif 1465 1467 else 1466 1468 {
Note:
See TracChangeset
for help on using the changeset viewer.