ExPcap.PacketHeader (expcap v0.1.2) View Source
This module represents a pcap packet header.
Link to this section Summary
Functions
Reads a pcap packet header from the file.
Reads a packet header from the binary passed in.
Reads a packet header from the binary passed in, in rerverse byte order.
Link to this section Types
Specs
t() :: %ExPcap.PacketHeader{ incl_len: non_neg_integer(), orig_len: non_neg_integer(), ts_sec: non_neg_integer(), ts_usec: non_neg_integer() }
Link to this section Functions
Specs
from_file(IO.device(), ExPcap.GlobalHeader.t()) :: t()
Reads a pcap packet header from the file.
Specs
Reads a packet header from the binary passed in.
Specs
Reads a packet header from the binary passed in, in rerverse byte order.