On Fri, Nov 25, 2016 at 11:39:32AM +0000, Eric Vyncke (evyncke) wrote: > Hello, > > I am trying to import 'local' routes from the kernel into Bird without any > success... > > The route is installed as: "/sbin/ip -6 route add local > 2001:db8:cafe:babe::/64 dev lo" (it allows the host to reply/answer to any > address in this prefix :-))
Hello Routes in table 255 have special type (RTN_LOCAL, RTN_BROADCAST ...) and these route types are unsupported by BIRD. You could import them as unreachable routes by compiling BIRD with attached patch. Also note that routes with 'proto kernel' are ignored, byt that is probably not relevant to your case, just to other routes in table 255. -- 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."
diff --git a/sysdep/linux/netlink.c b/sysdep/linux/netlink.c index 368e0ef..a3bcb9b 100644 --- a/sysdep/linux/netlink.c +++ b/sysdep/linux/netlink.c @@ -1294,6 +1294,9 @@ nl_parse_route(struct nl_parse_state *s, struct nlmsghdr *h) case RTN_BLACKHOLE: ra->dest = RTD_BLACKHOLE; break; + case RTN_LOCAL: + case RTN_BROADCAST: + case RTN_ANYCAST: case RTN_UNREACHABLE: ra->dest = RTD_UNREACHABLE; break;
signature.asc
Description: Digital signature