summaryrefslogtreecommitdiffstats
path: root/hicn-light
diff options
context:
space:
mode:
authorJordan Augé <jordan.auge+fdio@cisco.com>2020-01-09 12:59:21 +0100
committerJordan Augé <jordan.auge+fdio@cisco.com>2020-01-09 12:59:21 +0100
commit00078ca97880ac0ccd5cc70954248dbdcd8e48e1 (patch)
tree698d00d0ab61d849b0648caf20683f6d0643c037 /hicn-light
parent61d8e9f5bd21cc621451123796bc0bb6aa1946a8 (diff)
[HICN-468] FIB entry improperly cleared by MAP-Me in multihoming situations
Change-Id: Ibf57032fccb8ea09322a2b4f447ea24db7b69986 Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
Diffstat (limited to 'hicn-light')
-rw-r--r--hicn-light/src/hicn/core/mapme.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hicn-light/src/hicn/core/mapme.c b/hicn-light/src/hicn/core/mapme.c
index a0a34e8ce..e426e7575 100644
--- a/hicn-light/src/hicn/core/mapme.c
+++ b/hicn-light/src/hicn/core/mapme.c
@@ -783,8 +783,8 @@ static bool mapme_onSpecialInterest(const MapMe *mapme,
mapmeTFIB_Remove(TFIB(fibEntry), conn_in_id);
/* Remove all next hops */
- for (size_t k = 0; k < numberSet_Length(nexthops_old); k++) {
- unsigned conn_id = numberSet_GetItem(nexthops_old, k);
+ for (size_t k = 0; k < numberSet_Length(nexthops); k++) {
+ unsigned conn_id = numberSet_GetItem(nexthops, k);
INFO(mapme, "[MAP-Me] - Replaced next hops by connection %d", conn_id);
fibEntry_RemoveNexthopByConnectionId(fibEntry, conn_id);
}