Re: bgpd, refactor kroute_insert

2022-07-21 Thread Claudio Jeker
On Thu, Jul 21, 2022 at 12:03:27PM +0200, Theo Buehler wrote: > On Thu, Jul 21, 2022 at 11:10:41AM +0200, Claudio Jeker wrote: > > On Wed, Jul 20, 2022 at 12:28:25PM +0200, Claudio Jeker wrote: > > > On Wed, Jul 20, 2022 at 10:56:29AM +0200, Claudio Jeker wrote: > > > > This diff moves kroute_inser

Re: bgpd, refactor kroute_insert

2022-07-21 Thread Theo Buehler
On Thu, Jul 21, 2022 at 11:10:41AM +0200, Claudio Jeker wrote: > On Wed, Jul 20, 2022 at 12:28:25PM +0200, Claudio Jeker wrote: > > On Wed, Jul 20, 2022 at 10:56:29AM +0200, Claudio Jeker wrote: > > > This diff moves kroute_insert to use struct kroute_full and do the > > > allocation for struct kro

Re: bgpd, refactor kroute_insert

2022-07-21 Thread Claudio Jeker
On Wed, Jul 20, 2022 at 12:28:25PM +0200, Claudio Jeker wrote: > On Wed, Jul 20, 2022 at 10:56:29AM +0200, Claudio Jeker wrote: > > This diff moves kroute_insert to use struct kroute_full and do the > > allocation for struct kroute / kroute6 inside kroute_insert. This removes > > a lot of similar c

Re: bgpd, refactor kroute_insert

2022-07-20 Thread Claudio Jeker
On Wed, Jul 20, 2022 at 10:56:29AM +0200, Claudio Jeker wrote: > This diff moves kroute_insert to use struct kroute_full and do the > allocation for struct kroute / kroute6 inside kroute_insert. This removes > a lot of similar code all over kroute.c. While doing that also convert > kr_redistribute(

bgpd, refactor kroute_insert

2022-07-20 Thread Claudio Jeker
This diff moves kroute_insert to use struct kroute_full and do the allocation for struct kroute / kroute6 inside kroute_insert. This removes a lot of similar code all over kroute.c. While doing that also convert kr_redistribute() to use struct kroute_full and kill the code duplication there as well