On Fri, Jul 07, 2023 at 07:22:36AM +0000, Valdrin MUJA wrote:
> Hello,
>
> It crashed again.
> I've never used 7.2 with this configuration and environment.
> What i simply do is feeding kernel routing table via bgp rib table. (Learn
> from rib table add it as mpath routing...)
> While openbgpd doesn't support multipath routing I'm trying to manipulate it
> via my golang software.
Hi,
Could you try this diff?
Index: sys/net/rtable.c
===================================================================
RCS file: /cvs/src/sys/net/rtable.c,v
retrieving revision 1.82
diff -u -p -r1.82 rtable.c
--- sys/net/rtable.c 19 Apr 2023 17:42:47 -0000 1.82
+++ sys/net/rtable.c 7 Jul 2023 22:05:10 -0000
@@ -809,7 +809,7 @@ rtable_mpath_reprio(unsigned int rtablei
srp_leave(&sr); /* an can't go away while we have the lock */
/* Make sure we've got a perfect match. */
- if (!an_match(an, dst, plen)) {
+ if (an == NULL || an_match(an, dst, plen) == 0) {
error = ESRCH;
} else if (SRPL_FIRST_LOCKED(&an->an_rtlist) == rt &&
SRPL_NEXT_LOCKED(rt, rt_next) == NULL) {