]> git.ipfire.org Git - thirdparty/bird.git/commit
Nest: Fix bug in recursive routes with MPLS-labeled nexthops
authorOndrej Zajicek <santiago@crfreenet.org>
Sat, 27 Jan 2024 16:38:06 +0000 (17:38 +0100)
committerOndrej Zajicek <santiago@crfreenet.org>
Sat, 27 Jan 2024 16:38:06 +0000 (17:38 +0100)
commitf40e2bc270d3635be518ae80251ce0b5c519c6f4
treeb1122bd3b91456656222ad4da849862a9f9c3fb9
parent472be46f7ab211f38e7662543f1436df30dca753
Nest: Fix bug in recursive routes with MPLS-labeled nexthops

When a recursive route with MPLS-labeled nexthop was exported to kernel
and read back, the nexthop_same() failed due to different labels_orig
field and kernel protocol reinstalled it unnecessarily.

For comparing hext hops, route cache has to distinguish ones with
different labels_orig, but KRT has to ignore that, so we need two
nexthop compare functions.

Thanks to Marcel Menzel for the bugreport.
nest/route.h
nest/rt-attr.c
sysdep/unix/krt.c