diff options
author | Neale Ranns <nranns@cisco.com> | 2017-09-12 09:45:04 -0700 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2017-09-13 17:31:13 +0000 |
commit | 2297af016d4c1ecdd0c695dc736e8f5a988e89bd (patch) | |
tree | f887e39e50144e5052d0058605ed63cfa40c01f9 /src/vnet/fib/fib_table.h | |
parent | 49fe046e431c4d76b0c45c609e05e1b0a3063360 (diff) |
Add a name to the creation of an IP and MPLS table
Change-Id: I4b4648831551519b2ffb6f93255d28a4b8726c22
Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vnet/fib/fib_table.h')
-rw-r--r-- | src/vnet/fib/fib_table.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/vnet/fib/fib_table.h b/src/vnet/fib/fib_table.h index 6b7011b3316..923d7afff9a 100644 --- a/src/vnet/fib/fib_table.h +++ b/src/vnet/fib/fib_table.h @@ -644,6 +644,31 @@ extern u32 fib_table_find_or_create_and_lock(fib_protocol_t proto, /** * @brief + * Get the index of the FIB for a Table-ID. This DOES create the + * FIB if it does not exist. + * + * @paran proto + * The protocol of the FIB (and thus the entries therein) + * + * @param table-id + * The Table-ID + * + * @return fib_index + * The index of the FIB + * + * @param source + * The ID of the client/source. + * + * @param name + * The client is choosing the name they want the table to have + */ +extern u32 fib_table_find_or_create_and_lock_w_name(fib_protocol_t proto, + u32 table_id, + fib_source_t source, + const u8 *name); + +/** + * @brief * Create a new table with no table ID. This means it does not get * added to the hash-table and so can only be found by using the index returned. * |