diff options
author | Alberto Compagno <acompagn+fdio@cisco.com> | 2020-01-14 09:14:02 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2020-01-14 09:14:02 +0000 |
commit | def98b1a2af5292519b18893133e419e940a850b (patch) | |
tree | 6ee1801da406b91a65bc971b28e5a48c0d166dd9 /hicn-plugin/src/mapme_ctrl_node.c | |
parent | 63312d00f31de987101a3a3edc4939730d269fef (diff) | |
parent | 6a268308c499edf4b5d72531388269114802de29 (diff) |
Merge changes from topic "HICN-475"
* changes:
[HICN-475] Adding multihoming in case the producer is facing the producer
[HICN-474] Enabling print of FIB and TFIB status
Diffstat (limited to 'hicn-plugin/src/mapme_ctrl_node.c')
-rw-r--r-- | hicn-plugin/src/mapme_ctrl_node.c | 6 |
1 files changed, 5 insertions, 1 deletions
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]); } |