NdisSetNetBufferListProtocolId - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// nblaccessors.h

void NdisSetNetBufferListProtocolId(
  _NBL,
  _ProtocolId
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-nblaccessors-ndissetnetbufferlistprotocolid)

NdisSetNetBufferListProtocolId macro

Description

The NdisSetNetBufferListProtocolId macro sets the protocol identifier in the NetBufferListInfo member of a NET_BUFFER_LIST structure.

Parameters

_NBL

A pointer to a NET_BUFFER_LIST structure.

_ProtocolId

A protocol identifier, as one of the following values:

NDIS_PROTOCOL_ID_DEFAULT A default protocol driver identifier.

NDIS_PROTOCOL_ID_TCP_IP The TCP/IP protocol.

NDIS_PROTOCOL_ID_IPX The IPX protocol.

NDIS_PROTOCOL_ID_NBF The NetBEUI protocol.

Remarks

Drivers that create NET_BUFFER_LIST structures should set the protocol identifier by calling the NdisSetNetBufferListProtocolId macro or by associating an identifier with a NET_BUFFER_LIST pool.

To associate a protocol identifier with a NET_BUFFER_LIST pool, call the NdisAllocateNetBufferListPool function and specify the protocol identifier in the ProtocolId member of the NET_BUFFER_LIST_POOL_PARAMETERS structure.

Miniport, filter, and intermediate drivers set the protocol identifier to zero.

See also

NET_BUFFER_LIST

NET_BUFFER_LIST_POOL_PARAMETERS

NdisAllocateNetBufferListPool

NdisGetNetBufferListProtocolId