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 that10.0.0.1and::ffff:10.0.0.1produce the sameFlowKey.