Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Home NTDEV

Before Posting...

Please check out the Community Guidelines in the Announcements and Administration Category.

More Info on Driver Writing and Debugging


The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.


Check out The OSR Learning Library at: https://www.osr.com/osr-learning-library/


Running HLK NDIS tests for drivers with NdisMediumIP medium type

lstipakovlstipakov Member Posts: 16

Hi,

I am working on ovpn-dco-win - a new kernel driver for OpenVPN. We have some test automation in GitHub when we run HLK tests using AutoHCK. The driver works on IP layer and therefore *MediaType value in .INF file is set to NdisMediumIP (19). With this value, HLK Studio only detects "generic" features of the device, such as

  • Device.DevFund.CDA
  • Device.DevFund.DeviceGuard
  • Device.DevFund.DriverFramework.AllDrivers
  • Device.DevFund.DriverFramework.KMDF
  • Device.DevFund.INF
  • Device.DevFund.Memory
  • Device.DevFund.Reliability
  • Device.DevFund.Reliability.Interrupts
  • Device.DevFund.Security-
  • Device.DevFund.Security
  • Device.DevFund.Server
  • Device.DevFund.StaticTools
  • Device.DevFund.UniversalDriver

and doesn't detect network-related device features like

  • Device.Network.DevFund
  • Device.Network.LAN.Base

and so on.


With missing network features HLK studio doesn't run NDIS tests, such as connection tests involving two machines. I tried to add missing features manually, but this didn't work - NDISTEST tool on a test machine shows modal message box with the text You must select at least one test to run. The same thing happens when I run NDISTEST tool - it just doesn't show any tests to run.


If I change *MediaType value in .INF file to NdisMedium802_3 (0), HLK Studio detects abovementioned network features and I also do see lots of NDIS tests in NDISTEST tool.


So my question is - is it possible to run HLK NDIS tests for network devices which work on IP layer? So far the only way I see is to use NdisMedium802_3 and account for ethernet header, but I am not sure I want to implement this just for testing purposes.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. Sign in or register to get started.

Upcoming OSR Seminars
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!
Writing WDF Drivers 12 September 2022 Live, Online
Internals & Software Drivers 23 October 2022 Live, Online
Kernel Debugging 14 November 2022 Live, Online
Developing Minifilters 5 December 2022 Live, Online