aboutsummaryrefslogtreecommitdiffstats
path: root/hicn-light/src/hicn/processor/fibEntry.c
diff options
context:
space:
mode:
authorJordan Augé <jordan.auge+fdio@cisco.com>2020-01-07 17:52:03 +0100
committerJordan Augé <jordan.auge+fdio@cisco.com>2020-01-07 17:52:48 +0100
commit9d938ccdb0e3602d725db0319e90c6ad63c1da81 (patch)
treeee4b9f4480db32b6fbe9d7f3f33c10d0e3336011 /hicn-light/src/hicn/processor/fibEntry.c
parent82f51e4208ff86c034f94bd99ff367301e2faa4f (diff)
[HICN-467] Priority settings on interfaces yet to be created should be cached for further application
Change-Id: Ieeff69ee841583e40f5547f6f958ef964f42b4e5 Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
Diffstat (limited to 'hicn-light/src/hicn/processor/fibEntry.c')
-rw-r--r--hicn-light/src/hicn/processor/fibEntry.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hicn-light/src/hicn/processor/fibEntry.c b/hicn-light/src/hicn/processor/fibEntry.c
index 46917a9d2..fe32ada8d 100644
--- a/hicn-light/src/hicn/processor/fibEntry.c
+++ b/hicn-light/src/hicn/processor/fibEntry.c
@@ -249,10 +249,12 @@ fibEntry_GetAvailableNextHops(const FibEntry *fibEntry, unsigned in_connection)
numberSet_Add(available_nexthops, conn_id);
}
+ /* Terminate selection if there are any local face available */
if (numberSet_Length(available_nexthops) > 0){
if(dealloc_nexthops){
numberSet_Release(&nexthops);
}
+ /* No filtering as all local faces are considered equivalent */
return available_nexthops;
}
}