fib: A 16-8-8 and a 8-8-8-8 versions of an ip4_fib_t
Type: feature
The difference being the MTRIE type they contain.
THE FIB continues to use the 16-8-8 version.
Signed-off-by: Neale Ranns <neale@graphiant.com>
Change-Id: I5a54d4e6e6cc639f18a3fb65ef2925507a7ef1de
diff --git a/src/vnet/ip6-nd/ip6_nd_api.c b/src/vnet/ip6-nd/ip6_nd_api.c
index 9e40246..b949e21 100644
--- a/src/vnet/ip6-nd/ip6_nd_api.c
+++ b/src/vnet/ip6-nd/ip6_nd_api.c
@@ -83,7 +83,7 @@
vl_api_ip6nd_proxy_dump_t_handler (vl_api_ip6nd_proxy_dump_t * mp)
{
ip6_main_t *im6 = &ip6_main;
- fib_table_t *fib_table;
+ u32 fib_index;
api_ip6nd_proxy_fib_table_walk_ctx_t ctx = {
.indices = NULL,
};
@@ -96,13 +96,11 @@
return;
/* *INDENT-OFF* */
- pool_foreach (fib_table, im6->fibs)
- {
- fib_table_walk(fib_table->ft_index,
- FIB_PROTOCOL_IP6,
- api_ip6nd_proxy_fib_table_walk,
- &ctx);
- }
+ pool_foreach_index (fib_index, im6->fibs)
+ {
+ fib_table_walk (fib_index, FIB_PROTOCOL_IP6,
+ api_ip6nd_proxy_fib_table_walk, &ctx);
+ }
/* *INDENT-ON* */
vec_sort_with_function (ctx.indices, fib_entry_cmp_for_sort);