]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
BSD: Fix export of non-multipath routes
authorDavid Petera <david.petera@nic.cz>
Mon, 24 Nov 2025 14:28:09 +0000 (15:28 +0100)
committerMaria Matejka <mq@ucw.cz>
Wed, 26 Nov 2025 09:33:11 +0000 (10:33 +0100)
Due to incorrect logic in sysdep/bsd/krt-sock.c:krt_capable
it was impossible to export non-mulitpatch route to kernel table.

This is now fixed.

Thanks to Yuri Honegger <yuri.honegger@icloud.com> for report and fix suggestion.

sysdep/bsd/krt-sock.c

index 2cd51c1a9977be3660a26c63d92bec0116d611e5..d48592ea90da7702756fcea514651144f174b486 100644 (file)
@@ -174,7 +174,7 @@ krt_capable(rte *e)
   int dest = nhea_dest(nhea);
 
   return
-    ((dest == RTD_UNICAST && !NEXTHOP_ONE(nh)) /* No multipath support */
+    ((dest == RTD_UNICAST && NEXTHOP_ONE(nh)) /* No multipath support */
 #ifdef RTF_REJECT
      || dest == RTD_UNREACHABLE
 #endif