git: 44e81e84181f - stable/15 - netlink: Fix RTM_GETROUTE loop for RT_TABLE_UNSPEC
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 09 Jun 2026 14:09:43 UTC
The branch stable/15 has been updated by emaste:
URL: https://cgit.FreeBSD.org/src/commit/?id=44e81e84181fdf71c5b835e263be77ce45d6a227
commit 44e81e84181fdf71c5b835e263be77ce45d6a227
Author: Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2026-05-22 14:27:53 +0000
Commit: Ed Maste <emaste@FreeBSD.org>
CommitDate: 2026-06-09 13:40:29 +0000
netlink: Fix RTM_GETROUTE loop for RT_TABLE_UNSPEC
Reviewed by: bz, pouria
Fixes: 7e5bf68495cc ("netlink: add netlink support")
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D57234
(cherry picked from commit 33acf0f26b490ea4887d820a3f45c56e3913a17d)
---
sys/netlink/route/rt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/netlink/route/rt.c b/sys/netlink/route/rt.c
index 42ba3307b816..ce62aad1f81b 100644
--- a/sys/netlink/route/rt.c
+++ b/sys/netlink/route/rt.c
@@ -696,7 +696,7 @@ handle_rtm_dump(struct nlpcb *nlp, uint32_t fibnum, int family,
if (fibnum == RT_TABLE_UNSPEC) {
for (int i = 0; i < V_rt_numfibs; i++) {
- dump_rtable_fib(&wa, fibnum, family);
+ dump_rtable_fib(&wa, i, family);
if (wa.error != 0)
break;
}