Notitie
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen u aan te melden of de directory te wijzigen.
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen de mappen te wijzigen.
The NdisGetNetBufferListProtocolId function retrieves the protocol identifier from the NetBufferListInfo member of a NET_BUFFER_LIST structure.
Syntax
NDIS_EXPORTED_ROUTINE UCHAR NdisGetNetBufferListProtocolId(
[in] NET_BUFFER_LIST const *NetBufferList
);
Parameters
[in] NetBufferList
A pointer to a NET_BUFFER_LIST structure.
Return value
NdisGetNetBufferListProtocolId returns a protocol identifier as one of the following values:
| Return code | Description |
|---|---|
|
A default protocol driver identifier. |
|
The TCP/IP protocol identifier. |
|
The IPX protocol identifier. |
|
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
| Requirement | Value |
|---|---|
| Minimum supported client | Supported in NDIS 6.0 and later. |
| Target Platform | Universal |
| Header | ndis/nblapi.h (include ndis.h) |
| Library | Ndis.lib |
| IRQL | Any level |