Why miniport did not correctly pad all short packets during packet sent ?

I am trying to pass NDISTest 6.5 - Shortpackets for HLK test certification . During this test i got some error during the packet sent .

HLK tries to sent Packets Netbufferlist : 40 (20 NBLs * 2 NBs/NBL) .

**********************************************
But Ndistest TotalNetBuffersAccepted : 40
TotalNetBuffersCorrupted : 0
TotalBadlyPaddedPacketsReceived : 40

***********************************************
and getting error " The miniport did not correctly pad all short packets. 40 incorrect packets. " . also i am getting message like " total breakpoints were hit in the protocol driver while this test was executing " .

I checked with NDISTest log for this break point . i am getting error like :

***********************************************************************

Badly padded packet in the NetBuffer received. Ethernet Packet size is less than the minimum size allowed.
Corrupt MDL = FFFFE000C4E7C540 , Net Buffer List = FFFFE000C4E0E980
Expected Size of packet = 60, Actual Size of packet received = 45

************************************************************************

What does this means ? Should i drop this size of packet ? Any suggestions ?
Where should i change size of packet from 60 to 45 ? Any idea ?

If you are going to simulate Ethernet, your driver needs to make sure you don’t receive packets smaller than Ethernet would have. To verify you are correctly padding packets, the WHQL tests send short packets, and verifies they are minimum Ethernet length on receive. You need to pad them, not drop them. They are required to be padded with a safe value, like zeros, to prevent accidental leakage of uninitialized memory values.

Jan

On 2/13/17, 10:54 PM, “xxxxx@lists.osr.com on behalf of xxxxx@gmail.com” wrote:

I am trying to pass NDISTest 6.5 - Shortpackets for HLK test certification . During this test i got some error during the packet sent .

HLK tries to sent Packets Netbufferlist : 40 (20 NBLs * 2 NBs/NBL) .


But Ndistest TotalNetBuffersAccepted : 40
TotalNetBuffersCorrupted : 0
TotalBadlyPaddedPacketsReceived : 40

*
and getting error " The miniport did not correctly pad all short packets. 40 incorrect packets. " . also i am getting message like " total breakpoints were hit in the protocol driver while this test was executing " .

I checked with NDISTest log for this break point . i am getting error like :



Badly padded packet in the NetBuffer received. Ethernet Packet size is less than the minimum size allowed.
Corrupt MDL = FFFFE000C4E7C540 , Net Buffer List = FFFFE000C4E0E980
Expected Size of packet = 60, Actual Size of packet received = 45

*

What does this means ? Should i drop this size of packet ? Any suggestions ?
Where should i change size of packet from 60 to 45 ? Any idea ?


NTDEV is sponsored by OSR

Visit the list online at: http:

MONTHLY seminars on crash dump analysis, WDF, Windows internals and software drivers!
Details at http:

To unsubscribe, visit the List Server section of OSR Online at http:</http:></http:></http:>

Ok thanks for your suggestion.

So should i receive the packet less than Ethernet ? If it is i should padd with zeros inorder to protect memcpoy . Isn’t ?