MCPcopy Create free account
hub / github.com/F-Stack/f-stack / rib_foreach_table_walk_del

Function rib_foreach_table_walk_del

freebsd/net/route/route_helpers.c:161–175  ·  view source on GitHub ↗

* Iterates over all existing fibs in system and deletes each element * for which @filter_f function returns non-zero value. * If @family is not AF_UNSPEC, iterates over fibs in particular * address family. */

Source from the content-addressed store, hash-verified

159 * address family.
160 */
161void
162rib_foreach_table_walk_del(int family, rib_filter_f_t *filter_f, void *arg)
163{
164
165 for (uint32_t fibnum = 0; fibnum < rt_numfibs; fibnum++) {
166 /* Do we want some specific family? */
167 if (family != AF_UNSPEC) {
168 rib_walk_del(fibnum, family, filter_f, arg, 0);
169 continue;
170 }
171
172 for (int i = 1; i <= AF_MAX; i++)
173 rib_walk_del(fibnum, i, filter_f, arg, 0);
174 }
175}
176
177
178/*

Callers 3

in_ifadownFunction · 0.85
rt6_flushFunction · 0.85
rt_flushifroutesFunction · 0.85

Calls 1

rib_walk_delFunction · 0.85

Tested by

no test coverage detected