VirtualBox

Changeset 53318 in vbox for trunk


Ignore:
Timestamp:
Nov 13, 2014 10:06:29 AM (10 years ago)
Author:
vboxsync
Message:

NDIS6/NetLwf: Use new component id (oracle_VBoxNetLwf) instead of old sun_VBoxNetFlt

Location:
trunk/src/VBox
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/win/cfg/VBoxNetCfg.cpp

    r53090 r53318  
    20882088}
    20892089
    2090 /*
    2091  * Use the same id as does the old implementation for NDIS 5
    2092  * #define VBOXNETCFGWIN_NETLWF_ID    L"oracle_VBoxNetLwf"
    2093  */
    2094 #define VBOXNETCFGWIN_NETLWF_ID    L"sun_VBoxNetFlt"
     2090#define VBOXNETCFGWIN_NETLWF_ID    L"oracle_VBoxNetLwf"
    20952091
    20962092static HRESULT vboxNetCfgWinNetLwfUninstall(IN INetCfg *pNc, DWORD InfRmFlags)
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/win/ndis6/VBoxNetLwf.inf

    r53124 r53318  
    22; @file
    33; VBoxNetLwf.inf - VirtualBox Bridged Networking Driver inf file
    4 ;
    5 ; Note: We use the same component id as the old NetFlt implementation
    64;
    75;
     
    3230
    3331[VBox]
    34 %VBoxNetLwf_Desc% = VBoxNetLwf.ndi, sun_VBoxNetFlt
     32%VBoxNetLwf_Desc% = VBoxNetLwf.ndi, oracle_VBoxNetLwf
    3533
    3634[VBox.NTx86]
    37 %VBoxNetLwf_Desc% = VBoxNetLwf.ndi, sun_VBoxNetFlt
     35%VBoxNetLwf_Desc% = VBoxNetLwf.ndi, oracle_VBoxNetLwf
    3836
    3937[VBox.NTamd64]
    40 %VBoxNetLwf_Desc% = VBoxNetLwf.ndi, sun_VBoxNetFlt
     38%VBoxNetLwf_Desc% = VBoxNetLwf.ndi, oracle_VBoxNetLwf
    4139
    4240[VBoxNetLwf.ndi]
  • trunk/src/VBox/Installer/win/InstallHelper/VBoxInstallHelper.cpp

    r53090 r53318  
    498498
    499499#define NETLWF_INF_NAME L"VBoxNetLwf.inf"
    500 #define NETLWF_ID       L"sun_VBoxNetLwf" /** @todo Needs to be changed (?). */
    501 #define NETADP6_ID      L"sun_VBoxNetAdp6" /** @todo Needs to be changed (?). */
    502500
    503501static MSIHANDLE g_hCurrentModule = NULL;
     
    860858        if (uErr == ERROR_SUCCESS)
    861859        {
    862             WCHAR wszInfName[] = L"VBoxNetLwf.inf";
     860            WCHAR wszInfName[] = NETLWF_INF_NAME;
    863861            WCHAR wszInf[MAX_PATH];
    864862            DWORD cchInf = RT_ELEMENTS(wszInf) - sizeof(NETLWF_INF_NAME) - 1;
  • trunk/src/VBox/Main/src-server/HostImpl.cpp

    r52934 r53318  
    671671        hr = pNc->FindComponent(L"MS_TCPIP", &pTcpIpNcc);
    672672#    else
    673         /* for the filter-based approach we get all miniports our filter (sun_VBoxNetFlt)is bound to */
    674         hr = pNc->FindComponent(L"sun_VBoxNetFlt", &pTcpIpNcc);
     673        /* for the filter-based approach we get all miniports our filter (oracle_VBoxNetLwf)is bound to */
     674        hr = pNc->FindComponent(L"oracle_VBoxNetLwf", &pTcpIpNcc);
     675        if (hr != S_OK)
     676        {
     677            /* fall back to NDIS5 miniport lookup (sun_VBoxNetFlt) */
     678            hr = pNc->FindComponent(L"sun_VBoxNetFlt", &pTcpIpNcc);
     679        }
    675680#     ifndef VBOX_WITH_HARDENING
    676681        if (hr != S_OK)
     
    736741        else
    737742        {
    738             LogRel(("failed to get the sun_VBoxNetFlt component, error (0x%x)\n", hr));
     743            LogRel(("failed to get the oracle_VBoxNetLwf(sun_VBoxNetFlt) component, error (0x%x)\n", hr));
    739744        }
    740745
  • trunk/src/VBox/Main/src-server/win/NetIf-win.cpp

    r53082 r53318  
    14811481        hr = pNc->FindComponent(L"MS_TCPIP", &pTcpIpNcc);
    14821482# else
    1483         /* for the filter-based approach we get all miniports our filter (sun_VBoxNetFlt)is bound to */
    1484         hr = pNc->FindComponent(L"sun_VBoxNetFlt", &pTcpIpNcc);
     1483        /* for the filter-based approach we get all miniports our filter (oracle_VBoxNetLwf)is bound to */
     1484        hr = pNc->FindComponent(L"oracle_VBoxNetLwf", &pTcpIpNcc);
     1485        if (hr != S_OK)
     1486        {
     1487            /* fall back to NDIS5 miniport lookup (sun_VBoxNetFlt) */
     1488            hr = pNc->FindComponent(L"sun_VBoxNetFlt", &pTcpIpNcc);
     1489        }
    14851490#  ifndef VBOX_WITH_HARDENING
    14861491        if (hr != S_OK)
     
    15711576        else
    15721577        {
    1573             LogRel(("failed to get the sun_VBoxNetFlt component, error (0x%x)\n", hr));
     1578            LogRel(("failed to get the oracle_VBoxNetLwf(sun_VBoxNetFlt) component, error (0x%x)\n", hr));
    15741579        }
    15751580
Note: See TracChangeset for help on using the changeset viewer.

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