次の方法で共有


NdisSetNetBufferListProtocolId (Compact 2013)

3/26/2014

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

Syntax

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

Header

ndis.h

See Also

Reference

NET_BUFFER_LIST Structure Macros
NET_BUFFER_LIST
NdisAllocateNetBufferListPool
NdisGetNetBufferListProtocolId