X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fmfib%2Fip6_mfib.h;h=f197b9d9fe8f73d550c98d15eb9f25ccf6b71910;hb=775f73c;hp=adaa7ec24fe2cee9dcc98dd76776b6fd8c1b6eed;hpb=5a8123bda0261158457e38bfb4922aa5961389ff;p=vpp.git diff --git a/src/vnet/mfib/ip6_mfib.h b/src/vnet/mfib/ip6_mfib.h index adaa7ec24fe..f197b9d9fe8 100644 --- a/src/vnet/mfib/ip6_mfib.h +++ b/src/vnet/mfib/ip6_mfib.h @@ -34,10 +34,17 @@ extern fib_node_index_t ip6_mfib_table_lookup(const ip6_mfib_t *fib, const ip6_address_t *src, const ip6_address_t *grp, u32 len); +extern fib_node_index_t ip6_mfib_table_fwd_lookup(const ip6_mfib_t *fib, + const ip6_address_t *src, + const ip6_address_t *grp); extern fib_node_index_t ip6_mfib_table_lookup_exact_match(const ip6_mfib_t *fib, const ip6_address_t *grp, const ip6_address_t *src, u32 len); +extern fib_node_index_t ip6_mfib_table_get_less_specific (const ip6_mfib_t *mfib, + const ip6_address_t *src, + const ip6_address_t *grp, + u32 len); extern void ip6_mfib_table_entry_remove(ip6_mfib_t *fib, const ip6_address_t *grp, @@ -79,8 +86,9 @@ ip6_mfib_get (u32 index) * @returns A pointer to the retrieved or created fib. * */ -extern u32 ip6_mfib_table_find_or_create_and_lock(u32 table_id); -extern u32 ip6_mfib_table_create_and_lock(void); +extern u32 ip6_mfib_table_find_or_create_and_lock(u32 table_id, + mfib_source_t src); +extern u32 ip6_mfib_table_create_and_lock(mfib_source_t src); static inline @@ -116,5 +124,10 @@ extern void ip6_mfib_table_walk (ip6_mfib_t *mfib, mfib_table_walk_fn_t fn, void *ctx); +/** + * @brief format (display) ipv6 MFIB mempry usage + */ +extern u8 *format_ip6_mfib_table_memory(u8 * s, va_list * args); + #endif