aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/ioam/ip6/ioam_cache.c
diff options
context:
space:
mode:
authorFilip Tehlar <ftehlar@cisco.com>2019-03-01 03:18:58 -0800
committerDamjan Marion <dmarion@me.com>2019-03-01 20:26:13 +0000
commitb89609428977fe4ffae4e0823e28942fd4ac4ee8 (patch)
tree94b805c74df51ccccb91d25a193ff53d9e9da7b5 /src/plugins/ioam/ip6/ioam_cache.c
parent01f5c90259766708c66ed1548398fd52ebbfadb0 (diff)
ioam: migrate old MULTIARCH macros to VLIB_NODE_FN
Change-Id: Icb919a053b35ef62f958c60c725d3aae4c32358f Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'src/plugins/ioam/ip6/ioam_cache.c')
-rw-r--r--src/plugins/ioam/ip6/ioam_cache.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/ioam/ip6/ioam_cache.c b/src/plugins/ioam/ip6/ioam_cache.c
index fcacae0cf2c..d315bc6c61c 100644
--- a/src/plugins/ioam/ip6/ioam_cache.c
+++ b/src/plugins/ioam/ip6/ioam_cache.c
@@ -371,6 +371,7 @@ VLIB_CLI_COMMAND (show_ioam_cache_command, static) =
static clib_error_t *
ioam_cache_init (vlib_main_t * vm)
{
+ vlib_node_t *node;
ioam_cache_main_t *em = &ioam_cache_main;
clib_error_t *error = 0;
u8 *name;
@@ -405,6 +406,12 @@ ioam_cache_init (vlib_main_t * vm)
em->error_node_index = error_node->index;
em->vlib_main = vm;
+ node = vlib_get_node_by_name (vm, (u8 *) "ip6-add-from-cache-hop-by-hop");
+ em->ip6_add_from_cache_hbh_node_index = node->index;
+
+ node = vlib_get_node_by_name (vm, (u8 *) "ip6-add-syn-hop-by-hop");
+ em->ip6_reset_ts_hbh_node_index = node->index;
+
vec_free (name);
return error;