From: David Petera Date: Mon, 24 Nov 2025 14:28:09 +0000 (+0100) Subject: BSD: Fix export of non-multipath routes X-Git-Tag: v3.2.0~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4cde61976bc9c294a7555e66653d90fcb2358ab;p=thirdparty%2Fbird.git BSD: Fix export of non-multipath routes 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 for report and fix suggestion. --- diff --git a/sysdep/bsd/krt-sock.c b/sysdep/bsd/krt-sock.c index 2cd51c1a9..d48592ea9 100644 --- a/sysdep/bsd/krt-sock.c +++ b/sysdep/bsd/krt-sock.c @@ -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