Re: NdisQueryBufferSafe returns zero buffer length when NdisQueryPacket says there is more data

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




Stephan Wolf [MVP] wrote:
fat_boy wrote:
I found out that the packet is often received by my driver with four
buffers, only the third one is zero length.

Yes, any NDIS_BUFFER in the chain of buffers can have zero length.

Note that for the receive path, the minimum size of the first
NDIS_BUFFER of an NDIS_PACKET must be at least
OID_GEN_MAXIMUM_LOOKAHEAD or the complete packet, whichever is shorter.

OK, thanks.


No such limitations apply for the transmit path.

Stephan

.



Relevant Pages