class

Filament::Dissect::DecodedPacket

Inherits Reference < Object

Fully dissected packet containing raw bytes and decoded layer results

Constructors

decode(packet : Filament::Capture::RawPacket, id : UInt64 = 0_u64) : DecodedPacket

Convenience constructor decoding raw packet through global registry

Source
new(raw : Filament::Capture::RawPacket, layers : Array(DissectResult), packet_id : UInt64 = 0_u64)
Source

Instance methods

destination_address

Destination address resolved from network or link layer

Source
destination_port

Destination transport port (TCP/UDP)

Source
field(proto : Protocol, name : String) : FieldValue | Nil

Queries field directly with explicit protocol and field name

Source
field(path : String) : FieldValue | Nil

Queries field across layers using dotted path (e.g. "ip.src", "tcp.dst_port")

Source
has_protocol?(proto : Protocol) : Bool

Checks if packet contains a specific protocol layer

Source
hex_dump(offset : Int32 = 0, length : Int32 | Nil = nil) : String

Produces formatted hex + ASCII dump

Source
highest_protocol

Returns highest (topmost) recognized OSI protocol in the stack

Source
layer(proto : Protocol) : DissectResult | Nil

Retrieves dissection result for specific protocol

Source
layers
Source
packet_id
Source
source_address

Source address resolved from network layer (IPv4/IPv6) or link layer (Ethernet)

Source
source_port

Source transport port (TCP/UDP)

Source
summary

Formats a concise one-line summary string for packet listings

Source