summaryrefslogtreecommitdiff
path: root/network/ndis
AgeCommit message (Collapse)Author
2026-05-26Fixed indentationAndre Muezerie
2026-05-26Fixed more typosAndre Muezerie
2026-05-26Fixed file name in top commentAndre Muezerie
2026-05-26Fixed copyright commentAndre Muezerie
2026-05-26Fixed commentsAndre Muezerie
2026-05-26Fixed typosAndre Muezerie
2026-05-21ndis: Removed trailing spacesAndre Muezerie
This PR performs a whitespace-only cleanup by removing trailing spaces/tabs from source files under network\ndis. This is to reduce noise when making changes using AI so that future reviews are easier to be done by humans. No functional logic changes were introduced. What Changed 1. Removed end-of-line trailing whitespace in text files. 2. Kept file encoding and line endings intact by applying byte-preserving edits. Risk / Impact 1. Low risk: formatting-only change. 2. No API, behavior, or build configuration changes intended.
2026-05-21Merge pull request #1386 from ↵5an7y-Microsoft
andremueiot/user/andremueiot/multiplication_converted_to_larger_type NDIS: Harden QoS bytes calculation in netvmini control path
2026-05-20ndis: Harden QoS bytes calculation in netvmini control pathAndre Muezerie
- Replaced direct size arithmetic in NICSetQOSParameters with checked integer-safe operations. - Added overflow handling for classification table size computation: - Multiply NumClassificationElements × ClassificationElementSize via RtlULongMult. - Add the revision header size via RtlULongAdd. - Return NDIS_STATUS_INVALID_LENGTH when either checked operation fails, instead of relying on unchecked arithmetic.
2026-05-14netvmini/rssv2: fix mixed-width comparison in processor lookup loopAndre Muezerie
Summary This PR addresses a static-analysis warning in rssv2.c related to comparing values of different integer widths in a loop condition. Changes - Updated the loop index type in NICSetRSSv2FindProcessorInRssSet from UINT8 to ULONG to match RssProcessorCount width. - Added an explicit cast when returning the found index: return (UINT8)index; to preserve the function’s return type and behavior. Why Using matching integer widths in loop comparisons avoids analyzer warnings and reduces risk of subtle boundary issues. Impact No functional behavior change is intended; this is a type-safety and code-quality fix for warning cleanup.
2026-04-27Potentially uninitialized variable in ndisbind.cAndre Muezerie
These changes eliminate the warnings about uninitialized variables under network\ndis. A macro was also added to prottest.c to suppress a (false) buffer overrun.
2025-03-20Update samples to use WDF v15+Wei Mao
2024-07-01Standarize INF files enconding to UTF-16 (LE with BOM); renormalize filesAdonais Romero Gonzalez
2024-02-26Remove x86 and ARM configurations for sample projects. (#1126)Adonais Romero González
* Removed Win32 and Arm from the project configurations. * Set default platform to x64.
2024-02-22Add ARM64 support on remaining network samples. (#1125)Adonais Romero González
* Added ARM64 as a new project configuration in both Debug and Release modes. * Set up properties for the ARM64 platform, including target version, debug libraries, driver target platform, driver type, and platform toolset. * Included additional dependencies for the ARM64 build. * Added ARM64 to the list of platforms for which the mux.dll file is packaged. * Remove /CETCOMPAT as it's not compatible with ARM64
2024-02-19Add ARM64 as target platform on multiple samples (#1104)Adonais Romero González
* Add ARM64 as target platform on multiple samples * Remove ARM64 from WFPSampler temporarily --------- Co-authored-by: Jakob Lichtenberg (170957) <[email protected]>
2023-04-21Ndis mux inf violations (#973)kahashimoto-ms
* Delete deprecated directives DelFiles and DelService * Add PnpLockdown=1 to the version section of the inf * Add catalog file in muxp.inf * Add PnpLockdown=1 to the version section of mux_mp.inf * Add catalog file in mux_mp.inf * include mux_mp.inf in the muxvaln project * include muxp.inf in mux project. Add mux.dll as file to package. Note as of now the Notifyob proj must be built then mux.dll must be moved to the Project Directory * Changed all DIRID to 13 * change all DIRID to 13 * Create build dependency so that mux.dll is generated before other projects. * Include the mux.dll from the notifyob project into the build package * Delete comments * Edit muxp.inf so that DIRID 13 is used for installation above certain releases * Change MUXP->MUXP_NC and MUXP_Update->MUXP. This makes the updated version look like the default. Old version called _NC for non-compliant * Edit muxp.inf so that MUXP comes before MUXP_NC * Make same edits to mux_mp.inf * Enable the Control-flow Enforcement Technology (CET) Shadow Stack mitigation * Fix Warning from runing Prefast static analysis * Fix more warnings from running Prefast * Use stampinf ARCH variable to replace all the hard coded architecures in mux_mp.inf * Use stampinf ARCH variable to replace all the hard coded architecures in muxp.inf * Delete extra comma typo * Change encoding of mux_mp.inf to UTF-16 LE * Change encoding of muxp.inf to UTF-16 LE * Add the correct build number for installing network drivers with Dlls and upate comment in muxp.inf * Add the correct build number for installing network drivers with Dlls and upate comment in mux_mp.inf * Change all instances of MUXP tp MUXMP in mux_mp.inf * Change Brace style to match existing code * Fix mistakes returning win32 err for HRESULT, and leaking memory * Fix mux_mp.inf to payload muxvlan.sys * Edit to sln and vcxproj files to edit how build directories are made * Edit vcxproj files to package correct files. Edit Target name for muxvlan project to be mux so the same inf files can be used for both projects * Remove comments * Fix mux_mp.inf to payload mux.sys * fix mistakes returning win32 err instead of HRESULT, and leaking mem * Change comment on mux_mp.inf explaining why build 25341 is used * Free lpszBindName before return.
2023-04-13Ndisprot inf violations (#974)kahashimoto-ms
* Add PnpLockdown=1 to the version section of the inf * Change service name to Ndisprot60 * Change Section 'wdfsection' to 'Install.Wdf' so it can be referenced. Change service to NdisProt60 in that section * Change all DIRID to 13 * Add different manufacturer entires so installtion is different for Windows 7 vs Windows 10 and above * Add another manufacturer so the driver installs in DriverStore for newest builds * Enable the Control-flow Enforcement Technology (CET) Shadow Stack mitigation * Add SAL annotation to the DllCanUnloadNow definition to match declaration * Use stampinf ARCH variable to replace hard coded architectures * Fix a comment * Add the correct build number for installing network drivers using Dlls and update comment.
2023-04-10Update various network projects to use DriverTargetPlatform of 'Windows ↵Jason
Driver' (#971) Co-authored-by: Jason Knichel <[email protected]>
2023-04-04Update all network sample INFs to use UTF-16 LE file encoding (#957)Jason
Co-authored-by: Jason Knichel <[email protected]>
2023-03-31Add PnpLockdown=1 to remaining samples (#949)Jason
Co-authored-by: Jason Knichel <[email protected]>
2023-03-27Ndisprot630 inf violations (#944)kahashimoto-ms
* Add PnPLockdown=1 to the veresion section to the inf * Added segments to the DriverVer * Change Service name to Ndisprot630 * Edit INF to install used DIRID 13 above a certain release number * Change names Install->Install_NC and Install_Update->Install * Move things around so Install appears before Install_NC * enable the Control-flow Enforcement Technology (CET) Shadow Stack mitigation * Network driver INF that target DIRID 13 should only build 25319 or later * Update comment * Enable CET Shadow Stack compatiblility
2023-03-27User/kahashimoto ms/ndislwf dirid 13 fix (#945)kahashimoto-ms
* removed unused Common.Params.reg section * Change DIRID from 12 to 13 * add PnpLockdown = 1 to the version section of the inf * Edit inf so that it uses DIRID 13 for installation above certain release * add the x86 and ia64 archs that were previously removed for simplicity * add comment on why there is a different installation for newer build versions * Move sections so updated ones appear first * Change Install_Update->Install and Install->Install_NC * Enable CET Shadow Stack Compatible * remove white space * Use the stampinf ARCH variable to replace all the hard coded architectures * Network driver INF that use DIRID 13 should only target build 25319 or later * Update comment * delete some white space * Change encoding of inf to UTF-16LE
2023-03-27Ndisprot60 inf violations (#943)kahashimoto-ms
* Add PnpLockdown=1 to the version section of the INF * Add segments to the DriverVer * Change Service name from Ndisprot to Ndisprot60 because Ndisprot is reserved * Edit INF to install used DIRID 13 above a certain release number * Add section Install_Update.Remove.Services * Change names Install->Install_NC and Install_Update->Install * Move things around so Install appears before Install_NC * enable the Control-flow Enforcement Technology (CET) Shadow Stack mitigation * Network driver INF that target DIRID 13 should only build 25319 or later * Update comment
2023-03-27User/kahashimoto ms/msforwardext inf violation (#941)kahashimoto-ms
* Add PnpLockdown=1 to the version section of the INF * Add segments to DriverVer in INF * Change DIRID from 12 to 13 * Enable the Control-flow Enforcement Technology (CET) Shadow Stack mitigation. * Use Stampinf architecture * Change the encoding of inf to UTF-16LE
2023-03-24Mspassthroughext arch fix (#942)kahashimoto-ms
* Use Stampinf architecture * Enable the CET Shadow Stack mitigation * Change the encoding of inf to UTF-16LE
2023-03-24Netvmini arch fix (#940)kahashimoto-ms
* Enable stampinf arch replacement for netvmini60 * delete stray comma * Enable stampinf arch replacement for netvmini620 * Enable stampinf arch replacement for netvmini630 * Enable stampinf arch replacement for netvmini680 * Enable the CET Shadow Stack mitigation for each netvmini60,620,630,680 projects
2023-03-13INFs using DIRID 13 should target only build 16299 or later - network ↵Jason
updates (#928) Co-authored-by: Jason Knichel <[email protected]>
2023-03-07Opt many samples in for Universal validation (#910)Michael Bernstein (MSFT)
* Opt-in many Desktop samples for ApiValidator ApiValidator is passing for many of our samples marked Desktop. This is promising and it is worth running ApiValidator on these to ensure they stay within the Universal API limits. * Shift avstream/sampledevicemft sample to use mfcore.dll rather than mf.dll * Opt many samples in for Universal validation Many of our driver samples build cleanly agains the UniversalDDIs.xml API list. Opting these in as Universal helps protect their API surface against accidentally picking up more Desktop-only APIs. * Revert "Opt-in many Desktop samples for ApiValidator" This reverts commit a6aa7e6797ab01e6b15c8a4e1cbcea6d7a615629. --------- Co-authored-by: Michael Bernstein (DPLAT) <[email protected]>
2023-03-03Fix up some of the malformed DriverVer directives (#909)Jason
Co-authored-by: Jason Knichel <[email protected]>
2023-02-08Update filter.h (#544)Hanwool Park
2023-02-03mspassthroughext Driver compatibility violations (#846)kahashimoto-ms
* Add PnpLockdown to the version section of the INF * Add segments to DriverVer * Change DIRID from 12 to 13
2022-12-02Netvmin680 fix (#805)kahashimoto-ms
* add NDIS_SUPPORT_NDIS680 in #if directive in adapter.c * add NDIS_SUPPORT_NDIS680 in #if directive in miniport.c * fix driver isolation violation 1323 for netvmini680.inf * fix driver isolation violation 1322 for netvmini680.inf * set NIC_PHYSICAL_MEDIUM to NdisPhysicalMedium802_3 in hardware.h * change local type from ULONG to UINT8 to match return type * Remove AddReg TextModeFlags in inf for netvmini680
2022-12-02Fix driver isolation violations 1322 and 1323 for netvmini (60, 620, 630) ↵kahashimoto-ms
drivers. (#803) * fix driver isolation violations 1322 1323 for netvmini60.inf * fix driver isolation violations 1322 1323 for netvmini620.inf * fix driver isolation violations 1322 1323 for netvmini630.inf * change local type from ULONG to UINT8 to match return type * Remove AddReg TextModeFlags in inf for netvmini60 * Remove AddReg TextModeFlags in inf for netvmini620 * Remove AddReg TextModeFlags in inf for netvmini630
2022-07-18[network\ndis\ndisprot] Virtual Miniport: Fix UINT8 comparison with ULONG (#754)Tom Molenhouse
fix UINT8 comparison with ULONG
2022-03-22Merge pull request #695 from tmolenh/netvmini-pooltobafo19
Virtual Miniport: Replace ExAllocatePool* with ExAllocatePool2
2022-03-02Replace ExAllocatePool* with ExAllocatePool2Tom Molenhouse
2022-03-02Replace ExAllocatePool* with ExAllocatePool2Tom Molenhouse
2022-02-01Merge pull request #646 from tmolenh/mastertobafo19
Update switch extension samples to use SHA256 driver signing
2021-07-29Updated \network\ndis Windows-driver-samples to use SHA256Jordan Geurten
2021-06-28Update switch extension samples to use SHA256 driver signingTom Molenhouse
2021-05-03Update ndis driver samples to use sha256 file digest algorithm.Botao Deng
2021-02-22Update ndis filter driver file digest algorithm to SHA256. (#580)bodengMS
2020-12-16Use SHA256 for ndisprot60's driver signing (#558)253337yjqms
2020-01-08Removed repeated sentence (#449)112648Dominic Letz
2019-09-26Update README.md (#426)877798777887777877768777587774877738777287771877708776987768Barry Golden
* Update README.md * Update README.md
2019-09-25Update README.md (#424)87280872798727887277872768727587274872738727287271872708726987268872678726687265872648726387262872618726087259872588725787255872548725387252Barry Golden
2019-09-23Update README.md (#422)8629686295862948629386292862918629086289Barry Golden
2019-09-19Update README.md (#421)8552485523855228552185520855198551885517855168551585514855138551285511855108550985508855078550685505Barry Golden
2019-09-05Update README.md (#411)81853818528185181850818498184881847818468184581844818438184281841818408183981838Barry Golden
* Update README.md * Update README.md