Changeset 29117 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- May 5, 2010 10:59:38 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 61177
- Location:
- trunk/src/VBox/Frontends/VBoxManage
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/Makefile.kmk
r28800 r29117 41 41 $(if $(VBOX_WITH_SCSI), VBOX_WITH_SCSI) \ 42 42 $(if $(VBOX_WITH_GUEST_PROPS),VBOX_WITH_GUEST_PROPS) \ 43 $(if $(VBOX_WITH_GUEST_CONTROL),VBOX_WITH_GUEST_CONTROL) \ 44 $(if $(VBOX_WITH_HOSTNETIF_API), VBOX_WITH_HOSTNETIF_API) 43 $(if $(VBOX_WITH_GUEST_CONTROL),VBOX_WITH_GUEST_CONTROL) \ 44 $(if $(VBOX_WITH_HOSTNETIF_API), VBOX_WITH_HOSTNETIF_API) \ 45 $(if $(VBOX_WITH_VDE), VBOX_WITH_VDE) 45 46 VBoxManage_DEFS.win = _WIN32_WINNT=0x0500 46 47 ifdef VBOX_DYNAMIC_NET_ATTACH -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp
r28839 r29117 185 185 " [--biospxedebug on|off]\n" 186 186 " [--boot<1-4> none|floppy|dvd|disk|net>]\n" 187 #if defined(VBOX_WITH_NETFLT) 188 " [--nic<1-N> none|null|nat|bridged|intnet|hostonly]\n" 189 #else /* !RT_OS_LINUX && !RT_OS_DARWIN */ 190 " [--nic<1-N> none|null|nat|bridged|intnet]\n" 191 #endif /* !RT_OS_LINUX && !RT_OS_DARWIN */ 187 " [--nic<1-N> none|null|nat|bridged|intnet" 188 #if defined(VBOX_WITH_NETFLT) /* RT_OS_LINUX || RT_OS_DARWIN */ 189 "|hostonly" 190 #endif 191 #ifdef VBOX_WITH_VDE 192 "|vde" 193 #endif 194 "]\n" 192 195 " [--nictype<1-N> Am79C970A|Am79C973" 193 196 #ifdef VBOX_WITH_E1000 … … 209 212 " [--intnet<1-N> <network name>]\n" 210 213 " [--natnet<1-N> <network>|default]\n" 214 #ifdef VBOX_WITH_VDE 215 " [--vdenet<1-N> <network>|default]\n" 216 #endif 211 217 " [--natsettings<1-N> \"[<mtu>],[<socksnd>],[<sockrcv>],\n" 212 218 " [<tcpsnd>],[<tcprcv>]\"]\n" -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp
r28836 r29117 893 893 } 894 894 #endif 895 #ifdef VBOX_WITH_VDE 896 case NetworkAttachmentType_VDE: 897 { 898 Bstr strVDEAdp; 899 nic->COMGETTER(VDENetwork)(strVDEAdp.asOutParam()); 900 if (details == VMINFO_MACHINEREADABLE) 901 { 902 RTPrintf("vdenet%d=\"%lS\"\n", currentNIC + 1, strVDEAdp.raw()); 903 strAttachment = "VDE"; 904 } 905 else 906 strAttachment = Utf8StrFmt("VDE Network '%lS'", strVDEAdp.raw()); 907 break; 908 } 909 #endif 895 910 default: 896 911 strAttachment = "unknown"; -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp
r28836 r29117 112 112 MODIFYVM_INTNET, 113 113 MODIFYVM_NATNET, 114 #ifdef VBOX_WITH_VDE 115 MODIFYVM_VDENET, 116 #endif 114 117 MODIFYVM_NATBINDIP, 115 118 MODIFYVM_NATSETTINGS, … … 220 223 { "--intnet", MODIFYVM_INTNET, RTGETOPT_REQ_STRING | RTGETOPT_FLAG_INDEX }, 221 224 { "--natnet", MODIFYVM_NATNET, RTGETOPT_REQ_STRING | RTGETOPT_FLAG_INDEX }, 225 #ifdef VBOX_WITH_VDE 226 { "--vdenet", MODIFYVM_VDENET, RTGETOPT_REQ_STRING | RTGETOPT_FLAG_INDEX }, 227 #endif 222 228 { "--natbindip", MODIFYVM_NATBINDIP, RTGETOPT_REQ_STRING | RTGETOPT_FLAG_INDEX }, 223 229 { "--natsettings", MODIFYVM_NATSETTINGS, RTGETOPT_REQ_STRING | RTGETOPT_FLAG_INDEX }, … … 1191 1197 } 1192 1198 #endif 1199 #ifdef VBOX_WITH_VDE 1200 else if (!strcmp(ValueUnion.psz, "vde")) 1201 { 1202 1203 CHECK_ERROR(nic, COMSETTER(Enabled)(TRUE)); 1204 CHECK_ERROR(nic, AttachToVDE()); 1205 } 1206 #endif 1193 1207 else 1194 1208 { … … 1249 1263 } 1250 1264 1265 #ifdef VBOX_WITH_VDE 1266 case MODIFYVM_VDENET: 1267 { 1268 ComPtr<INetworkAdapter> nic; 1269 1270 CHECK_ERROR_BREAK(machine, GetNetworkAdapter(GetOptState.uIndex - 1, nic.asOutParam())); 1271 ASSERT(nic); 1272 1273 if (!strcmp(ValueUnion.psz, "default")) 1274 { 1275 CHECK_ERROR(nic, COMSETTER(VDENetwork)(NULL)); 1276 } 1277 else 1278 { 1279 CHECK_ERROR(nic, COMSETTER(VDENetwork)(Bstr(ValueUnion.psz))); 1280 } 1281 break; 1282 } 1283 #endif 1251 1284 case MODIFYVM_NATNET: 1252 1285 {
Note:
See TracChangeset
for help on using the changeset viewer.