class

Filament::Dissect::Layer3::IPv4FragmentReassembler

Inherits Reference < Object

Manages fragmented IPv4 datagram groups across the capture stream

Constructors

new(timeout_seconds : Float64 = 30.0, max_groups : Int32 = 10000)
Source

Instance methods

active_group_count

Active in-flight fragment group count

Source
clean_stale_groups(now : Time) : Int32

Removes fragment groups that have exceeded timeout

Source
max_groups
Source
process(src_ip : String, dst_ip : String, id : UInt16, proto : UInt8, frag_offset : UInt16, mf : Bool, payload : Bytes, timestamp : Time) : Bytes | Nil

Processes an IPv4 packet layer. If the packet is fragmented:

  • Stores fragment in reassembly group
  • If complete, returns the fully reassembled payload Bytes
  • If still incomplete, returns nil If the packet is not fragmented, returns payload directly.
Source
timeout_seconds
Source