Skip to main content

Module hysteresis

Module hysteresis 

Source
Expand description

E08.5 — hold-down, hysteresis, and repair. Alternating ads must not flap.

Structs§

HopHoldDown
Compact next-hop that withdrew. last_down_unix == 0 means not held.
HysteresisPolicy
Replacement policy. Hold-down is in unix seconds; improve deltas are strict.

Functions§

admit_healed_routes
Partition heal: suppress held-down first hops, then apply replacement hysteresis.
decide_replace
Constraint-aware repair: infeasible current is replaced immediately.
hold_planned_routes
After super::plan::plan_routes, keep current unless repair/hysteresis switches.
hop_is_held_down
True while now is still inside the hold-down window after withdrawal.
should_replace
Keep current unless it is unusable or a replacement meets threshold after hold-down.
suppress_held_hops
Drop planned paths whose first hop is still in hold-down after a flap.