Changeset 45156 in vbox for trunk/src/VBox/Frontends/VBoxManage
- Timestamp:
- Mar 25, 2013 5:50:09 AM (12 years ago)
- Location:
- trunk/src/VBox/Frontends/VBoxManage
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/Makefile.kmk
r44191 r45156 55 55 VBoxManageSnapshot.cpp \ 56 56 VBoxManageStorageController.cpp \ 57 VBoxManageUSB.cpp 57 VBoxManageUSB.cpp \ 58 $(if $(VBOX_WITH_NAT_SERVICE),VBoxManageNATNetwork.cpp,) 58 59 VBoxManage_LIBS += $(LIB_DDU) 59 60 … … 78 79 $(if $(VBOX_WITH_USB_CARDREADER),VBOX_WITH_USB_CARDREADER) \ 79 80 $(if $(VBOX_WITH_PCI_PASSTHROUGH),VBOX_WITH_PCI_PASSTHROUGH) \ 80 $(if $(VBOX_WITH_VPX),VBOX_WITH_VPX) 81 $(if $(VBOX_WITH_VPX),VBOX_WITH_VPX) \ 82 $(if $(VBOX_WITH_NAT_SERVICE),VBOX_WITH_NAT_SERVICE) 81 83 82 84 ifneq ($(KBUILD_TARGET),win) -
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp
r43463 r45156 516 516 #endif 517 517 { "dhcpserver", USAGE_DHCPSERVER, handleDHCPServer}, 518 #ifdef VBOX_WITH_NAT_SERVICE 519 { "natnetwork", USAGE_NATNETWORK, handleNATNetwork}, 520 #endif 518 521 { "extpack", USAGE_EXTPACK, handleExtPack}, 519 522 { "bandwidthctl", USAGE_BANDWIDTHCONTROL, handleBandwidthControl}, -
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.h
r44498 r45156 102 102 #define USAGE_GUESTSTATS RT_BIT_64(57) 103 103 #define USAGE_REPAIRHD RT_BIT_64(58) 104 #define USAGE_NATNETWORK RT_BIT_64(59) 104 105 #define USAGE_ALL (~(uint64_t)0) 105 106 /** @} */ … … 265 266 int handleHostonlyIf(HandlerArg *a); 266 267 267 /* VBoxManage Hostonly.cpp */268 /* VBoxManageDHCPServer.cpp */ 268 269 int handleDHCPServer(HandlerArg *a); 270 271 /* VBoxManageNATNetwork.cpp */ 272 int handleNATNetwork(HandlerArg *a); 273 269 274 270 275 /* VBoxManageBandwidthControl.cpp */ -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageList.cpp
r45065 r45156 718 718 kListDhcpServers, 719 719 kListExtPacks, 720 kListGroups 720 kListGroups, 721 kListNatNetworks 721 722 }; 722 723 … … 992 993 break; 993 994 995 case kListNatNetworks: 996 { 997 com::SafeIfaceArray<INATNetwork> nets; 998 CHECK_ERROR(pVirtualBox, COMGETTER(NATNetworks)(ComSafeArrayAsOutParam(nets))); 999 for (size_t i = 0; i < nets.size(); ++i) 1000 { 1001 ComPtr<INATNetwork> net = nets[i]; 1002 Bstr netName; 1003 net->COMGETTER(NetworkName)(netName.asOutParam()); 1004 RTPrintf("NetworkName: %ls\n", netName.raw()); 1005 Bstr gateway; 1006 net->COMGETTER(Gateway)(gateway.asOutParam()); 1007 RTPrintf("IP: %ls\n", gateway.raw()); 1008 Bstr network; 1009 net->COMGETTER(Network)(network.asOutParam()); 1010 RTPrintf("Network: %ls\n", network.raw()); 1011 BOOL fEnabled; 1012 net->COMGETTER(IPv6Enabled)(&fEnabled); 1013 RTPrintf("IPv6 Enabled: %s\n", fEnabled ? "Yes" : "No"); 1014 Bstr ipv6prefix; 1015 net->COMGETTER(Network)(network.asOutParam()); 1016 RTPrintf("IPv6 Prefix: %ls\n", ipv6prefix.raw()); 1017 net->COMGETTER(NeedDhcpServer)(&fEnabled); 1018 RTPrintf("DHCP Server Enabled: %s\n", fEnabled ? "Yes" : "No"); 1019 net->COMGETTER(Enabled)(&fEnabled); 1020 RTPrintf("Enabled: %s\n", fEnabled ? "Yes" : "No"); 1021 RTPrintf("\n"); 1022 } 1023 break; 1024 } 1025 994 1026 /* No default here, want gcc warnings. */ 995 1027 … … 1037 1069 { "extpacks", kListExtPacks, RTGETOPT_REQ_NOTHING }, 1038 1070 { "groups", kListGroups, RTGETOPT_REQ_NOTHING }, 1071 { "natnetworks", kListNatNetworks, RTGETOPT_REQ_NOTHING }, 1039 1072 }; 1040 1073 … … 1080 1113 case kListExtPacks: 1081 1114 case kListGroups: 1115 case kListNatNetworks: 1082 1116 enmOptCommand = (enum enmListType)ch; 1083 1117 if (fOptMultiple)
Note:
See TracChangeset
for help on using the changeset viewer.