module

Filament::Capture

Constants

LINKTYPE_ETHERNET = 1_u32
LINKTYPE_LINUX_SLL = 113_u32
LINKTYPE_LINUX_SLL2 = 276_u32
LINKTYPE_NULL = 0_u32
LINKTYPE_RAW = 101_u32
MADV_SEQUENTIAL = 2
PCAP_GLOBAL_HEADER_SIZE = 24

Size of the global file header (magic + version + timezone + sigfigs + snaplen + linktype), in bytes.

PCAP_MAGIC_NANO_NATIVE = 2712812621_u32

Nanosecond PCAP magic - same format but timestamps are in nanoseconds instead of microseconds. Not super common but some tools produce it.

PCAP_MAGIC_NANO_SWAPPED = 1295823521_u32
PCAP_MAGIC_NATIVE = 2712847316_u32

Standard PCAP magic - microsecond timestamp resolution

PCAP_MAGIC_SWAPPED = 3569595041_u32
PCAP_PACKET_HEADER_SIZE = 16

Size of each per-packet header (timestamp seconds + timestamp microseconds + captured length + original length), in bytes.

Nested types