summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJordan Augé <jordan.auge+fdio@cisco.com>2019-11-18 10:33:07 +0100
committerJordan Augé <jordan.auge+fdio@cisco.com>2019-11-18 10:33:07 +0100
commit7a8ed38fac8f0c42e214e3f648be855609afcc43 (patch)
tree5923312faf4d2e905971371515f8e39c07f94248
parent2ada8954ecd3601d115a22696c4c3ab90858cec3 (diff)
[HICN-379] Add face priority support in face manager
Change-Id: I1055e49c93e81105996a77c088fafd4b55fdc337 Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
-rw-r--r--hicn-light/src/hicn/processor/fibEntry.c4
1 files changed, 2 insertions, 2 deletions
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) {