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

Function flm_error_check

freebsd/net/route/fib_algo.c:299–310  ·  view source on GitHub ↗

* True if non-transient error has been registered for @flm in @fibnum. */

Source from the content-addressed store, hash-verified

297 * True if non-transient error has been registered for @flm in @fibnum.
298 */
299static bool
300flm_error_check(const struct fib_lookup_module *flm, uint32_t fibnum)
301{
302 const struct fib_error *fe;
303
304 TAILQ_FOREACH(fe, &V_fib_error_list, entries) {
305 if ((fe->fe_flm == flm) && (fe->fe_fibnum == fibnum))
306 return (true);
307 }
308
309 return (false);
310}
311
312/*
313 * Clear all errors of algo specified by @flm.

Callers 2

flm_error_addFunction · 0.85
fib_check_best_algoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected