On Wed, Mar 29, 2023 at 10:39:29AM +0200, Claudio Jeker wrote: > The lookup functions for the Adj-RIB-Out trees (prefix_adjout_{get,lookup}) > work mainly with a pt_entry so lets change them. > Now prefix_adjout_lookup() which returns the first path (in case of > add-path) is also used by bgpctl code-paths and there we want to keep > using bgpd_addr. > > This diff changes prefix_adjout_get() to use struct pt_entry, introduces a > new prefix_adjout_first() which works together with prefix_adjout_next() > and also passes the pt_entry to prefix_adjout_update() so the allocation > can be skipped there. > > With this most conversions from and to bgpd_addr in the Adj-RIB-Out are > gone. The last remaining bit is rde_filter() but there I think the use of > bgpd_addr will remain. For flowspec the conversion to a struct bgpd_addr > will just return the destination prefix which is the right thing for > rde_filter. > > With this the Adj-RIB-Out should be able to handle flowspec.
ok tb