WinPcap: __CPU_Private_Data Struct Reference
优质
小牛编辑
139浏览
2023-12-01
[NPF structures and definitions]
Kernel buffer of each CPU.
More...
#include <Packet.h>
Data Fields | |
ULONG | P |
Zero-based index of the producer in the buffer. It indicates the first free byte to be written. | |
ULONG | C |
Zero-based index of the consumer in the buffer. It indicates the first free byte to be read. | |
ULONG | Free |
Number of the free bytes in the buffer. | |
PUCHAR | Buffer |
Pointer to the kernel buffer used to capture packets. | |
ULONG | Accepted |
ULONG | Received |
ULONG | Dropped |
NDIS_SPIN_LOCK | BufferLock |
It protects the buffer associated with this CPU. | |
PMDL | TransferMdl1 |
MDL used to map the portion of the buffer that will contain an incoming packet. | |
PMDL | TransferMdl2 |
Second MDL used to map the portion of the buffer that will contain an incoming packet. | |
ULONG | NewP |
Used by NdisTransferData() (when we call NdisTransferData, p index must be updated only in the TransferDataComplete. |