Makro NdisSetNetBufferListProtocolId (ndis/nblaccessors.h)

Makro NdisSetNetBufferListProtocolId mengatur pengidentifikasi protokol di anggota NetBufferListInfo dari struktur NET_BUFFER_LIST .

Sintaks

void NdisSetNetBufferListProtocolId(
   _NBL,
   _ProtocolId
);

Parameter

_NBL

Penunjuk ke struktur NET_BUFFER_LIST .

_ProtocolId

Pengidentifikasi protokol, sebagai salah satu nilai berikut:

NDIS_PROTOCOL_ID_DEFAULT
Pengidentifikasi driver protokol default.

NDIS_PROTOCOL_ID_TCP_IP
Protokol TCP/IP.

NDIS_PROTOCOL_ID_IPX
Protokol IPX.

NDIS_PROTOCOL_ID_NBF
Protokol NetBEUI.

Nilai kembali

Tidak ada

Keterangan

Driver yang membuat struktur NET_BUFFER_LIST harus mengatur pengidentifikasi protokol dengan memanggil makro NdisSetNetBufferListProtocolId atau dengan mengaitkan pengidentifikasi dengan kumpulan NET_BUFFER_LIST .

Untuk mengaitkan pengidentifikasi protokol dengan kumpulan NET_BUFFER_LIST , panggil fungsi NdisAllocateNetBufferListPool dan tentukan pengidentifikasi protokol di anggota ProtocolId dari struktur NET_BUFFER_LIST_POOL_PARAMETERS .

Miniport, filter, dan driver menengah mengatur pengidentifikasi protokol ke nol.

Persyaratan

Persyaratan Nilai
Klien minimum yang didukung Didukung di NDIS 6.0 dan yang lebih baru.
Target Platform Universal
Header ndis/nblaccessors.h (termasuk ndis.h)

Lihat juga

NET_BUFFER_LIST

NET_BUFFER_LIST_POOL_PARAMETERS

NdisAllocateNetBufferListPool

NdisGetNetBufferListProtocolId