- 時間撮記:
- 2011-5-24 下午03:34:06 (14 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Main/src-server/ApplianceImplImport.cpp
r37096 r37200 405 405 && (strNetwork.compare("Internal", Utf8Str::CaseInsensitive)) 406 406 && (strNetwork.compare("HostOnly", Utf8Str::CaseInsensitive)) 407 && (strNetwork.compare(" VDE", Utf8Str::CaseInsensitive))407 && (strNetwork.compare("Generic", Utf8Str::CaseInsensitive)) 408 408 ) 409 409 strNetwork = "Bridged"; // VMware assumes this is the default apparently … … 2045 2045 { 2046 2046 /* Attach to the right interface */ 2047 rc = pNetworkAdapter-> AttachToBridgedInterface();2047 rc = pNetworkAdapter->COMSETTER(AttachmentType)(NetworkAttachmentType_Bridged); 2048 2048 if (FAILED(rc)) throw rc; 2049 2049 ComPtr<IHost> host; … … 2068 2068 if (FAILED(rc)) throw rc; 2069 2069 /* Set the interface name to attach to */ 2070 pNetworkAdapter->COMSETTER( HostInterface)(name.raw());2070 pNetworkAdapter->COMSETTER(BridgedInterface)(name.raw()); 2071 2071 if (FAILED(rc)) throw rc; 2072 2072 break; … … 2078 2078 { 2079 2079 /* Attach to the right interface */ 2080 rc = pNetworkAdapter-> AttachToHostOnlyInterface();2080 rc = pNetworkAdapter->COMSETTER(AttachmentType)(NetworkAttachmentType_HostOnly); 2081 2081 if (FAILED(rc)) throw rc; 2082 2082 ComPtr<IHost> host; … … 2101 2101 if (FAILED(rc)) throw rc; 2102 2102 /* Set the interface name to attach to */ 2103 pNetworkAdapter->COMSETTER(Host Interface)(name.raw());2103 pNetworkAdapter->COMSETTER(HostOnlyInterface)(name.raw()); 2104 2104 if (FAILED(rc)) throw rc; 2105 2105 break; … … 2111 2111 { 2112 2112 /* Attach to the right interface */ 2113 rc = pNetworkAdapter-> AttachToInternalNetwork();2113 rc = pNetworkAdapter->COMSETTER(AttachmentType)(NetworkAttachmentType_Internal); 2114 2114 if (FAILED(rc)) throw rc; 2115 2115 } 2116 /* Next test for VDEinterfaces */2117 else if (pvsys->strExtraConfigCurrent.endsWith("type= VDE", Utf8Str::CaseInsensitive))2116 /* Next test for Generic interfaces */ 2117 else if (pvsys->strExtraConfigCurrent.endsWith("type=Generic", Utf8Str::CaseInsensitive)) 2118 2118 { 2119 2119 /* Attach to the right interface */ 2120 rc = pNetworkAdapter-> AttachToVDE();2120 rc = pNetworkAdapter->COMSETTER(AttachmentType)(NetworkAttachmentType_Generic); 2121 2121 if (FAILED(rc)) throw rc; 2122 2122 }
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器