_AirpcapBpfHeader Struct Reference
[AirPcap definitions and data structures]

Packet header. More...

#include <airpcap.h>


Data Fields

UINT TsSec
 Timestamp associated with the captured packet. SECONDS.
UINT TsUsec
 Timestamp associated with the captured packet. MICROSECONDS.
UINT 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.
UINT Originallen
 Original length of packet.
USHORT 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 field can be used to retrieve the actual data of the packet.


Detailed Description

Packet header.

This structure defines the BPF that preceeds every packet delivered to the application.


Field Documentation

UINT _AirpcapBpfHeader::TsSec
 

Timestamp associated with the captured packet. SECONDS.

UINT _AirpcapBpfHeader::TsUsec
 

Timestamp associated with the captured packet. MICROSECONDS.

UINT _AirpcapBpfHeader::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.

UINT _AirpcapBpfHeader::Originallen
 

Original length of packet.

USHORT _AirpcapBpfHeader::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 field can be used to retrieve the actual data of the packet.


AirPcap documentation. Copyright (c) 2006 CACE Technologies. All rights reserved.