Wireshark 4.7.3
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
pcap_hdr Struct Reference

File header for a libpcap capture file, immediately following the magic number. More...

#include <libpcap.h>

Public Attributes

uint16_t version_major
uint16_t version_minor
int32_t thiszone
uint32_t sigfigs
uint32_t snaplen
uint32_t network
uint32_t magic

Detailed Description

File header for a libpcap capture file, immediately following the magic number.

Member Data Documentation

◆ network

uint32_t pcap_hdr::network

Data link type of the captured packets, as a LINKTYPE_* value.

◆ sigfigs

uint32_t pcap_hdr::sigfigs

Accuracy of the timestamps in the file; typically 0.

◆ snaplen

uint32_t pcap_hdr::snaplen

Maximum number of octets captured per packet; packets longer than this are truncated.

◆ thiszone

int32_t pcap_hdr::thiszone

Offset in seconds between GMT and the local timezone used for timestamps; typically 0.

◆ version_major

uint16_t pcap_hdr::version_major

Major version number of the libpcap file format.

◆ version_minor

uint16_t pcap_hdr::version_minor

Minor version number of the libpcap file format.


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