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

Per-packet record header for Alexey Kuznetsov's modified libpcap format, extending the standard header with interface and protocol metadata. More...

#include <libpcap.h>

Public Attributes

struct pcaprec_hdr hdr
uint32_t ifindex
uint16_t protocol
uint8_t pkt_type
uint8_t pad

Detailed Description

Per-packet record header for Alexey Kuznetsov's modified libpcap format, extending the standard header with interface and protocol metadata.

Member Data Documentation

◆ hdr

struct pcaprec_hdr pcaprec_modified_hdr::hdr

Standard libpcap record header with timestamps and lengths.

◆ ifindex

uint32_t pcaprec_modified_hdr::ifindex

Index of the capture interface in the capturing machine's interface list on which this packet arrived.

◆ pad

uint8_t pcaprec_modified_hdr::pad

Padding byte to align the header to a 4-byte boundary.

◆ pkt_type

uint8_t pcaprec_modified_hdr::pkt_type

Packet type indicator (e.g. broadcast, multicast, unicast to host).

◆ protocol

uint16_t pcaprec_modified_hdr::protocol

Ethernet protocol type (EtherType) of the captured packet.


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