CVSROOT: /cvs Module name: src Changes by: clau...@cvs.openbsd.org 2022/02/28 07:32:01
Modified files: usr.sbin/bgpd : rde_rib.c Log message: Instead of handrolling what is mostly prefix_link/prefix_unlink in prefix_move() and prefix_adjout_update() use the functions by refactoring them a bit so they work in these cases. Move the pftable update and prefix evaluate call to prefix_add make nexthop_link() a noop for prefixes of the Adj-RIB-Out and in prefix_unlink() don't clear p->pt after the pt_unref() call. In prefix_adjout_* functions make sure to call prefix_unlink() when a prefix is linked and gets removed or replaced. OK tb@