diff options
author | Neale Ranns <nranns@cisco.com> | 2018-12-20 03:01:49 -0800 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2018-12-20 15:00:30 +0000 |
commit | 775f73c6baaf9bc2283e7ab9752c81984823be99 (patch) | |
tree | 7c2496d34a590fae15f917f9e51867fa14aafec5 /src/vnet/mfib/mfib_table.c | |
parent | a3aaa61e2f2fd81f9653cb678b38519e96e6c6cd (diff) |
FIB: encode the label stack in the FIB path during table dump
Change-Id: I28e8a99b980ad343a4209e673201791b91ceab4e
Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vnet/mfib/mfib_table.c')
-rw-r--r-- | src/vnet/mfib/mfib_table.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/vnet/mfib/mfib_table.c b/src/vnet/mfib/mfib_table.c index 8ae4a784684..68154b37ff8 100644 --- a/src/vnet/mfib/mfib_table.c +++ b/src/vnet/mfib/mfib_table.c @@ -490,6 +490,17 @@ mfib_table_get_index_for_sw_if_index (fib_protocol_t proto, } u32 +mfib_table_get_table_id (u32 fib_index, + fib_protocol_t proto) +{ + mfib_table_t *mfib_table; + + mfib_table = mfib_table_get(fib_index, proto); + + return ((NULL != mfib_table ? mfib_table->mft_table_id : ~0)); +} + +u32 mfib_table_find (fib_protocol_t proto, u32 table_id) { |