Bewerken

Delen via


NdisSetNetBufferListProtocolId macro (ndis/nblaccessors.h)

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

Syntax

void NdisSetNetBufferListProtocolId(
   _NBL,
   _ProtocolId
);

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.

Return value

None

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.

Requirements

Requirement Value
Minimum supported client Supported in NDIS 6.0 and later.
Target Platform Universal
Header ndis/nblaccessors.h (include ndis.h)

See also

NET_BUFFER_LIST

NET_BUFFER_LIST_POOL_PARAMETERS

NdisAllocateNetBufferListPool

NdisGetNetBufferListProtocolId