VirtualBox

忽略:
時間撮記:
2011-5-24 下午03:34:06 (14 年 以前)
作者:
vboxsync
訊息:

API+Frontends: Generic network attachment driver support which obsoletes the special case for VDE. Big API cleanup in the same area. Adapt all frontends to these changes (full implementation in VBoxManage, minimum implementation in GUI).

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Main/src-server/ApplianceImplImport.cpp

    r37096 r37200  
    405405                         && (strNetwork.compare("Internal", Utf8Str::CaseInsensitive))
    406406                         && (strNetwork.compare("HostOnly", Utf8Str::CaseInsensitive))
    407                          && (strNetwork.compare("VDE", Utf8Str::CaseInsensitive))
     407                         && (strNetwork.compare("Generic", Utf8Str::CaseInsensitive))
    408408                       )
    409409                        strNetwork = "Bridged";     // VMware assumes this is the default apparently
     
    20452045            {
    20462046                /* Attach to the right interface */
    2047                 rc = pNetworkAdapter->AttachToBridgedInterface();
     2047                rc = pNetworkAdapter->COMSETTER(AttachmentType)(NetworkAttachmentType_Bridged);
    20482048                if (FAILED(rc)) throw rc;
    20492049                ComPtr<IHost> host;
     
    20682068                        if (FAILED(rc)) throw rc;
    20692069                        /* Set the interface name to attach to */
    2070                         pNetworkAdapter->COMSETTER(HostInterface)(name.raw());
     2070                        pNetworkAdapter->COMSETTER(BridgedInterface)(name.raw());
    20712071                        if (FAILED(rc)) throw rc;
    20722072                        break;
     
    20782078            {
    20792079                /* Attach to the right interface */
    2080                 rc = pNetworkAdapter->AttachToHostOnlyInterface();
     2080                rc = pNetworkAdapter->COMSETTER(AttachmentType)(NetworkAttachmentType_HostOnly);
    20812081                if (FAILED(rc)) throw rc;
    20822082                ComPtr<IHost> host;
     
    21012101                        if (FAILED(rc)) throw rc;
    21022102                        /* Set the interface name to attach to */
    2103                         pNetworkAdapter->COMSETTER(HostInterface)(name.raw());
     2103                        pNetworkAdapter->COMSETTER(HostOnlyInterface)(name.raw());
    21042104                        if (FAILED(rc)) throw rc;
    21052105                        break;
     
    21112111            {
    21122112                /* Attach to the right interface */
    2113                 rc = pNetworkAdapter->AttachToInternalNetwork();
     2113                rc = pNetworkAdapter->COMSETTER(AttachmentType)(NetworkAttachmentType_Internal);
    21142114                if (FAILED(rc)) throw rc;
    21152115            }
    2116             /* Next test for VDE interfaces */
    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))
    21182118            {
    21192119                /* Attach to the right interface */
    2120                 rc = pNetworkAdapter->AttachToVDE();
     2120                rc = pNetworkAdapter->COMSETTER(AttachmentType)(NetworkAttachmentType_Generic);
    21212121                if (FAILED(rc)) throw rc;
    21222122            }
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette