mirror of
https://git.FreeBSD.org/src.git
synced 2026-06-02 11:24:32 +00:00
netlink: Fix RTM_GETROUTE loop for RT_TABLE_UNSPEC
Reviewed by: bz, pouria
Fixes: 7e5bf68495 ("netlink: add netlink support")
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D57234
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user