目录
当前位置: 首页 > 文档资料 > WinPcap 中文手册 >

WinPcap: __CPU_Private_Data Struct Reference

优质
小牛编辑
134浏览
2023-12-01

[NPF structures and definitions]
Kernel buffer of each CPU.
More...

#include <Packet.h>

Data Fields

ULONGP
Zero-based index of the producer in the buffer. It indicates the first free byte to be written.
ULONGC
Zero-based index of the consumer in the buffer. It indicates the first free byte to be read.
ULONGFree
Number of the free bytes in the buffer.
PUCHARBuffer
Pointer to the kernel buffer used to capture packets.
ULONGAccepted
ULONGReceived
ULONGDropped
NDIS_SPIN_LOCKBufferLock
It protects the buffer associated with this CPU.
PMDLTransferMdl1
MDL used to map the portion of the buffer that will contain an incoming packet.
PMDLTransferMdl2
Second MDL used to map the portion of the buffer that will contain an incoming packet.
ULONGNewP
Used by NdisTransferData() (when we call NdisTransferData, p index must be updated only in the TransferDataComplete.