On Mon, May 04, 2020 at 01:23:48PM +0000, Kenth Eriksson wrote: > On Thu, 2020-04-30 at 15:09 +0200, Ondrej Zajicek wrote: > > For static route next hops, BIRD just finds > > the first matching iface, does not do longest-match. > > What is the rationale to not do LPM on static routes? How difficult > would it be to fix? Static routes without LPM is a bit awkward.
Well, for usual interfaces (say ethernet) there should not be covering prefix ranges on different interfaces (either the prefix is same, because iface is connected to the same network, or disjoint), so no need for LPM. This is different from regular routing table, which may contains also aggregate prefixes, so LPM is necessary in general routing table lookup. But it is true that with PtP links it makes sense to have /32 neighbor routes that are subset od some other network on different iface, like in your case, so we will change it to do regular LPM even in this case. -- Elen sila lumenn' omentielvo Ondrej 'Santiago' Zajicek (email: [email protected]) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
