// nblaccessors.h
void NdisSetNetBufferListProtocolId(
_NBL,
_ProtocolId
);
View the official Windows Driver Kit DDI referenceNo description available.
The NdisSetNetBufferListProtocolId macro sets the protocol identifier in the NetBufferListInfo member of a NET_BUFFER_LIST structure.
_NBLA pointer to a NET_BUFFER_LIST structure.
_ProtocolIdA 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.
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.
NET_BUFFER_LIST_POOL_PARAMETERS
NdisGetNetBufferListProtocolId