Re: bgpd refactor common update code

2023-02-11 Thread Claudio Jeker
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_genera

Re: bgpd refactor common update code

2023-02-10 Thread Theo Buehler
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 mak

bgpd refactor common update code

2023-02-10 Thread Claudio Jeker
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 func