Skip to main content

Module flows

Module flows 

Source
Expand description

Flow table: who is talking to whom, how much, and in what state.

A flow is a bidirectional 5-tuple. Both directions of a conversation map to the same entry; the side that sent the first packet we saw is the initiator. Everything is bounded: the table holds at most max_flows flows and max_hosts hosts, evicting the least recently active.

Structs§

Flow
FlowConfig
FlowKey
Direction-independent identity of a flow.
FlowTable
HostStats
Per-host totals (sent + received).

Enums§

FlowState
Coarse TCP connection state, inferred from the flags seen.

Functions§

human_bytes
1536 -> 1.5 KB.

Type Aliases§

Endpoint
One end of a flow.