Filament::Capture::PacketMetadata
Inherits Struct < Value < Object
Carries additional context about a packet that doesn't fit in the core RawPacket struct. This is optional metadata that's nice to have for display purposes but isn't needed for protocol dissection.
We keep this separate from RawPacket to avoid bloating the struct that gets copied around millions of times. Only packets that need annotation get a metadata object allocated for them.
Constructors
new(filename : String | Nil = nil, packet_number : UInt64 = 0_u64, comment : String | Nil = nil, source : CaptureSource = CaptureSource::File, annotation : String | Nil = nil)
SourceInstance methods
packet_number
Sequential packet number within the capture (1-based, because that's what Wireshark uses and everyone's used to it)