Skip to content

Latest commit

 

History

History
170 lines (102 loc) · 4.76 KB

ns-nbl-net_buffer_data.md

File metadata and controls

170 lines (102 loc) · 4.76 KB
UID title ms.date targetos description tech.root req.construct-type req.ddi-compliance req.dll req.header req.include-header req.kmdf-ver req.lib req.max-support req.redist req.target-min-winverclnt req.target-min-winversvr req.target-type req.typenames req.umdf-ver req.unicode-ansi topic_type api_type api_location api_name f1_keywords dev_langs
NS:nbl._NET_BUFFER_DATA
NET_BUFFER_DATA
11/30/2020
Windows
The NET_BUFFER_DATA structure contains information for managing the data buffers that are attached to a NET_BUFFER structure, and it identifies the next NET_BUFFER structure in a list of NET_BUFFER structures.
netvista
structure
ndis/nbl.h
ndis.h
Supported in NDIS 6.0 and later.
Windows
NET_BUFFER_DATA, *PNET_BUFFER_DATA
apiref
HeaderDef
nbl.h
_NET_BUFFER_DATA
PNET_BUFFER_DATA
NET_BUFFER_DATA
_NET_BUFFER_DATA
nbl/_NET_BUFFER_DATA
PNET_BUFFER_DATA
nbl/PNET_BUFFER_DATA
NET_BUFFER_DATA
nbl/NET_BUFFER_DATA
c++

_NET_BUFFER_DATA structure

-description

The NET_BUFFER_DATA structure contains information for managing the data buffers that are attached to a NET_BUFFER structure, and it identifies the next NET_BUFFER structure in a list of NET_BUFFER structures.

-struct-fields

-field Next

A pointer to the next NET_BUFFER structure in a linked list of NET_BUFFER structures. If this structure is the last NET_BUFFER structure in the list, this member is NULL.

-field CurrentMdl

A pointer to the first MDL that the current driver is using. This member provides an optimization that improves performance by skipping over any MDLs that the current driver is not using.

-field CurrentMdlOffset

The offset, in bytes, to the beginning of the used data space in the MDL that is specified by the CurrentMdl member.

-field NbDataLength

The length, in bytes, of the used data space in the MDL chain. The maximum length is 0xFFFFFFFF bytes.

-field MdlChain

A pointer to a linked list of MDLs that map a data buffer. The data buffer stores the network data.

-field DataOffset

The offset, in bytes, from the beginning of the MDL chain to the beginning of the network data in the MDL chain. This offset is also the size, in bytes, of the unused data space.

-remarks

The NET_BUFFER_HEADER structure contains a NET_BUFFER_DATA structure that defines data for the NET_BUFFER structure. To access the members of NET_BUFFER_DATA, use the NdisRetreatNetBufferDataStart and NdisAdvanceNetBufferDataStart functions, and the following macros:

NET_BUFFER_NEXT_NB

NET_BUFFER_FIRST_MDL

NET_BUFFER_DATA_OFFSET

NET_BUFFER_DATA_LENGTH

NET_BUFFER_CURRENT_MDL

NET_BUFFER_CURRENT_MDL_OFFSET
Note  The C and C++ compilers use different definitions for these macros. Failure to use the macros can cause problems when switching compilers.
 

-see-also

NET_BUFFER

NET_BUFFER_CURRENT_MDL

NET_BUFFER_CURRENT_MDL_OFFSET

NET_BUFFER_DATA_LENGTH

NET_BUFFER_DATA_OFFSET

NET_BUFFER_FIRST_MDL

NET_BUFFER_HEADER

NET_BUFFER_NEXT_NB

NdisAdvanceNetBufferDataStart NdisRetreatNetBufferDataStart