Skip to main content

Module flow

Module flow 

Source
Expand description

Shared flow key definition and deterministic flow ID computation.

FlowKey is the canonical 5-tuple used throughout the crate. It is placed here (rather than in stats) so that pcap can depend on it without creating a circular module dependency.

Structs§

FlowKey
A 5-tuple that uniquely identifies a network flow.

Functions§

normalize_ip
Normalise an IP address: IPv4-mapped IPv6 addresses (::ffff:A.B.C.D) are converted to their plain IPv4 form so that 10.0.0.1 and ::ffff:10.0.0.1 produce the same FlowKey.