* True if non-transient error has been registered for @flm in @fibnum. */
| 297 | * True if non-transient error has been registered for @flm in @fibnum. |
| 298 | */ |
| 299 | static bool |
| 300 | flm_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. |
no outgoing calls
no test coverage detected