microsoft / NCM-Driver-for-Windows

The Windows NCM drivers (host-side and function-side) are the NetAdapterCx based NIC drivers that implements Network Control Model (CDC NCM) specification defined by USB-IF
MIT License
67 stars 25 forks source link

Missing header file #3

Closed igorojas closed 5 years ago

igorojas commented 5 years ago

I tried to build this NCM driver but preview/netringiterator.h is missing. Can anyone point to its location?

Thanks! IgoR

brandonjiang commented 5 years ago

Igor

you need preview version of WDK, see here

Thanks Brandon

Morita-AuBit commented 5 years ago

Thank you for the info. Yes, preview version of WDF resolved the missing header file issue. But the latest WDF, 10.0.18362.0 I have just downloaded, seems too new to build this driver. Many NetRing* functions are missing in the WDK version. E.g. NetRingGetTxPostPacketFragmentIterator, NetRingIteratorAny and NetRingAdvanceFragmentIterator functions are not in the WDK.

What exactly version of WDK did you test this driver? And can I get the same version?

Best, Morizzo

brandonjiang commented 5 years ago

Morizzo,

Thanks for reporting this. the current NCM sources are a bit outdated. we'll release a new drop of NCM sources code soon, that will work with WDK 10.0.18362.0

Thanks Brandon

brandonjiang commented 5 years ago

the code base has been updated to WDK 10.0.18362.0

Morita-AuBit commented 5 years ago

Brandon,

Thank you for quick fix but unfortunately nothing seems improved. NetPacketLibrary.h references lots of NetRing* functions but those functions are not declared in any of header files in Windows Kits\10\Include\10.0.18362.0\km\netcx directory.

Missing functions are:

NetRingAdvanceEndFragmentIterator NetRingAdvanceFragmentIterator NetRingAdvancePacketIterator NetRingGetAllFragmentIterator NetRingGetAllPacketIterator NetRingGetTxDrainPacketFragmentIterator NetRingGetTxDrainPacketIterator NetRingGetTxPostPacketFragmentIterator NetRingIteratorAny NetRingIteratorGetFragment NetRingIteratorGetPacket NetRingSetAllFragmentIterator NetRingSetAllPacketIterator NetRingSetTxDrainFragmentIterator NetRingSetTxDrainPacketIterator

Any ideas?

Thanks, Morizzo

brandonjiang commented 5 years ago

Hey, Morizzo

Sorry I missed the NetPacketLibrary.h in my previous commit, now it should be built correctly.

Thanks Brandon