From 7a8ed38fac8f0c42e214e3f648be855609afcc43 Mon Sep 17 00:00:00 2001 From: Jordan Augé Date: Mon, 18 Nov 2019 10:33:07 +0100 Subject: [HICN-379] Add face priority support in face manager MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I1055e49c93e81105996a77c088fafd4b55fdc337 Signed-off-by: Jordan Augé --- hicn-light/src/hicn/processor/fibEntry.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hicn-light/src') diff --git a/hicn-light/src/hicn/processor/fibEntry.c b/hicn-light/src/hicn/processor/fibEntry.c index 084be7b17..11a572c88 100644 --- a/hicn-light/src/hicn/processor/fibEntry.c +++ b/hicn-light/src/hicn/processor/fibEntry.c @@ -581,8 +581,8 @@ const NumberSet *fibEntry_GetNexthopsFromForwardingStrategy( NumberSet * priority_nexthops = numberSet_Create(); uint32_t max_priority = 0; - for (size_t k = 0; k < numberSet_Length(priority_nexthops); k++) { - unsigned conn_id = numberSet_GetItem(priority_nexthops, k); + for (size_t k = 0; k < numberSet_Length(available_nexthops); k++) { + unsigned conn_id = numberSet_GetItem(available_nexthops, k); const Connection * conn = connectionTable_FindById(table, conn_id); uint32_t priority = connection_GetPriority(conn); if (priority < max_priority) { -- cgit 1.2.3-korg