Driver Problems? Questions? Issues?
Put OSR's experience to work for you! Contact us for assistance with:
  • Creating the right design for your requirements
  • Reviewing your existing driver code
  • Analyzing driver reliability/performance issues
  • Custom training mixed with consulting and focused directly on your specific areas of interest/concern.
Check us out. OSR, the Windows driver experts.

Upcoming OSR Seminars:

Writing WDF Drivers I: Core Concepts, Nashua, NH 15-19 May, 2017
Writing WDF Drivers II: Advanced Implementation Tech., Nashua, NH 23-26 May, 2017
Kernel Debugging and Crash Analysis, Dulles, VA 26-30 June, 2017
Windows Internals & Software Driver Development, Nashua, NH 24-28 July, 2017


Go Back   OSR Online Lists > ntdev
Welcome, Guest
You must login to post to this list
  Message 1 of 3  
14 Feb 17 01:55
vinay kp
xxxxxx@gmail.com
Join Date: 15 Dec 2016
Posts To This List: 182
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 ?
  Message 2 of 3  
14 Feb 17 05:42
Jan Bottorff
xxxxxx@pmatrix.com
Join Date: 16 Apr 2013
Posts To This List: 378
Why miniport did not correctly pad all short packets during packet sent ?

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" <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://www.osronline.com/showlists.cfm?list=ntdev> MONTHLY seminars on crash dump analysis, WDF, Windows internals and software drivers! Details at <http://www.osr.com/seminars> To unsubscribe, visit the List Server section of OSR Online at <http://www.osronline.com/page.cfm?name=ListServer>
  Message 3 of 3  
14 Feb 17 15:29
vinay kp
xxxxxx@gmail.com
Join Date: 15 Dec 2016
Posts To This List: 182
Why miniport did not correctly pad all short packets during packet sent ?

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 ?
Posting Rules  
You may not post new threads
You may not post replies
You may not post attachments
You must login to OSR Online AND be a member of the ntdev list to be able to post.

All times are GMT -5. The time now is 06:34.


Copyright ©2015, OSR Open Systems Resources, Inc.
Based on vBulletin Copyright ©2000 - 2005, Jelsoft Enterprises Ltd.
Modified under license