次の方法で共有


NdisGetNetBufferListProtocolId (Compact 2013)

3/26/2014

This function retrieves the protocol identifier from the NetBufferListInfo member of a NET_BUFFER_LIST structure.

Syntax

UCHAR
  NdisGetNetBufferListProtocolId(
    IN PNET_BUFFER_LIST  NetBufferList
    );

Parameters

  • NetBufferList
    A pointer to a NET_BUFFER_LIST structure.

Return Value

NdisGetNetBufferListProtocolId returns a protocol identifier as one of the following values:

Value

Description

NDIS_PROTOCOL_ID_DEFAULT

A default protocol driver identifier.

NDIS_PROTOCOL_ID_TCP_IP

The TCP/IP protocol identifier.

NDIS_PROTOCOL_ID_IPX

The IPX protocol identifier.

NDIS_PROTOCOL_ID_NBF

The NetBEUI protocol identifier.

Remarks

NDIS drivers can call the NdisGetNetBufferListProtocolId function to determine the type of protocol driver that created a NET_BUFFER_LIST structure. For example, miniport drivers that support TCP chimney offload can verify that a NET_BUFFER_LIST structure comes from a TCP protocol.

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.

Requirements

Header

ndis.h

See Also

Reference

NDIS NET_BUFFER Functions
NET_BUFFER_LIST
NdisSetNetBufferListProtocolId