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

WinPcap: _OPEN_INSTANCE Struct Reference

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

Contains the state of a running instance of the NPF driver.
More...

#include <Packet.h>

Data Fields

PDEVICE_EXTENSIONDeviceExtension
NDIS_HANDLEAdapterHandle
NDIS idetifier of the adapter used by this instance.
UINTMedium
NDIS_HANDLEPacketPool
Pool of NDIS_PACKET structures used to transfer the packets from and to the NIC driver.
KSPIN_LOCKRequestSpinLock
SpinLock used to synchronize the OID requests.
LIST_ENTRYRequestList
List of pending OID requests.
LIST_ENTRYResetIrpList
List of pending adapter reset requests.
INTERNAL_REQUESTRequests [MAX_REQUESTS]
Array of structures that wrap every single OID request.
PMDLBufferMdl
Pointer to a Memory descriptor list (MDL) that maps the circular buffer's memory.
PKEVENTReadEvent
Pointer to the event on which the read calls on this instance must wait.
PUCHARbpfprogram
UINTMinToCopy
LARGE_INTEGERTimeOut
intmode
Working mode of the driver. See PacketSetMode() for details.
LARGE_INTEGERNbytes
Amount of bytes accepted by the filter when this instance is in statistical mode.
LARGE_INTEGERNpackets
Number of packets accepted by the filter when this instance is in statistical mode.
NDIS_SPIN_LOCKCountersLock
SpinLock that protects the statistical mode counters.
UINTNwrites
ULONGMultiple_Write_Counter
Counts the number of times a single write has already physically repeated.
NDIS_EVENTWriteEvent
Event used to synchronize the multiple write process.
BOOLEANWriteInProgress
NDIS_SPIN_LOCKWriteLock
SpinLock that protects the WriteInProgress variable.
NDIS_EVENTNdisRequestEvent
Event used to synchronize I/O requests with the callback structure of NDIS.
BOOLEANSkipSentPackets
True if this instance should not capture back the packets that it transmits.
NDIS_STATUSIOStatus
Maintains the status of and OID request call, that will be passed to the application.
HANDLEDumpFileHandle
Handle of the file used in dump mode.
PFILE_OBJECTDumpFileObject
Pointer to the object of the file used in dump mode.
PKTHREADDumpThreadObject
Pointer to the object of the thread used in dump mode.
HANDLEDumpThreadHandle
Handle of the thread created by dump mode to asynchronously move the buffer to disk.
NDIS_EVENTDumpEvent
Event used to synchronize the dump thread with the tap when the instance is in dump mode.
LARGE_INTEGERDumpOffset
Current offset in the dump file.
UNICODE_STRINGDumpFileName
String containing the name of the dump file.
UINTMaxDumpBytes
UINTMaxDumpPacks
BOOLEANDumpLimitReached
MEM_TYPEmem_ex
Memory used by the TME virtual co-processor.
TME_COREtme
Data structure containing the virtualization of the TME co-processor.
NDIS_SPIN_LOCKMachineLock
SpinLock that protects the BPF filter and the TME engine, if in use.
UINTMaxFrameSize
CpuPrivateDataCpuData [32]
Pool of kernel buffer structures, one for each CPU.
ULONGReaderSN
Sequence number of the next packet to be read from the pool of kernel buffers.
ULONGWriterSN
ULONGSize
Size of each kernel buffer contained in the CpuData field.
ULONGAdapterHandleUsageCounter
NDIS_SPIN_LOCKAdapterHandleLock
ULONGAdapterBindingStatus
Specifies if NPF is still bound to the adapter used by this instance, it's unbinding or it's not bound.
NDIS_EVENTNdisOpenCloseCompleteEvent
NDIS_EVENTNdisWriteCompleteEvent
Event that is signalled when all the packets have been successfully sent by NdisSend (and corresponfing sendComplete has been called).
NTSTATUSOpenCloseStatus
ULONGTransmitPendingPackets
Specifies the number of packets that are pending to be transmitted, i.e. have been submitted to NdisSendXXX but the SendComplete has not been called yet.