Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Public Attributes | List of all members
wtap_packet_header Struct Reference

Header metadata for a captured network packet. More...

#include <wtap.h>

Public Attributes

uint32_t caplen
 
uint32_t len
 
int pkt_encap
 
uint32_t interface_id
 
union wtap_pseudo_header pseudo_header
 

Detailed Description

Header metadata for a captured network packet.

Member Data Documentation

◆ caplen

uint32_t wtap_packet_header::caplen

Number of bytes stored in the capture file for this packet.

◆ interface_id

uint32_t wtap_packet_header::interface_id

pcapng interface ID that captured this packet.

◆ len

uint32_t wtap_packet_header::len

Original packet length as seen on the wire.

◆ pkt_encap

int wtap_packet_header::pkt_encap

Encapsulation type (WTAP_ENCAP_*) identifying the link layer for this packet.

◆ pseudo_header

union wtap_pseudo_header wtap_packet_header::pseudo_header

Encapsulation-specific metadata; active member selected by pkt_encap.


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