X-Git-Url: https://gerrit.fd.io/r/gitweb?p=vpp.git;a=blobdiff_plain;f=src%2Fvnet%2Ffib%2Ffib_table.h;h=11137e173cfc6c028d8d08f05f901a2a1c0b96a2;hp=201170707a83f90bddba485de06d24b6744433a4;hb=976b259be;hpb=400ce717ac043ceec404103dbaa87dd17d92feb7 diff --git a/src/vnet/fib/fib_table.h b/src/vnet/fib/fib_table.h index 201170707a8..11137e173cf 100644 --- a/src/vnet/fib/fib_table.h +++ b/src/vnet/fib/fib_table.h @@ -940,6 +940,17 @@ extern void fib_table_walk(u32 fib_index, fib_table_walk_fn_t fn, void *ctx); +/** + * @brief Walk all entries in a FIB table + * N.B: This is NOT safe to deletes. If you need to delete walk the whole + * table and store elements in a vector, then delete the elements + */ +extern void fib_table_walk_w_src(u32 fib_index, + fib_protocol_t proto, + fib_source_t src, + fib_table_walk_fn_t fn, + void *ctx); + /** * @brief Walk all entries in a sub-tree FIB table. The 'root' paraneter * is the prefix at the root of the sub-tree.