From 2008912b56abbf3167faf9b787df76605684d9e1 Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Thu, 2 Dec 2021 17:07:14 +0000 Subject: fib: Fix the display (or lack of) for fib node types in dependent children lists Type: fix When registering a new FIB node type, no name was required on the API, and so no name was printed. Signed-off-by: Neale Ranns Change-Id: I8a99cf29c194637a550061b0a5e9782ffe8b31dd --- src/vnet/fib/fib_node.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/vnet/fib/fib_node.h') diff --git a/src/vnet/fib/fib_node.h b/src/vnet/fib/fib_node.h index dd266ee8ff9..b6089ec7b35 100644 --- a/src/vnet/fib/fib_node.h +++ b/src/vnet/fib/fib_node.h @@ -306,7 +306,6 @@ typedef struct fib_node_vft_t_ { fib_node_get_t fnv_get; fib_node_last_lock_gone_t fnv_last_lock; fib_node_back_walk_t fnv_back_walk; - format_function_t *fnv_format; fib_node_memory_show_t fnv_mem_show; } fib_node_vft_t; @@ -357,12 +356,13 @@ extern void fib_node_register_type (fib_node_type_t ft, * @brief * Create a new FIB node type and Register the function table for it. * - * @param vft - * virtual function table + * @param name Name of the type (as display when printing children) + * @param vft virtual function table * * @return new FIB node type */ -extern fib_node_type_t fib_node_register_new_type (const fib_node_vft_t *vft); +extern fib_node_type_t fib_node_register_new_type (const char *name, + const fib_node_vft_t *vft); /** * @brief Show the memory usage for a type -- cgit 1.2.3-korg