On Tue, Mar 07, 2017 at 12:56:26AM +0100, Dean Luga wrote: > From: dean <dlug...@gmail.com> > > When SADR is enabled, fib_node contains source address prefix > and prefix length. > > A data structure addr_data was added to be passed to > fib_{get|find|route} and net_{get|find} functions and allow > the same call syntax for the functions, independently of > whether SADR is enabled. Two functions were also added that > return an addr_data object initialized to zero or with the > data from a fib_node object.
Hi It seems to me that many of these changes replicate the changes that we made in development of BIRD 2.x, perhaps your SADR support could be moved to that branch. It seems to me that a natural way how to represent SADR routes would be to have a new network type (e.g. NET_IP6_SADR) containing both src and dst IPv6 prefixes. That would allow to use generic code for handling networks and routes for handling SADR routes. -- Elen sila lumenn' omentielvo Ondrej 'Santiago' Zajicek (email: santi...@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."