Re: bgpd: next round of kroute cleanup

2022-06-16 Thread Claudio Jeker
On Thu, Jun 16, 2022 at 03:28:58PM +0200, Theo Buehler wrote: > On Thu, Jun 16, 2022 at 02:36:28PM +0200, Claudio Jeker wrote: > > This diff kills external use of prefixlen2mask() and uses inet4applymask() > > instead. With this the IPv4 and IPv6 code is more similar. > > Also I feel the code is

Re: bgpd: next round of kroute cleanup

2022-06-16 Thread Theo Buehler
On Thu, Jun 16, 2022 at 02:36:28PM +0200, Claudio Jeker wrote: > This diff kills external use of prefixlen2mask() and uses inet4applymask() > instead. With this the IPv4 and IPv6 code is more similar. > Also I feel the code is a bit easier to read. > > Also kroute{,6}_match() is changed to take a

bgpd: next round of kroute cleanup

2022-06-16 Thread Claudio Jeker
This diff kills external use of prefixlen2mask() and uses inet4applymask() instead. With this the IPv4 and IPv6 code is more similar. Also I feel the code is a bit easier to read. Also kroute{,6}_match() is changed to take a struct bgpd_addr *. This is another step towards removing lots of copy