git: ea7c339e8b04 - main - routing: Use fib-aware ifa lookup in ifa_ifwithroute()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 26 Aug 2026 14:01:19 UTC
The branch main has been updated by pouria:
URL: https://cgit.FreeBSD.org/src/commit/?id=ea7c339e8b048cebe79ea4313d2248a139d82795
commit ea7c339e8b048cebe79ea4313d2248a139d82795
Author: Pouria Mousavizadeh Tehrani <pouria@FreeBSD.org>
AuthorDate: 2026-08-20 08:47:54 +0000
Commit: Pouria Mousavizadeh Tehrani <pouria@FreeBSD.org>
CommitDate: 2026-08-26 13:59:36 +0000
routing: Use fib-aware ifa lookup in ifa_ifwithroute()
Use ifa_ifwithaddr_fib() to fix fib-specific ifa lookups with route.
Differential Revision: https://reviews.freebsd.org/D59128
---
sys/net/route.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/net/route.c b/sys/net/route.c
index 2034c298d273..2cffacf87f27 100644
--- a/sys/net/route.c
+++ b/sys/net/route.c
@@ -283,7 +283,7 @@ ifa_ifwithroute(int flags, const struct sockaddr *dst,
if (flags & RTF_HOST)
ifa = ifa_ifwithdstaddr(dst, fibnum);
if (ifa == NULL)
- ifa = ifa_ifwithaddr(gateway);
+ ifa = ifa_ifwithaddr_fib(gateway, fibnum);
} else {
/*
* If we are adding a route to a remote net