class

Filament::Dissect::Layer3::FragmentGroup

Inherits Reference < Object

Tracks the pending fragments for an in-flight IP datagram

Constructors

new(key : FragmentKey, first_seen : Time)
Source

Instance methods

add_fragment(offset : UInt16, data : Bytes, more_fragments : Bool, now : Time) : Nil

Inserts a new fragment into the group

Source
complete?

Checks whether all bytes from 0 to total_payload_length have been received

Source
first_seen
Source
last_seen
Source
reassemble

Reassembles and returns the full datagram payload bytes

Source
slices
Source
total_payload_length
Source