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.

OSR Seminars

Go Back   OSR Online Lists > ntdev
Welcome, Guest
You must login to post to this list
  Message 1 of 2  
16 Jul 18 14:05
Ray Mike
Join Date: 16 Jul 2018
Posts To This List: 4
How to get raw data from NET_BUFFER_LIST

How to get raw data from _NET_BUFFER_LIST structure ? Let's say i am writing NDIS filter driver. There is _NET_BUFFER_LIST structure. How do i get the traffic raw data and print it to my debugger screen.
  Message 2 of 2  
16 Jul 18 14:19
ashish kohli
Join Date: 29 Nov 2014
Posts To This List: 50
How to get raw data from NET_BUFFER_LIST

NET_BUFFER_LIST is list of NET_BUFFER_LIST NET_BUFFER_LIST is list of NET_BUFFER NET_BUFFER is list of MDL So your reading will be recursive. ReadNetbufferList ----- Read all single NET_BUFFER_LIST and then concatenate ReadNetBufferListSingle --- Read all single NET_BUFFER and then concatenate ReadNetBuffer -- Read all MDLs and then concatenate ReadMDL -- Code to read data in MDL You can use NdisGetDataBuffer to get all data from NET_BUFFER as optimization
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 18:47.

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