git: 94da8a12cdb2 - stable/15 - netinet6: Fix check for pktinfo outgoing ifindex in route cache
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 30 Oct 2026 17:43:26 UTC
The branch stable/15 has been updated by kbowling:
URL: https://cgit.FreeBSD.org/src/commit/?id=94da8a12cdb2ac2d18349212982e6c8e0bb6162c
commit 94da8a12cdb2ac2d18349212982e6c8e0bb6162c
Author: Pouria Mousavizadeh Tehrani <pouria@FreeBSD.org>
AuthorDate: 2026-07-29 19:32:35 +0000
Commit: Kevin Bowling <kbowling@FreeBSD.org>
CommitDate: 2026-10-30 17:43:17 +0000
netinet6: Fix check for pktinfo outgoing ifindex in route cache
lookup_route is only called for outgoing traffic, therefore
check nh_ifp index instead of nh_aifp as specified by RFC3542 sec 6.
Differential Revision: https://reviews.freebsd.org/D58544
(cherry picked from commit 7753a59fdf196fcbd8bb5706ad44bfc590bce0a9)
---
sys/netinet6/in6_src.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/netinet6/in6_src.c b/sys/netinet6/in6_src.c
index 3e55c6e5fc05..c028a2fe19b5 100644
--- a/sys/netinet6/in6_src.c
+++ b/sys/netinet6/in6_src.c
@@ -697,7 +697,7 @@ lookup_route(uint32_t fibnum, struct sockaddr_in6 *dst, struct route_in6 *ro,
*/
struct in6_pktinfo *pi;
if (opts && (pi = opts->ip6po_pktinfo) != NULL && pi->ipi6_ifindex) {
- if (nh->nh_aifp->if_index != pi->ipi6_ifindex)
+ if (nh->nh_ifp->if_index != pi->ipi6_ifindex)
nh = NULL;
}
}