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

Link to this function

from_file(f, global_header)

View Source

Specs

from_file(IO.device(), ExPcap.GlobalHeader.t()) :: t()

Reads a pcap packet header from the file.

Specs

read_forward(binary()) :: t()

Reads a packet header from the binary passed in.

Specs

read_reversed(binary()) :: t()

Reads a packet header from the binary passed in, in rerverse byte order.