WinPcap
4.1.3
|
Contains the state of a running instance of the NPF driver. More...
#include <Packet.h>
Data Fields | |
PDEVICE_EXTENSION | DeviceExtension |
NDIS_HANDLE | AdapterHandle |
NDIS idetifier of the adapter used by this instance. More... | |
UINT | Medium |
NDIS_HANDLE | PacketPool |
Pool of NDIS_PACKET structures used to transfer the packets from and to the NIC driver. More... | |
KSPIN_LOCK | RequestSpinLock |
SpinLock used to synchronize the OID requests. More... | |
LIST_ENTRY | RequestList |
List of pending OID requests. More... | |
LIST_ENTRY | ResetIrpList |
List of pending adapter reset requests. More... | |
INTERNAL_REQUEST | Requests [MAX_REQUESTS] |
Array of structures that wrap every single OID request. More... | |
PMDL | BufferMdl |
Pointer to a Memory descriptor list (MDL) that maps the circular buffer's memory. More... | |
PKEVENT | ReadEvent |
Pointer to the event on which the read calls on this instance must wait. More... | |
PUCHAR | bpfprogram |
UINT | MinToCopy |
LARGE_INTEGER | TimeOut |
int | mode |
Working mode of the driver. See PacketSetMode() for details. More... | |
LARGE_INTEGER | Nbytes |
Amount of bytes accepted by the filter when this instance is in statistical mode. More... | |
LARGE_INTEGER | Npackets |
Number of packets accepted by the filter when this instance is in statistical mode. More... | |
NDIS_SPIN_LOCK | CountersLock |
SpinLock that protects the statistical mode counters. More... | |
UINT | Nwrites |
ULONG | Multiple_Write_Counter |
Counts the number of times a single write has already physically repeated. More... | |
NDIS_EVENT | WriteEvent |
Event used to synchronize the multiple write process. More... | |
BOOLEAN | WriteInProgress |
NDIS_SPIN_LOCK | WriteLock |
SpinLock that protects the WriteInProgress variable. More... | |
NDIS_EVENT | NdisRequestEvent |
Event used to synchronize I/O requests with the callback structure of NDIS. More... | |
BOOLEAN | SkipSentPackets |
True if this instance should not capture back the packets that it transmits. More... | |
NDIS_STATUS | IOStatus |
Maintains the status of and OID request call, that will be passed to the application. More... | |
HANDLE | DumpFileHandle |
Handle of the file used in dump mode. More... | |
PFILE_OBJECT | DumpFileObject |
Pointer to the object of the file used in dump mode. More... | |
PKTHREAD | DumpThreadObject |
Pointer to the object of the thread used in dump mode. More... | |
HANDLE | DumpThreadHandle |
Handle of the thread created by dump mode to asynchronously move the buffer to disk. More... | |
NDIS_EVENT | DumpEvent |
Event used to synchronize the dump thread with the tap when the instance is in dump mode. More... | |
LARGE_INTEGER | DumpOffset |
Current offset in the dump file. More... | |
UNICODE_STRING | DumpFileName |
String containing the name of the dump file. More... | |
UINT | MaxDumpBytes |
UINT | MaxDumpPacks |
BOOLEAN | DumpLimitReached |
NDIS_SPIN_LOCK | MachineLock |
SpinLock that protects the BPF filter and the TME engine, if in use. More... | |
UINT | MaxFrameSize |
CpuPrivateData | CpuData [sizeof(KAFFINITY) *8] |
Pool of kernel buffer structures, one for each CPU. More... | |
ULONG | ReaderSN |
Sequence number of the next packet to be read from the pool of kernel buffers. More... | |
ULONG | WriterSN |
ULONG | Size |
Size of each kernel buffer contained in the CpuData field. More... | |
ULONG | AdapterHandleUsageCounter |
NDIS_SPIN_LOCK | AdapterHandleLock |
ULONG | AdapterBindingStatus |
Specifies if NPF is still bound to the adapter used by this instance, it's unbinding or it's not bound. More... | |
NDIS_EVENT | NdisOpenCloseCompleteEvent |
NDIS_EVENT | NdisWriteCompleteEvent |
Event that is signalled when all the packets have been successfully sent by NdisSend (and corresponfing sendComplete has been called) More... | |
NTSTATUS | OpenCloseStatus |
ULONG | TransmitPendingPackets |
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. More... | |
ULONG | NumPendingIrps |
BOOLEAN | ClosePending |
NDIS_SPIN_LOCK | OpenInUseLock |
Contains the state of a running instance of the NPF driver.
This is the most important structure of NPF: it is used by almost all the functions of the driver. An _OPEN_INSTANCE structure is associated with every user-level session, allowing concurrent access to the driver.
ULONG AdapterBindingStatus |
NDIS_HANDLE AdapterHandle |
PUCHAR bpfprogram |
Pointer to the filtering pseudo-code associated with current instance of the driver. This code is used only in particular situations (for example when the packet received from the NIC driver is stored in two non-consecutive buffers. In normal situations the filtering routine created by the JIT compiler and pointed by the next field is used. See NPF driver internals manual for details on the filtering process.
PMDL BufferMdl |
NDIS_SPIN_LOCK CountersLock |
CpuPrivateData CpuData[sizeof(KAFFINITY) *8] |
PDEVICE_EXTENSION DeviceExtension |
Pointer to the _DEVICE_EXTENSION structure of the device on which the instance is bound.
NDIS_EVENT DumpEvent |
HANDLE DumpFileHandle |
UNICODE_STRING DumpFileName |
PFILE_OBJECT DumpFileObject |
BOOLEAN DumpLimitReached |
HANDLE DumpThreadHandle |
PKTHREAD DumpThreadObject |
NDIS_STATUS IOStatus |
NDIS_SPIN_LOCK MachineLock |
UINT MaxDumpBytes |
UINT MaxDumpPacks |
UINT MaxFrameSize |
Maximum frame size that the underlying MAC acceptes. Used to perform a check on the size of the frames sent with NPF_Write() or NPF_BufferedWrite().
UINT Medium |
UINT MinToCopy |
int mode |
ULONG Multiple_Write_Counter |
LARGE_INTEGER Nbytes |
NDIS_EVENT NdisRequestEvent |
NDIS_EVENT NdisWriteCompleteEvent |
LARGE_INTEGER Npackets |
UINT Nwrites |
Number of times a single write must be physically repeated. See NPF driver internals manual for an explanation
NDIS_HANDLE PacketPool |
ULONG ReaderSN |
PKEVENT ReadEvent |
INTERNAL_REQUEST Requests[MAX_REQUESTS] |
KSPIN_LOCK RequestSpinLock |
LIST_ENTRY ResetIrpList |
ULONG Size |
BOOLEAN SkipSentPackets |
LARGE_INTEGER TimeOut |
ULONG TransmitPendingPackets |
NDIS_EVENT WriteEvent |
BOOLEAN WriteInProgress |
NDIS_SPIN_LOCK WriteLock |
ULONG WriterSN |
documentation. Copyright (c) 2002-2005 Politecnico di Torino. Copyright (c) 2005-2010
CACE Technologies. Copyright (c) 2010-2013
Riverbed Technology. All rights reserved.