Skip to main content

plan_routes

Function plan_routes 

Source
pub fn plan_routes(
    index: &AdjacencyIndex,
    origin: u8,
    dest: u8,
    constraint: &PathConstraint,
    now_unix: u64,
    out: &mut [CandidatePath],
) -> Result<usize, QdnfError>
Expand description

Plan at most three feasible next hops from origin to dest.

Does not publish super::forwarding::ForwardingGeneration. Callers publish only after this returns successfully.