Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

# pcap_pkthdr Struct Reference
[Definitions]

Header of a packet in the dump file. More...

`#include <pcap.h>`

## Data Fields
timeval | ts
| time stamp
bpf_u_int32 | caplen
| length of portion present
bpf_u_int32 | len
| length this packet (off wire)

## Detailed Description

Header of a packet in the dump file.

Each packet in the dump file is prepended with this generic header. This gets around the problem of different headers for different packet interfaces.

Definition at line 126 of file incs/pcap.h.

## Field Documentation

bpf_u_int32 caplen

| length of portion present Definition at line 128 of file incs/pcap.h. Referenced by pcap_dump(), pcap_offline_filter(), pcap_offline_read(), pcap_read_nocb_remote(), pcap_sendqueue_queue(), and sf_next_packet().

bpf_u_int32 len

| length this packet (off wire) Definition at line 129 of file incs/pcap.h. Referenced by packet_handler(), pcap_dump(), pcap_offline_filter(), pcap_offline_read(), pcap_sendqueue_queue(), and sf_next_packet().

struct timeval ts

| time stamp Definition at line 127 of file incs/pcap.h. Referenced by packet_handler(), pcap_dump(), pcap_offline_read(), and sf_next_packet().

The documentation for this struct was generated from the following file:

- incs/pcap.h

documentation. Copyright (c) 2002-2003 Politecnico di Torino. All rights reserved.