Classes | Macros | Functions | Variables
Packet.dll definitions and data structures

Packet32.h contains the data structures and the definitions used by packet.dll. The file is used both by the Win9x and the WinNTx versions of packet.dll, and can be included by the applications that use the functions of this library. More...

Classes

struct  _ADAPTER
 Describes an opened network adapter. More...
 
struct  _PACKET
 Structure that contains a group of packets coming from the driver. More...
 
struct  _PACKET_OID_DATA
 Structure containing an OID request. More...
 
struct  bpf_hdr
 Packet header. More...
 
struct  bpf_insn
 A single BPF pseudo-instruction. More...
 
struct  bpf_program
 A BPF pseudo-assembly program. More...
 
struct  bpf_stat
 Structure that contains a couple of statistics values on the current capture. More...
 
struct  dump_bpf_hdr
 Dump packet header. More...
 
struct  NetType
 Network type structure. More...
 
struct  npf_if_addr
 Addresses of a network adapter. More...
 

Macros

#define PACKET_START_OEM_NO_NETMON   0x00000001
 

Functions

LPPACKET PacketAllocatePacket (void)
 
VOID PacketCloseAdapter (LPADAPTER lpAdapter)
 
VOID PacketFreePacket (LPPACKET lpPacket)
 
BOOLEAN PacketGetAdapterNames (PTSTR pStr, PULONG BufferSize)
 
PAirpcapHandle PacketGetAirPcapHandle (LPADAPTER AdapterObject)
 
PCHAR PacketGetDriverVersion ()
 
BOOLEAN PacketGetNetInfoEx (PCHAR AdapterName, npf_if_addr *buffer, PLONG NEntries)
 
BOOLEAN PacketGetNetType (LPADAPTER AdapterObject, NetType *type)
 
HANDLE PacketGetReadEvent (LPADAPTER AdapterObject)
 
BOOLEAN PacketGetStats (LPADAPTER AdapterObject, struct bpf_stat *s)
 
BOOLEAN PacketGetStatsEx (LPADAPTER AdapterObject, struct bpf_stat *s)
 
PCHAR PacketGetVersion ()
 
VOID PacketInitPacket (LPPACKET lpPacket, PVOID Buffer, UINT Length)
 
BOOLEAN PacketIsDumpEnded (LPADAPTER AdapterObject, BOOLEAN sync)
 
LPADAPTER PacketOpenAdapter (PCHAR AdapterName)
 
BOOLEAN PacketReceivePacket (LPADAPTER AdapterObject, LPPACKET lpPacket, BOOLEAN Sync)
 
BOOLEAN PacketRequest (LPADAPTER AdapterObject, BOOLEAN Set, PPACKET_OID_DATA OidData)
 
BOOLEAN PacketSendPacket (LPADAPTER AdapterObject, LPPACKET pPacket, BOOLEAN Sync)
 
INT PacketSendPackets (LPADAPTER AdapterObject, PVOID PacketBuff, ULONG Size, BOOLEAN Sync)
 
BOOLEAN PacketSetBpf (LPADAPTER AdapterObject, struct bpf_program *fp)
 
BOOLEAN PacketSetBuff (LPADAPTER AdapterObject, int dim)
 
BOOLEAN PacketSetDumpLimits (LPADAPTER AdapterObject, UINT maxfilesize, UINT maxnpacks)
 
BOOLEAN PacketSetDumpName (LPADAPTER AdapterObject, void *name, int len)
 
BOOLEAN PacketSetHwFilter (LPADAPTER AdapterObject, ULONG Filter)
 
BOOLEAN PacketSetLoopbackBehavior (LPADAPTER AdapterObject, UINT LoopbackBehavior)
 
BOOLEAN PacketSetMinToCopy (LPADAPTER AdapterObject, int nbytes)
 
BOOLEAN PacketSetMode (LPADAPTER AdapterObject, int mode)
 
BOOLEAN PacketSetNumWrites (LPADAPTER AdapterObject, int nwrites)
 
BOOLEAN PacketSetReadTimeout (LPADAPTER AdapterObject, int timeout)
 
INT PacketSetSnapLen (LPADAPTER AdapterObject, int snaplen)
 
BOOLEAN PacketStartOem (PCHAR errorString, UINT errorStringLength)
 
BOOLEAN PacketStartOemEx (PCHAR errorString, UINT errorStringLength, ULONG flags)
 
BOOL PacketStopDriver ()
 

Variables

struct bpf_insnbpf_program::bf_insns
 A pointer to the first instruction of the program. More...
 
UINT bpf_program::bf_len
 Indicates the number of instructions of the program, i.e. the number of struct bpf_insn that will follow. More...
 
UINT bpf_hdr::bh_caplen
 
UINT bpf_hdr::bh_datalen
 Original length of packet. More...
 
USHORT bpf_hdr::bh_hdrlen
 
struct timeval bpf_hdr::bh_tstamp
 It is stored in a TimeVal structure. More...
 
BOOLEAN _PACKET::bIoComplete
 
struct sockaddr_storage npf_if_addr::Broadcast
 Broadcast address. More...
 
UINT bpf_stat::bs_capt
 thus reach the application. More...
 
UINT bpf_stat::bs_drop
 
UINT bpf_stat::bs_recv
 
PVOID _PACKET::Buffer
 details about the organization of the data in this buffer More...
 
UINT dump_bpf_hdr::caplen
 
USHORT bpf_insn::code
 Instruction type and addressing mode. More...
 
UCHAR _PACKET_OID_DATA::Data [1]
 from the adapter. More...
 
UINT _ADAPTER::Flags
 Adapter's flags. Tell if this adapter must be treated in a different way, using the Netmon API or the dagc API. More...
 
HANDLE _PACKET::hEvent
 
HANDLE _ADAPTER::hFile
 
struct sockaddr_storage npf_if_addr::IPAddress
 IP address. More...
 
UCHAR bpf_insn::jf
 Jump if false. More...
 
UCHAR bpf_insn::jt
 Jump if true. More...
 
int bpf_insn::k
 Generic field used for various purposes. More...
 
UINT dump_bpf_hdr::len
 Length of the original packet (off wire). More...
 
UINT _PACKET::Length
 Length of the buffer. More...
 
ULONG _PACKET_OID_DATA::Length
 Length of the data field. More...
 
ULONGLONG NetType::LinkSpeed
 The speed of the network in bits per second. More...
 
UINT NetType::LinkType
 The MAC of the current network adapter (see function PacketGetNetType() for more information) More...
 
CHAR _ADAPTER::Name [ADAPTER_NAME_LENGTH]
 
int _ADAPTER::NumWrites
 on the wire. More...
 
ULONG _PACKET_OID_DATA::Oid
 for a complete list of valid codes. More...
 
OVERLAPPED _PACKET::OverLapped
 
UINT bpf_stat::ps_ifdrop
 drops by interface. XXX not yet supported More...
 
PWAN_ADAPTER _ADAPTER::pWanAdapter
 
HANDLE _ADAPTER::ReadEvent
 
UINT _ADAPTER::ReadTimeOut
 ReadEvent will be signaled, also if no packets were captured. More...
 
struct sockaddr_storage npf_if_addr::SubnetMask
 Netmask for that address. More...
 
CHAR _ADAPTER::SymbolicLink [MAX_LINK_NAME_LENGTH]
 
struct timeval dump_bpf_hdr::ts
 Time stamp of the packet. More...
 
DWORD _PACKET::ulBytesReceived
 received by the last call to PacketReceivePacket() More...
 
typedef struct _AirpcapHandle * PAirpcapHandle
 
typedef struct NetType NetType
 Network type structure. More...
 
typedef struct npf_if_addr npf_if_addr
 Addresses of a network adapter. More...
 
typedef struct WAN_ADAPTER_INT WAN_ADAPTER
 Describes an opened wan (dialup, VPN...) network adapter using the NetMon API. More...
 
typedef WAN_ADAPTERPWAN_ADAPTER
 Describes an opened wan (dialup, VPN...) network adapter using the NetMon API. More...
 
typedef struct _ADAPTER ADAPTER
 Describes an opened network adapter. More...
 
typedef struct _ADAPTERLPADAPTER
 
typedef struct _PACKET PACKET
 Structure that contains a group of packets coming from the driver. More...
 
typedef struct _PACKETLPPACKET
 
typedef struct _PACKET_OID_DATA PACKET_OID_DATA
 
typedef struct _PACKET_OID_DATAPPACKET_OID_DATA
 
#define AIRPCAP_HANDLE__EAE405F5_0171_9592_B3C2_C19EC426AD34__DEFINED_
 
#define PACKET_MODE_CAPT   0x0
 Capture mode. More...
 
#define PACKET_MODE_STAT   0x1
 Statistical mode. More...
 
#define PACKET_MODE_MON   0x2
 Monitoring mode. More...
 
#define PACKET_MODE_DUMP   0x10
 Dump mode. More...
 
#define PACKET_MODE_STAT_DUMP   MODE_DUMP | MODE_STAT
 Statistical dump Mode. More...
 
#define Packet_ALIGNMENT   sizeof(int)
 Alignment macro. Defines the alignment size. More...
 
#define Packet_WORDALIGN(x)   (((x)+(Packet_ALIGNMENT-1))&~(Packet_ALIGNMENT-1))
 Alignment macro. Rounds up to the next even multiple of Packet_ALIGNMENT. More...
 
#define NdisMediumNull   -1
 Custom linktype: NDIS doesn't provide an equivalent. More...
 
#define NdisMediumCHDLC   -2
 Custom linktype: NDIS doesn't provide an equivalent. More...
 
#define NdisMediumPPPSerial   -3
 Custom linktype: NDIS doesn't provide an equivalent. More...
 
#define NdisMediumBare80211   -4
 Custom linktype: NDIS doesn't provide an equivalent. More...
 
#define NdisMediumRadio80211   -5
 Custom linktype: NDIS doesn't provide an equivalent. More...
 
#define NdisMediumPpi   -6
 Custom linktype: NDIS doesn't provide an equivalent. More...
 
#define NPF_DISABLE_LOOPBACK   1
 Drop the packets sent by the NPF driver. More...
 
#define NPF_ENABLE_LOOPBACK   2
 Capture the packets sent by the NPF driver. More...
 
#define DOSNAMEPREFIX   TEXT("Packet_")
 Prefix added to the adapters device names to create the WinPcap devices. More...
 
#define MAX_LINK_NAME_LENGTH   64
 
#define NMAX_PACKET   65535
 
#define ADAPTER_NAME_LENGTH   256 + 12
 Maximum length for the name of an adapter. The value is the same used by the IP Helper API. More...
 
#define ADAPTER_DESC_LENGTH   128
 Maximum length for the description of an adapter. The value is the same used by the IP Helper API. More...
 
#define MAX_MAC_ADDR_LENGTH   8
 Maximum length for the link layer address of an adapter. The value is the same used by the IP Helper API. More...
 
#define MAX_NETWORK_ADDRESSES   16
 Maximum length for the link layer address of an adapter. The value is the same used by the IP Helper API. More...
 
#define INFO_FLAG_NDIS_ADAPTER   0
 Flag for ADAPTER_INFO: this is a traditional ndis adapter. More...
 
#define INFO_FLAG_NDISWAN_ADAPTER   1
 Flag for ADAPTER_INFO: this is a NdisWan adapter, and it's managed by WANPACKET. More...
 
#define INFO_FLAG_DAG_CARD   2
 Flag for ADAPTER_INFO: this is a DAG card. More...
 
#define INFO_FLAG_DAG_FILE   6
 Flag for ADAPTER_INFO: this is a DAG file. More...
 
#define INFO_FLAG_DONT_EXPORT   8
 Flag for ADAPTER_INFO: when this flag is set, the adapter will not be listed or openend by winpcap. This allows to prevent exporting broken network adapters, like for example FireWire ones. More...
 
#define INFO_FLAG_AIRPCAP_CARD   16
 Flag for ADAPTER_INFO: this is an airpcap card. More...
 
#define INFO_FLAG_NPFIM_DEVICE   32
 

Detailed Description

Packet32.h contains the data structures and the definitions used by packet.dll. The file is used both by the Win9x and the WinNTx versions of packet.dll, and can be included by the applications that use the functions of this library.

Macro Definition Documentation

◆ ADAPTER_DESC_LENGTH

#define ADAPTER_DESC_LENGTH   128

Maximum length for the description of an adapter. The value is the same used by the IP Helper API.

Definition at line 202 of file Packet32.h.

◆ ADAPTER_NAME_LENGTH

#define ADAPTER_NAME_LENGTH   256 + 12

Maximum length for the name of an adapter. The value is the same used by the IP Helper API.

Definition at line 201 of file Packet32.h.

◆ AIRPCAP_HANDLE__EAE405F5_0171_9592_B3C2_C19EC426AD34__DEFINED_

#define AIRPCAP_HANDLE__EAE405F5_0171_9592_B3C2_C19EC426AD34__DEFINED_

Definition at line 54 of file Packet32.h.

◆ DOSNAMEPREFIX

#define DOSNAMEPREFIX   TEXT("Packet_")

Prefix added to the adapters device names to create the WinPcap devices.

Definition at line 184 of file Packet32.h.

◆ INFO_FLAG_AIRPCAP_CARD

#define INFO_FLAG_AIRPCAP_CARD   16

Flag for ADAPTER_INFO: this is an airpcap card.

Definition at line 215 of file Packet32.h.

◆ INFO_FLAG_DAG_CARD

#define INFO_FLAG_DAG_CARD   2

Flag for ADAPTER_INFO: this is a DAG card.

Definition at line 212 of file Packet32.h.

◆ INFO_FLAG_DAG_FILE

#define INFO_FLAG_DAG_FILE   6

Flag for ADAPTER_INFO: this is a DAG file.

Definition at line 213 of file Packet32.h.

◆ INFO_FLAG_DONT_EXPORT

#define INFO_FLAG_DONT_EXPORT   8

Flag for ADAPTER_INFO: when this flag is set, the adapter will not be listed or openend by winpcap. This allows to prevent exporting broken network adapters, like for example FireWire ones.

Definition at line 214 of file Packet32.h.

◆ INFO_FLAG_NDIS_ADAPTER

#define INFO_FLAG_NDIS_ADAPTER   0

Flag for ADAPTER_INFO: this is a traditional ndis adapter.

Definition at line 210 of file Packet32.h.

◆ INFO_FLAG_NDISWAN_ADAPTER

#define INFO_FLAG_NDISWAN_ADAPTER   1

Flag for ADAPTER_INFO: this is a NdisWan adapter, and it's managed by WANPACKET.

Definition at line 211 of file Packet32.h.

◆ INFO_FLAG_NPFIM_DEVICE

#define INFO_FLAG_NPFIM_DEVICE   32

Definition at line 216 of file Packet32.h.

◆ MAX_LINK_NAME_LENGTH

#define MAX_LINK_NAME_LENGTH   64

Definition at line 185 of file Packet32.h.

◆ MAX_MAC_ADDR_LENGTH

#define MAX_MAC_ADDR_LENGTH   8

Maximum length for the link layer address of an adapter. The value is the same used by the IP Helper API.

Definition at line 203 of file Packet32.h.

◆ MAX_NETWORK_ADDRESSES

#define MAX_NETWORK_ADDRESSES   16

Maximum length for the link layer address of an adapter. The value is the same used by the IP Helper API.

Definition at line 204 of file Packet32.h.

◆ NdisMediumBare80211

#define NdisMediumBare80211   -4

Custom linktype: NDIS doesn't provide an equivalent.

Definition at line 79 of file Packet32.h.

◆ NdisMediumCHDLC

#define NdisMediumCHDLC   -2

Custom linktype: NDIS doesn't provide an equivalent.

Definition at line 77 of file Packet32.h.

◆ NdisMediumNull

#define NdisMediumNull   -1

Custom linktype: NDIS doesn't provide an equivalent.

Definition at line 76 of file Packet32.h.

◆ NdisMediumPpi

#define NdisMediumPpi   -6

Custom linktype: NDIS doesn't provide an equivalent.

Definition at line 81 of file Packet32.h.

◆ NdisMediumPPPSerial

#define NdisMediumPPPSerial   -3

Custom linktype: NDIS doesn't provide an equivalent.

Definition at line 78 of file Packet32.h.

◆ NdisMediumRadio80211

#define NdisMediumRadio80211   -5

Custom linktype: NDIS doesn't provide an equivalent.

Definition at line 80 of file Packet32.h.

◆ NMAX_PACKET

#define NMAX_PACKET   65535

Definition at line 186 of file Packet32.h.

◆ NPF_DISABLE_LOOPBACK

#define NPF_DISABLE_LOOPBACK   1

Drop the packets sent by the NPF driver.

Definition at line 84 of file Packet32.h.

◆ NPF_ENABLE_LOOPBACK

#define NPF_ENABLE_LOOPBACK   2

Capture the packets sent by the NPF driver.

Definition at line 85 of file Packet32.h.

◆ Packet_ALIGNMENT

#define Packet_ALIGNMENT   sizeof(int)

Alignment macro. Defines the alignment size.

Definition at line 72 of file Packet32.h.

◆ PACKET_MODE_CAPT

#define PACKET_MODE_CAPT   0x0

Capture mode.

Definition at line 64 of file Packet32.h.

◆ PACKET_MODE_DUMP

#define PACKET_MODE_DUMP   0x10

Dump mode.

Definition at line 67 of file Packet32.h.

◆ PACKET_MODE_MON

#define PACKET_MODE_MON   0x2

Monitoring mode.

Definition at line 66 of file Packet32.h.

◆ PACKET_MODE_STAT

#define PACKET_MODE_STAT   0x1

Statistical mode.

Definition at line 65 of file Packet32.h.

◆ PACKET_MODE_STAT_DUMP

#define PACKET_MODE_STAT_DUMP   MODE_DUMP | MODE_STAT

Statistical dump Mode.

Definition at line 68 of file Packet32.h.

◆ PACKET_START_OEM_NO_NETMON

#define PACKET_START_OEM_NO_NETMON   0x00000001

Definition at line 353 of file Packet32.h.

◆ Packet_WORDALIGN

#define Packet_WORDALIGN (   x)    (((x)+(Packet_ALIGNMENT-1))&~(Packet_ALIGNMENT-1))

Alignment macro. Rounds up to the next even multiple of Packet_ALIGNMENT.

Definition at line 74 of file Packet32.h.

Typedef Documentation

◆ ADAPTER

typedef struct _ADAPTER ADAPTER

Describes an opened network adapter.

This structure is the most important for the functioning of packet.dll, but the great part of its fields should be ignored by the user, since the library offers functions that avoid to cope with low-level parameters

◆ LPADAPTER

typedef struct _ADAPTER * LPADAPTER

◆ LPPACKET

typedef struct _PACKET * LPPACKET

◆ NetType

typedef struct NetType NetType

Network type structure.

This structure is used by the PacketGetNetType() function to return information on the current adapter's type and speed.

◆ npf_if_addr

typedef struct npf_if_addr npf_if_addr

Addresses of a network adapter.

This structure is used by the PacketGetNetInfoEx() function to return the IP addresses associated with an adapter.

◆ PACKET

typedef struct _PACKET PACKET

Structure that contains a group of packets coming from the driver.

This structure defines the header associated with every packet delivered to the application.

◆ PACKET_OID_DATA

Definition at line 290 of file Packet32.h.

◆ PAirpcapHandle

typedef struct _AirpcapHandle* PAirpcapHandle

Definition at line 55 of file Packet32.h.

◆ PPACKET_OID_DATA

Definition at line 290 of file Packet32.h.

◆ PWAN_ADAPTER

Describes an opened wan (dialup, VPN...) network adapter using the NetMon API.

Definition at line 208 of file Packet32.h.

◆ WAN_ADAPTER

typedef struct WAN_ADAPTER_INT WAN_ADAPTER

Describes an opened wan (dialup, VPN...) network adapter using the NetMon API.

Definition at line 207 of file Packet32.h.

Function Documentation

◆ PacketAllocatePacket()

LPPACKET PacketAllocatePacket ( void  )

◆ PacketCloseAdapter()

VOID PacketCloseAdapter ( LPADAPTER  lpAdapter)

◆ PacketFreePacket()

VOID PacketFreePacket ( LPPACKET  lpPacket)

◆ PacketGetAdapterNames()

BOOLEAN PacketGetAdapterNames ( PTSTR  pStr,
PULONG  BufferSize 
)

◆ PacketGetAirPcapHandle()

PAirpcapHandle PacketGetAirPcapHandle ( LPADAPTER  AdapterObject)

◆ PacketGetDriverVersion()

PCHAR PacketGetDriverVersion ( )

◆ PacketGetNetInfoEx()

BOOLEAN PacketGetNetInfoEx ( PCHAR  AdapterName,
npf_if_addr buffer,
PLONG  NEntries 
)

◆ PacketGetNetType()

BOOLEAN PacketGetNetType ( LPADAPTER  AdapterObject,
NetType type 
)

◆ PacketGetReadEvent()

HANDLE PacketGetReadEvent ( LPADAPTER  AdapterObject)

◆ PacketGetStats()

BOOLEAN PacketGetStats ( LPADAPTER  AdapterObject,
struct bpf_stat s 
)

◆ PacketGetStatsEx()

BOOLEAN PacketGetStatsEx ( LPADAPTER  AdapterObject,
struct bpf_stat s 
)

◆ PacketGetVersion()

PCHAR PacketGetVersion ( )

◆ PacketInitPacket()

VOID PacketInitPacket ( LPPACKET  lpPacket,
PVOID  Buffer,
UINT  Length 
)

◆ PacketIsDumpEnded()

BOOLEAN PacketIsDumpEnded ( LPADAPTER  AdapterObject,
BOOLEAN  sync 
)

◆ PacketOpenAdapter()

LPADAPTER PacketOpenAdapter ( PCHAR  AdapterName)

◆ PacketReceivePacket()

BOOLEAN PacketReceivePacket ( LPADAPTER  AdapterObject,
LPPACKET  lpPacket,
BOOLEAN  Sync 
)

◆ PacketRequest()

BOOLEAN PacketRequest ( LPADAPTER  AdapterObject,
BOOLEAN  Set,
PPACKET_OID_DATA  OidData 
)

◆ PacketSendPacket()

BOOLEAN PacketSendPacket ( LPADAPTER  AdapterObject,
LPPACKET  pPacket,
BOOLEAN  Sync 
)

◆ PacketSendPackets()

INT PacketSendPackets ( LPADAPTER  AdapterObject,
PVOID  PacketBuff,
ULONG  Size,
BOOLEAN  Sync 
)

◆ PacketSetBpf()

BOOLEAN PacketSetBpf ( LPADAPTER  AdapterObject,
struct bpf_program fp 
)

◆ PacketSetBuff()

BOOLEAN PacketSetBuff ( LPADAPTER  AdapterObject,
int  dim 
)

◆ PacketSetDumpLimits()

BOOLEAN PacketSetDumpLimits ( LPADAPTER  AdapterObject,
UINT  maxfilesize,
UINT  maxnpacks 
)

◆ PacketSetDumpName()

BOOLEAN PacketSetDumpName ( LPADAPTER  AdapterObject,
void *  name,
int  len 
)

◆ PacketSetHwFilter()

BOOLEAN PacketSetHwFilter ( LPADAPTER  AdapterObject,
ULONG  Filter 
)

◆ PacketSetLoopbackBehavior()

BOOLEAN PacketSetLoopbackBehavior ( LPADAPTER  AdapterObject,
UINT  LoopbackBehavior 
)

◆ PacketSetMinToCopy()

BOOLEAN PacketSetMinToCopy ( LPADAPTER  AdapterObject,
int  nbytes 
)

◆ PacketSetMode()

BOOLEAN PacketSetMode ( LPADAPTER  AdapterObject,
int  mode 
)

◆ PacketSetNumWrites()

BOOLEAN PacketSetNumWrites ( LPADAPTER  AdapterObject,
int  nwrites 
)

◆ PacketSetReadTimeout()

BOOLEAN PacketSetReadTimeout ( LPADAPTER  AdapterObject,
int  timeout 
)

◆ PacketSetSnapLen()

INT PacketSetSnapLen ( LPADAPTER  AdapterObject,
int  snaplen 
)

◆ PacketStartOem()

BOOLEAN PacketStartOem ( PCHAR  errorString,
UINT  errorStringLength 
)

◆ PacketStartOemEx()

BOOLEAN PacketStartOemEx ( PCHAR  errorString,
UINT  errorStringLength,
ULONG  flags 
)

◆ PacketStopDriver()

BOOL PacketStopDriver ( )

Variable Documentation

◆ bf_insns

struct bpf_insn * bpf_program::bf_insns

A pointer to the first instruction of the program.

Definition at line 111 of file Packet32.h.

◆ bf_len

UINT bpf_program::bf_len

Indicates the number of instructions of the program, i.e. the number of struct bpf_insn that will follow.

Definition at line 110 of file Packet32.h.

◆ bh_caplen

UINT bpf_hdr::bh_caplen

Length of captured portion. The captured portion can be different from the original packet, because it is possible (with a proper filter) to instruct the driver to capture only a portion of the packets.

Definition at line 154 of file Packet32.h.

◆ bh_datalen

UINT bpf_hdr::bh_datalen

Original length of packet.

Definition at line 157 of file Packet32.h.

◆ bh_hdrlen

USHORT bpf_hdr::bh_hdrlen

Length of bpf header (this struct plus alignment padding). In some cases, a padding could be added between the end of this structure and the packet data for performance reasons. This filed can be used to retrieve the actual data of the packet.

Definition at line 158 of file Packet32.h.

◆ bh_tstamp

struct timeval bpf_hdr::bh_tstamp

It is stored in a TimeVal structure.

The timestamp associated with the captured packet.

Definition at line 152 of file Packet32.h.

◆ bIoComplete

BOOLEAN _PACKET::bIoComplete
Deprecated:
Still present for compatibility with old applications.

Definition at line 273 of file Packet32.h.

◆ Broadcast

struct sockaddr_storage npf_if_addr::Broadcast

Broadcast address.

Definition at line 197 of file Packet32.h.

◆ bs_capt

UINT bpf_stat::bs_capt

thus reach the application.

number of packets that pass the filter, find place in the kernel buffer and

Definition at line 141 of file Packet32.h.

◆ bs_drop

UINT bpf_stat::bs_drop

number of packets that the driver lost from the beginning of a capture. Basically, a packet is lost when the the buffer of the driver is full. In this situation the packet cannot be stored and the driver rejects it.

Definition at line 137 of file Packet32.h.

◆ bs_recv

UINT bpf_stat::bs_recv

Number of packets that the driver received from the network adapter from the beginning of the current capture. This value includes the packets lost by the driver.

Definition at line 134 of file Packet32.h.

◆ Buffer

PVOID _PACKET::Buffer

details about the organization of the data in this buffer

Buffer with containing the packets. See the PacketReceivePacket() for

Definition at line 268 of file Packet32.h.

◆ caplen

UINT dump_bpf_hdr::caplen

Length of captured portion. The captured portion can smaller than the the original packet, because it is possible (with a proper filter) to instruct the driver to capture only a portion of the packets.

Definition at line 173 of file Packet32.h.

◆ code

USHORT bpf_insn::code

Instruction type and addressing mode.

Definition at line 121 of file Packet32.h.

◆ Data

UCHAR _PACKET_OID_DATA::Data[1]

from the adapter.

variable-length field that contains the information passed to or received

Definition at line 287 of file Packet32.h.

◆ Flags

UINT _ADAPTER::Flags

Adapter's flags. Tell if this adapter must be treated in a different way, using the Netmon API or the dagc API.

Definition at line 241 of file Packet32.h.

◆ hEvent

HANDLE _PACKET::hEvent
Deprecated:
Still present for compatibility with old applications.

Definition at line 266 of file Packet32.h.

◆ hFile

HANDLE _ADAPTER::hFile

Definition at line 225 of file Packet32.h.

◆ IPAddress

struct sockaddr_storage npf_if_addr::IPAddress

IP address.

Definition at line 195 of file Packet32.h.

◆ jf

UCHAR bpf_insn::jf

Jump if false.

Definition at line 123 of file Packet32.h.

◆ jt

UCHAR bpf_insn::jt

Jump if true.

Definition at line 122 of file Packet32.h.

◆ k

int bpf_insn::k

Generic field used for various purposes.

Definition at line 124 of file Packet32.h.

◆ len

UINT dump_bpf_hdr::len

Length of the original packet (off wire).

Definition at line 176 of file Packet32.h.

◆ Length [1/2]

UINT _PACKET::Length

Length of the buffer.

Definition at line 270 of file Packet32.h.

◆ Length [2/2]

ULONG _PACKET_OID_DATA::Length

Length of the data field.

Definition at line 286 of file Packet32.h.

◆ LinkSpeed

ULONGLONG NetType::LinkSpeed

The speed of the network in bits per second.

Definition at line 95 of file Packet32.h.

◆ LinkType

UINT NetType::LinkType

The MAC of the current network adapter (see function PacketGetNetType() for more information)

Definition at line 94 of file Packet32.h.

◆ Name

CHAR _ADAPTER::Name[ADAPTER_NAME_LENGTH]

Definition at line 239 of file Packet32.h.

◆ NumWrites

int _ADAPTER::NumWrites

on the wire.

Definition at line 227 of file Packet32.h.

◆ Oid

ULONG _PACKET_OID_DATA::Oid

for a complete list of valid codes.

OID code. See the Microsoft DDK documentation or the file ntddndis.h

Definition at line 284 of file Packet32.h.

◆ OverLapped

OVERLAPPED _PACKET::OverLapped
Deprecated:
Still present for compatibility with old applications.

Definition at line 267 of file Packet32.h.

◆ ps_ifdrop

UINT bpf_stat::ps_ifdrop

drops by interface. XXX not yet supported

Definition at line 140 of file Packet32.h.

◆ pWanAdapter

PWAN_ADAPTER _ADAPTER::pWanAdapter

Definition at line 240 of file Packet32.h.

◆ ReadEvent

HANDLE _ADAPTER::ReadEvent

A notification event associated with the read calls on the adapter. It can be passed to standard Win32 functions (like WaitForSingleObject or WaitForMultipleObjects) to wait until the driver's buffer contains some data. It is particularly useful in GUI applications that need to wait concurrently on several events. In Windows NT/2000 the PacketSetMinToCopy() function can be used to define the minimum amount of data in the kernel buffer that will cause the event to be signalled.

Definition at line 229 of file Packet32.h.

◆ ReadTimeOut

UINT _ADAPTER::ReadTimeOut

ReadEvent will be signaled, also if no packets were captured.

Definition at line 237 of file Packet32.h.

◆ SubnetMask

struct sockaddr_storage npf_if_addr::SubnetMask

Netmask for that address.

Definition at line 196 of file Packet32.h.

◆ SymbolicLink

CHAR _ADAPTER::SymbolicLink[MAX_LINK_NAME_LENGTH]

Definition at line 226 of file Packet32.h.

◆ ts

struct timeval dump_bpf_hdr::ts

Time stamp of the packet.

Definition at line 172 of file Packet32.h.

◆ ulBytesReceived

DWORD _PACKET::ulBytesReceived

received by the last call to PacketReceivePacket()

Number of valid bytes present in the buffer, i.e. amount of data

Definition at line 271 of file Packet32.h.



soem
Author(s): Arthur Ketels and M.J.G. van den Molengraft
autogenerated on Wed Mar 2 2022 01:01:49