View Source ExShark.Packet (exshark v0.1.0)

Represents a parsed network packet with convenient field access.

Summary

Functions

Gets a protocol layer from the packet.

Gets a protocol field value from the packet.

Checks if the packet contains a specific protocol.

Creates a new Packet struct from raw tshark JSON output.

Functions

get(packet, key, default \\ nil)

get_layer(packet, protocol)

Gets a protocol layer from the packet.

get_protocol_field(packet, protocol, field)

Gets a protocol field value from the packet.

has_protocol?(packet, protocol)

Checks if the packet contains a specific protocol.

new(raw_packet)

Creates a new Packet struct from raw tshark JSON output.