PcapFileEx.Interface (pcap_file_ex v0.5.5)

View Source

Metadata describing an interface present in a PCAPNG capture.

Summary

Functions

Converts an Interface struct to a map for passing to NIFs.

Types

t()

@type t() :: %PcapFileEx.Interface{
  description: String.t() | nil,
  id: non_neg_integer(),
  linktype: String.t(),
  name: String.t() | nil,
  snaplen: non_neg_integer(),
  timestamp_offset_secs: non_neg_integer(),
  timestamp_resolution: timestamp_resolution(),
  timestamp_resolution_raw: String.t()
}

timestamp_resolution()

@type timestamp_resolution() ::
  :microsecond | :nanosecond | :millisecond | :second | :unknown

Functions

to_map(interface)

@spec to_map(t()) :: map()

Converts an Interface struct to a map for passing to NIFs.