VirtualBox

Changeset 14271 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Nov 17, 2008 10:49:54 PM (16 years ago)
Author:
vboxsync
Message:

NetFlt/win: fixes for the case NetFlt is not installed

Location:
trunk/src/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DrvIntNet.cpp

    r13840 r14271  
    10141014
    10151015#elif defined(RT_OS_WINDOWS) && defined(VBOX_WITH_NETFLT)
     1016
     1017    if(OpenReq.enmTrunkType == kIntNetTrunkType_NetFlt)
     1018    {
    10161019# ifndef VBOX_NETFLT_ONDEMAND_BIND
    1017     /* we have a ndis filter driver started on system boot before the VBoxDrv,
    1018      * tell the filter driver to init VBoxNetFlt functionality */
    1019     rc = drvIntNetWinConstruct(pDrvIns, pCfgHandle);
    1020     if (RT_FAILURE(rc))
    1021     {
    1022         return rc;
    1023     }
     1020        /* we have a ndis filter driver started on system boot before the VBoxDrv,
     1021         * tell the filter driver to init VBoxNetFlt functionality */
     1022        rc = drvIntNetWinConstruct(pDrvIns, pCfgHandle);
     1023        if (RT_FAILURE(rc))
     1024        {
     1025            return rc;
     1026        }
    10241027# endif
    1025     if(OpenReq.enmTrunkType == kIntNetTrunkType_NetFlt)
    1026     {
     1028
    10271029        char szBindName[INTNET_MAX_TRUNK_NAME];
    10281030        int cBindName = INTNET_MAX_TRUNK_NAME;
  • trunk/src/VBox/Main/HostImpl.cpp

    r14076 r14271  
    960960        /* for the filter-based approach we get all miniports our filter (sun_VBoxNetFlt)is bound to */
    961961        hr = pNc->FindComponent(L"sun_VBoxNetFlt", &pTcpIpNcc);
     962# ifndef VBOX_WITH_HARDENING
     963        if(hr != S_OK)
     964        {
     965            /* TODO: try to install the netflt from here */
     966        }
     967# endif
     968
    962969#endif
    963970
    964         Assert(hr == S_OK);
    965971        if(hr == S_OK)
    966972        {
     
    10021008            VBoxNetCfgWinReleaseRef(pTcpIpNcc);
    10031009        }
     1010        else
     1011        {
     1012            LogRel(("failed to get the sun_VBoxNetFlt component, error (0x%x)", hr));
     1013        }
     1014
    10041015        VBoxNetCfgWinReleaseINetCfg(pNc, FALSE);
    10051016    }
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