Class: Caper::PacketHeader

Inherits:
FFI::Struct
  • Object
show all
Includes:
FFI::DRY::StructHelper
Defined in:
lib/caper/packet_header.rb

Overview

Generic per-packet information, as supplied by libpcap. This structure is used to track only the libpcap header and just contains the timestamp and length information used by libpcap.

See pcap_pkthdr struct in pcap.h