bird 1.6 seems to ignore ipv6 kernel routes on 4.19

Ondrej Zajicek santiago at crfreenet.org
Fri Aug 23 13:59:30 CEST 2019


On Wed, Aug 21, 2019 at 11:30:53PM +0200, Toke Høiland-Jørgensen wrote:
> >> # ip r a 2001:db8:1:14::/64 via 2001:db8:1:1::14
> >> # route -6 add 2001:db8:1:15::/64 gw 2001:db8:1:1::15
> >
> > This command uses the old ioctl(SIOCADDRT) API which in turn generates
> >
> >> none 2001:db8:1:15::/64 via 2001:db8:1:1::15 dev ve0 metric 1 pref medium
> >
> > with rtm_type == RTN_UNKNOWN (0), which is obviously wrong.
> 
> Looks like the kernel ioctl handler will copy the type if userspace sets
> it:
> 
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/net/ipv6/route.c#n4271
> 
> but 'route' doesn't set it:
> 
> https://sourceforge.net/p/net-tools/code/ci/master/tree/lib/inet6_sr.c

Hi

Thanks, i am wondering if that is a change in kernel, route command,
or just nobody noticed it before.

-- 
Elen sila lumenn' omentielvo

Ondrej 'Santiago' Zajicek (email: santiago at 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."



More information about the Bird-users mailing list