From 9d938ccdb0e3602d725db0319e90c6ad63c1da81 Mon Sep 17 00:00:00 2001 From: Jordan Augé Date: Tue, 7 Jan 2020 17:52:03 +0100 Subject: [HICN-467] Priority settings on interfaces yet to be created should be cached for further application MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ieeff69ee841583e40f5547f6f958ef964f42b4e5 Signed-off-by: Jordan Augé --- hicn-light/src/hicn/config/controlAdd.c | 4 ++-- hicn-light/src/hicn/processor/fibEntry.c | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'hicn-light') diff --git a/hicn-light/src/hicn/config/controlAdd.c b/hicn-light/src/hicn/config/controlAdd.c index 519e11e40..e10b56e99 100644 --- a/hicn-light/src/hicn/config/controlAdd.c +++ b/hicn-light/src/hicn/config/controlAdd.c @@ -72,9 +72,9 @@ static CommandReturn _controlAdd_HelpExecute(CommandParser *parser, printf(" %s\n", ops_add_route->command); printf(" %s\n", ops_add_punting->command); printf(" %s\n", ops_add_listener->command); -#ifdef WITH_POLICIES +#ifdef WITH_POLICY printf(" %s\n", ops_add_policy->command); -#endif /* WITH_POLICIES */ +#endif /* WITH_POLICY */ printf("\n"); commandOps_Destroy(&ops_add_connection); 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; } } -- cgit 1.2.3-korg