|
#define | MAX_REQUESTS 32 |
| Maximum number of simultaneous IOCTL requests.
|
|
#define | Packet_ALIGNMENT sizeof(int) |
| Alignment macro. Defines the alignment size.
|
|
#define | Packet_WORDALIGN(x) |
|
#define | KERNEL_EVENT_NAMESPACE L"\\BaseNamedObjects\\" |
|
#define | MODE_CAPT 0x0 |
| Capture working mode.
|
|
#define | MODE_STAT 0x1 |
| Statistical working mode.
|
|
#define | MODE_MON 0x2 |
| Kernel monitoring mode.
|
|
#define | MODE_DUMP 0x10 |
| Kernel dump working mode.
|
|
#define | IMMEDIATE 1 |
| Immediate timeout. Forces a read call to return immediately.
|
|
#define | NDIS_FLAGS_SKIP_LOOPBACK_W2K 0x400 |
| This is an undocumented flag for NdisSetPacketFlags() that allows to disable loopback reception.
|
|
#define | TCPDUMP_MAGIC 0xa1b2c3d4 |
| Libpcap magic number. Used by programs like tcpdump to recognize a driver's generated dump file.
|
|
#define | PCAP_VERSION_MAJOR 2 |
| Major libpcap version of the dump file. Used by programs like tcpdump to recognize a driver's generated dump file.
|
|
#define | PCAP_VERSION_MINOR 4 |
| Minor libpcap version of the dump file. Used by programs like tcpdump to recognize a driver's generated dump file.
|
|
#define | NPF_DISABLE_LOOPBACK 1 |
| Tells the driver to drop the packets sent by itself. This is usefult when building applications like bridges.
|
|
#define | NPF_ENABLE_LOOPBACK 2 |
| Tells the driver to capture the packets sent by itself.
|
|
#define | C_ASSERT(a) |
|
#define | RESERVED(_p) |
| Macro to obtain a NDIS_PACKET from a PACKET_RESERVED.
|
|
#define | TRANSMIT_PACKETS 256 |
|
#define | EXIT_SUCCESS(quantity) |
| Macro used in the I/O routines to return the control to user-mode with a success status.
|
|
#define | EXIT_FAILURE(quantity) |
| Macro used in the I/O routines to return the control to user-mode with a failure status.
|
|
◆ C_ASSERT
◆ EXIT_FAILURE
#define EXIT_FAILURE |
( |
| quantity | ) |
|
Value: Irp->IoStatus.Information=quantity;\
Irp->IoStatus.Status = STATUS_UNSUCCESSFUL;\
IoCompleteRequest(Irp, IO_NO_INCREMENT);\
return STATUS_UNSUCCESSFUL;\
Macro used in the I/O routines to return the control to user-mode with a failure status.
Definition at line 363 of file Packet.h.
◆ EXIT_SUCCESS
#define EXIT_SUCCESS |
( |
| quantity | ) |
|
Value: Irp->IoStatus.Information=quantity;\
Irp->IoStatus.Status = STATUS_SUCCESS;\
IoCompleteRequest(Irp, IO_NO_INCREMENT);\
return STATUS_SUCCESS;\
Macro used in the I/O routines to return the control to user-mode with a success status.
Definition at line 357 of file Packet.h.
◆ IMMEDIATE
Immediate timeout. Forces a read call to return immediately.
Definition at line 87 of file Packet.h.
◆ KERNEL_EVENT_NAMESPACE
#define KERNEL_EVENT_NAMESPACE L"\\BaseNamedObjects\\" |
◆ MAX_REQUESTS
Maximum number of simultaneous IOCTL requests.
Definition at line 71 of file Packet.h.
◆ MODE_CAPT
Capture working mode.
Definition at line 81 of file Packet.h.
◆ MODE_DUMP
Kernel dump working mode.
Definition at line 84 of file Packet.h.
◆ MODE_MON
Kernel monitoring mode.
Definition at line 83 of file Packet.h.
◆ MODE_STAT
Statistical working mode.
Definition at line 82 of file Packet.h.
◆ NDIS_FLAGS_SKIP_LOOPBACK_W2K
#define NDIS_FLAGS_SKIP_LOOPBACK_W2K 0x400 |
This is an undocumented flag for NdisSetPacketFlags() that allows to disable loopback reception.
Definition at line 89 of file Packet.h.
◆ NPF_DISABLE_LOOPBACK
#define NPF_DISABLE_LOOPBACK 1 |
Tells the driver to drop the packets sent by itself. This is usefult when building applications like bridges.
Definition at line 98 of file Packet.h.
◆ NPF_ENABLE_LOOPBACK
#define NPF_ENABLE_LOOPBACK 2 |
Tells the driver to capture the packets sent by itself.
Definition at line 99 of file Packet.h.
◆ Packet_ALIGNMENT
#define Packet_ALIGNMENT sizeof(int) |
Alignment macro. Defines the alignment size.
Definition at line 73 of file Packet.h.
◆ Packet_WORDALIGN
#define Packet_WORDALIGN |
( |
| x | ) |
|
Value:
#define Packet_ALIGNMENT
Alignment macro. Defines the alignment size.
Alignment macro. Rounds up to the next even multiple of Packet_ALIGNMENT.
Definition at line 74 of file Packet.h.
◆ PCAP_VERSION_MAJOR
#define PCAP_VERSION_MAJOR 2 |
Major libpcap version of the dump file. Used by programs like tcpdump to recognize a driver's generated dump file.
Definition at line 94 of file Packet.h.
◆ PCAP_VERSION_MINOR
#define PCAP_VERSION_MINOR 4 |
Minor libpcap version of the dump file. Used by programs like tcpdump to recognize a driver's generated dump file.
Definition at line 95 of file Packet.h.
◆ RESERVED
Value:
struct _PACKET_RESERVED * PPACKET_RESERVED
Macro to obtain a NDIS_PACKET from a PACKET_RESERVED.
Definition at line 189 of file Packet.h.
◆ TCPDUMP_MAGIC
#define TCPDUMP_MAGIC 0xa1b2c3d4 |
Libpcap magic number. Used by programs like tcpdump to recognize a driver's generated dump file.
Definition at line 93 of file Packet.h.
◆ TRANSMIT_PACKETS
#define TRANSMIT_PACKETS 256 |
Maximum number of packets in the transmit packet pool. This value is an upper bound to the number of packets that can be transmitted at the same time or with a single call to NdisSendPackets.
Definition at line 352 of file Packet.h.
◆ CpuPrivateData
Kernel buffer of each CPU.
Structure containing the kernel buffer (and other CPU related fields) used to capture packets.
◆ DEVICE_EXTENSION
Port device extension.
Structure containing some data relative to every adapter on which NPF is bound.
◆ INTERNAL_REQUEST
Stores an OID request.
This structure is used by the driver to perform OID query or set operations on the underlying NIC driver. The OID operations be performed usually only by network drivers, but NPF exports this mechanism to user-level applications through an IOCTL interface. The driver uses this structure to wrap a NDIS_REQUEST structure. This allows to handle correctly the callback structure of NdisRequest(), handling multiple requests and maintaining information about the IRPs to complete.
◆ OPEN_INSTANCE
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.
◆ PACKET_OID_DATA
Structure containing an OID request.
It is used by the PacketRequest() function to send an OID to the interface card driver. It can be used, for example, to retrieve the status of the error counters on the adapter, its MAC address, the list of the multicast groups defined on it, and so on.
◆ PACKET_RESERVED
Contains a NDIS packet.
The driver uses this structure to wrap a NDIS_PACKET structure. This allows to handle correctly the callback structure of NdisTransferData(), handling multiple requests and maintaining information about the IRPs to complete.
◆ PDEVICE_EXTENSION
◆ PINTERNAL_REQUEST
◆ POPEN_INSTANCE
◆ PPACKET_OID_DATA
◆ PPACKET_RESERVED
◆ ADAPTER_BINDING_STATUS
Enumerator |
---|
ADAPTER_UNBOUND | |
ADAPTER_BOUND | |
ADAPTER_UNBINDING | |
Definition at line 327 of file Packet.h.
◆ C_ASSERT()
◆ g_NCpu
◆ g_NdisProtocolHandle
NDIS_HANDLE g_NdisProtocolHandle |
|
extern |
◆ g_SendPacketFlags
◆ G_Start_Time
struct time_conv G_Start_Time |
|
extern |
documentation. Copyright (c) 2002-2005 Politecnico di Torino. Copyright (c) 2005-2010
CACE Technologies. Copyright (c) 2010-2013
Riverbed Technology. All rights reserved.