On Fri, Feb 10, 2023 at 04:28:08PM +0100, Theo Buehler wrote: > On Fri, Feb 10, 2023 at 01:05:17PM +0100, Claudio Jeker wrote: > > There are three functions used to update the Adj-RIB-Out of a peer > > depending of the mode of the peer: > > up_generate_updates(), up_generate_addpath() and up_generate_addpath_all() > > > > There is a lot of similar code in there that makes the code look more > > complicated then it needs to. I added a helper function > > up_process_prefix() that does the common steps and simplifies the other > > functions a fair bit. > > I like it. Your diff is against an older tree and will likely conflict > when you update, so here's a rebased version against -current. Easiest > to check by applying my diff to current and comparing your version of > the file to the new one.
Yes, sorry about that. I updated my tree and ended up with the same diff. > This version is > > ok tb > Thanks -- :wq Claudio