struct

Filament::Flow::FlowKey

Inherits Struct < Value < Object

Direction-specific 5-tuple key

Constructors

new(src_ip : String, dst_ip : String, src_port : UInt16, dst_port : UInt16, proto : UInt8)
Source

Class methods

from_packet(packet : Dissect::DecodedPacket) : FlowKey | Nil

Derives flow key from a decoded packet

Source

Instance methods

==(other : self)
Source
canonical
Source
canonical_with_direction

Returns canonical representation and direction (:forward or :reverse)

Source
dst_ip
Source
dst_port
Source
hash(hasher)

See Object#hash(hasher)

Source
proto
Source
reverse

Returns the reversed flow key (swapped endpoints)

Source
src_ip
Source
src_port
Source
to_s(io : IO) : Nil

Same as #inspect(io).

Source