VPP-693: IOAM configuration for SRv6 localsid
[vpp.git] / src / plugins / ioam / ip6 / ioam_cache_tunnel_select_node.c
index a56dc04..2a95fe1 100644 (file)
@@ -424,7 +424,7 @@ ip6_reset_ts_hbh_node_fn (vlib_main_t * vm,
              ioam_e2e_id_rewrite_handler ((ioam_e2e_id_option_t *)
                                           ((u8 *) e2e +
                                            sizeof (ioam_e2e_cache_option_t)),
-                                          b0);
+                                          &cm->sr_localsid_ts);
              /* Patch the protocol chain, insert the h-b-h (type 0) header */
              hbh0->protocol = ip0->protocol;
              ip0->protocol = 0;
@@ -484,7 +484,7 @@ ip6_reset_ts_hbh_node_fn (vlib_main_t * vm,
              ioam_e2e_id_rewrite_handler ((ioam_e2e_id_option_t *)
                                           ((u8 *) e2e +
                                            sizeof (ioam_e2e_cache_option_t)),
-                                          b1);
+                                          &cm->sr_localsid_ts);
              /* Patch the protocol chain, insert the h-b-h (type 0) header */
              hbh1->protocol = ip1->protocol;
              ip1->protocol = 0;
@@ -590,7 +590,7 @@ ip6_reset_ts_hbh_node_fn (vlib_main_t * vm,
              ioam_e2e_id_rewrite_handler ((ioam_e2e_id_option_t *)
                                           ((u8 *) e2e +
                                            sizeof (ioam_e2e_cache_option_t)),
-                                          b0);
+                                          &cm->sr_localsid_ts);
              /* Patch the protocol chain, insert the h-b-h (type 0) header */
              hbh0->protocol = ip0->protocol;
              ip0->protocol = 0;