CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected] 2026/05/20 08:00:59

Modified files:
        usr.sbin/bgpd  : rde_decide.c 

Log message:
Use clearer semantics on how rde_generate_updates is called.

Adjust prefix_evaluate and prefix_evaluate_nexthop so that
rde_generate_updates() is only called with a few options.
Either new is valid or old is valid. If both are invalid then
there is no need to call rde_generate_updates(). If both are
valid only new matters and old_pathid_tx is set to 0.

In prefix_evaluate() most calls are with either new or old set to NULL.
If both are set then new->path_id_tx == old->path_id_tx.

In prefix_evaluate_nexthop() if old was valid then new becomes invalid
but if old was invalid new may still be invalid.

OK tb@

Reply via email to