Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Before Posting... Please check out the Community Guidelines in the
Announcements and Administration Category.

How to get raw data from NET_BUFFER_LIST

Ray_MikeRay_Mike Posts: 5
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.

Comments

  • ashish_kohliashish_kohli Posts: 55
    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
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!