Page MenuHomeFreeBSD

Refactor rib iterator functions.
ClosedPublic

Authored by melifaro on Sat, Nov 14, 9:28 PM.

Details

Reviewers
None
Group Reviewers
network
Commits
rS367941: Refactor rib iterator functions.
Summary
  • Make rib_walk() order of arguments consistent with the rest of RIB api
  • Add rib_walk_ext() allowing to exec callback before/after iteration.
  • Rename rt_foreach_fib_walk_del -> rib_foreach_table_walk_del
  • Rename rt_forach_fib_walk -> rib_foreach_table_walk
  • Move rib_foreach_table_walk{_del} to route/route_helpers.c
  • Slightly refactor rib_foreach_table_walk{_del} to make the implementation consistent and prepare for upcoming iterator optimizations.

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Sun, Nov 22, 8:21 PM
This revision was automatically updated to reflect the committed changes.