The branch main has been updated by emaste:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=33acf0f26b490ea4887d820a3f45c56e3913a17d

commit 33acf0f26b490ea4887d820a3f45c56e3913a17d
Author:     Ed Maste <[email protected]>
AuthorDate: 2026-05-22 14:27:53 +0000
Commit:     Ed Maste <[email protected]>
CommitDate: 2026-05-25 16:37:12 +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
---
 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 8159409c9f67..ee17737426ed 100644
--- a/sys/netlink/route/rt.c
+++ b/sys/netlink/route/rt.c
@@ -726,7 +726,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;
                }

Reply via email to