aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/ioam/ip6
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/ioam/ip6')
-rw-r--r--src/plugins/ioam/ip6/ioam_cache.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/ioam/ip6/ioam_cache.h b/src/plugins/ioam/ip6/ioam_cache.h
index 75ec784bf52..3f69fa7255d 100644
--- a/src/plugins/ioam/ip6/ioam_cache.h
+++ b/src/plugins/ioam/ip6/ioam_cache.h
@@ -436,9 +436,9 @@ ioam_cache_sr_rewrite_template_create (void)
/* This nodes address and the original dest will be
* filled when the packet is processed */
- vec_add2 (segments, this_seg, 2);
- memset (this_seg, 0xfe, 2 * sizeof (ip6_address_t));
- cm->sr_rewrite_template = ip6_compute_rewrite_string_insert (segments);
+ vec_add2 (segments, this_seg, 1);
+ memset (this_seg, 0xfe, sizeof (ip6_address_t));
+ cm->sr_rewrite_template = ip6_sr_compute_rewrite_string_insert (segments);
vec_free (segments);
}