diff options
author | Jordan Augé <jordan.auge+fdio@cisco.com> | 2019-11-18 10:33:07 +0100 |
---|---|---|
committer | Jordan Augé <jordan.auge+fdio@cisco.com> | 2019-11-18 10:33:07 +0100 |
commit | 7a8ed38fac8f0c42e214e3f648be855609afcc43 (patch) | |
tree | 5923312faf4d2e905971371515f8e39c07f94248 /hicn-light | |
parent | 2ada8954ecd3601d115a22696c4c3ab90858cec3 (diff) |
[HICN-379] Add face priority support in face manager
Change-Id: I1055e49c93e81105996a77c088fafd4b55fdc337
Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
Diffstat (limited to 'hicn-light')
-rw-r--r-- | hicn-light/src/hicn/processor/fibEntry.c | 4 |
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) { |