From 6a268308c499edf4b5d72531388269114802de29 Mon Sep 17 00:00:00 2001 From: Alberto Compagno Date: Mon, 13 Jan 2020 17:03:55 +0100 Subject: [HICN-475] Adding multihoming in case the producer is facing the producer Change-Id: I9ec9d43083379ed8961532f2b9d20f03fd1fa45e Signed-off-by: Alberto Compagno --- hicn-plugin/src/mapme_ctrl_node.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'hicn-plugin/src/mapme_ctrl_node.c') diff --git a/hicn-plugin/src/mapme_ctrl_node.c b/hicn-plugin/src/mapme_ctrl_node.c index 22a50d49e..57f63dbe1 100644 --- a/hicn-plugin/src/mapme_ctrl_node.c +++ b/hicn-plugin/src/mapme_ctrl_node.c @@ -152,7 +152,11 @@ hicn_mapme_process_ctrl (vlib_main_t * vm, vlib_buffer_t * b, for (u8 pos = 0; pos < tfib->entry_count; pos++) { if (dpo_cmp (&tfib->next_hops[pos], in_face) == 0) - continue; + { + tfib->entry_count = 0; + break; + } + DEBUG ("Adding nexthop to the tfib, dpo index in_face %d, dpo index tfib %d", in_face->dpoi_index, tfib->next_hops[pos].dpoi_index); hicn_mapme_tfib_add (tfib, &tfib->next_hops[pos]); } -- cgit 1.2.3-korg