Changeset 53082 in vbox for trunk/src/VBox/HostDrivers/VBoxNetFlt
- Timestamp:
- Oct 17, 2014 6:49:23 AM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 96599
- Location:
- trunk/src/VBox/HostDrivers/VBoxNetFlt/win
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetFlt/win/cfg/VBoxNetCfg.cpp
r53038 r53082 2412 2412 2413 2413 #define DRIVERHWID _T("sun_VBoxNetAdp") 2414 #define DRIVERHWID_NDIS6 _T("sun_VBoxNetAdp6")2415 2414 2416 2415 #define SetErrBreak(strAndArgs) \ … … 2569 2568 t += _tcslen (t) + 1) 2570 2569 { 2571 if (!_tcsicmp (DRIVERHWID, t) || !_tcsicmp (DRIVERHWID_NDIS6, t))2570 if (!_tcsicmp (DRIVERHWID, t)) 2572 2571 { 2573 2572 /* get the device instance ID */ … … 2789 2788 while (t && *t && t < (TCHAR *) &detailBuf [RT_ELEMENTS(detailBuf)]) 2790 2789 { 2791 if (!_tcsicmp(t, DRIVERHWID) || !_tcsicmp(t, DRIVERHWID_NDIS6))2790 if (!_tcsicmp(t, DRIVERHWID)) 2792 2791 break; 2793 2792 -
trunk/src/VBox/HostDrivers/VBoxNetFlt/win/ndis6/VBoxNetAdp-win.h
r52630 r53082 35 35 #define VBOXNETADPWIN_TAG 'ANBV' 36 36 37 #define VBOXNETADPWIN_ATTR_FLAGS NDIS_MINIPORT_ATTRIBUTES_NDIS_WDM 37 #define VBOXNETADPWIN_ATTR_FLAGS NDIS_MINIPORT_ATTRIBUTES_NDIS_WDM | NDIS_MINIPORT_ATTRIBUTES_NO_HALT_ON_SUSPEND 38 38 #define VBOXNETADP_MAC_OPTIONS NDIS_MAC_OPTION_NO_LOOPBACK 39 39 #define VBOXNETADP_SUPPORTED_FILTERS (NDIS_PACKET_TYPE_DIRECTED | \ -
trunk/src/VBox/HostDrivers/VBoxNetFlt/win/ndis6/VBoxNetAdp6.inf
r52630 r53082 32 32 33 33 [VBox] 34 %VBoxNetAdp6_Desc% = VBoxNetAdp6.ndi, sun_VBoxNetAdp 634 %VBoxNetAdp6_Desc% = VBoxNetAdp6.ndi, sun_VBoxNetAdp 35 35 36 36 [VBox.NTx86] 37 %VBoxNetAdp6_Desc% = VBoxNetAdp6.ndi, sun_VBoxNetAdp 637 %VBoxNetAdp6_Desc% = VBoxNetAdp6.ndi, sun_VBoxNetAdp 38 38 39 39 [VBox.NTamd64] 40 %VBoxNetAdp6_Desc% = VBoxNetAdp6.ndi, sun_VBoxNetAdp 640 %VBoxNetAdp6_Desc% = VBoxNetAdp6.ndi, sun_VBoxNetAdp 41 41 42 42 [VBoxNetAdp6.ndi] -
trunk/src/VBox/HostDrivers/VBoxNetFlt/win/nobj/VBoxNetFltNobj.cpp
r52592 r53082 201 201 if (hr == S_OK) 202 202 { 203 if (!_wcsnicmp(pDevId, L"sun_VBoxNetAdp", sizeof(L"sun_VBoxNetAdp")/2) || 204 !_wcsnicmp(pDevId, L"sun_VBoxNetAdp6", sizeof(L"sun_VBoxNetAdp6")/2)) 203 if (!_wcsnicmp(pDevId, L"sun_VBoxNetAdp", sizeof(L"sun_VBoxNetAdp")/2)) 205 204 { 206 205 *pbShouldBind = false; -
trunk/src/VBox/HostDrivers/VBoxNetFlt/win/tools/VBoxNetAdpInstall.cpp
r52592 r53082 22 22 #include <devguid.h> 23 23 24 #define VBOX_NETADP_HWID L"sun_VBoxNetAdp" 24 25 #ifdef NDIS60 25 26 #define VBOX_NETADP_INF L"VBoxNetAdp6.inf" 26 #define VBOX_NETADP_HWID L"sun_VBoxNetAdp6"27 27 #else /* !NDIS60 */ 28 28 #define VBOX_NETADP_INF L"VBoxNetAdp.inf" 29 #define VBOX_NETADP_HWID L"sun_VBoxNetAdp"30 29 #endif /* !NDIS60 */ 31 30 … … 141 140 { 142 141 BOOL fRebootRequired = FALSE; 142 /* 143 * Before we can update the driver for existing adapters we need to remove 144 * all old driver packages from the driver cache. Otherwise we may end up 145 * with both NDIS5 and NDIS6 versions of VBoxNetAdp in the cache which 146 * will cause all sorts of trouble. 147 */ 148 VBoxDrvCfgInfUninstallAllF(L"Net", VBOX_NETADP_HWID, SUOI_FORCEDELETE); 143 149 hr = VBoxNetCfgWinUpdateHostOnlyNetworkInterface(VBOX_NETADP_INF, &fRebootRequired, VBOX_NETADP_HWID); 144 150 if (SUCCEEDED(hr))
Note:
See TracChangeset
for help on using the changeset viewer.