]> git.ipfire.org Git - thirdparty/bird.git/commit
KRT: Fix route learn scan when route changed
authorOndrej Zajicek (work) <santiago@crfreenet.org>
Wed, 23 Mar 2016 17:25:15 +0000 (18:25 +0100)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Wed, 6 Apr 2016 09:46:25 +0000 (11:46 +0200)
commite86cfd41d975122cc944db68383aef4028da9575
tree55da71e1a9132480391fc5b7045dec8228a214d2
parentea0a8be2ff5afb8385a69cc0df70984e0fd3a570
KRT: Fix route learn scan when route changed

When a kernel route changed, function krt_learn_scan() noticed that and
replaced the route in internal kernel FIB, but after that, function
krt_learn_prune() failed to propagate the new route to the nest, because
it confused the new route with the (removed) old best route and decided
that the best route did not changed.

Wow, the original code (and the bug) is almost 17 years old.
nest/route.h
sysdep/bsd/krt-sock.c
sysdep/linux/netlink.c
sysdep/unix/krt.c