run_rib_expiry_task

Function run_rib_expiry_task 

Source
pub async fn run_rib_expiry_task(
    rib: Arc<Rib>,
    fib: Arc<Fib>,
    cancel: CancellationToken,
)
Expand description

Background task that drains expired RIB entries and recomputes affected FIB entries.

Runs every second. Route lifetimes are registered by routing protocols and apps via expiration_period in RIB register commands; this task purges them when they lapse and keeps the FIB converged.