summaryrefslogtreecommitdiffstats
path: root/hicn-light
diff options
context:
space:
mode:
authormichele papalini <micpapal@cisco.com>2019-08-27 10:32:40 +0200
committermichele papalini <micpapal@cisco.com>2019-08-27 10:32:40 +0200
commit1fe0af8b31b76912fe11da67bea5eb67a1833a47 (patch)
tree4875e73d61994e66e5442ed90f1bd1055b2b4722 /hicn-light
parent3f709888ef31c008021f2e929a937a3d6b312c87 (diff)
HICN-269 correctly set forwarding strategy with set command
Change-Id: Idd6820a64bf0e658abef7607044cd980e62d6987 Signed-off-by: michele papalini <micpapal@cisco.com>
Diffstat (limited to 'hicn-light')
-rw-r--r--hicn-light/src/hicn/processor/messageProcessor.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/hicn-light/src/hicn/processor/messageProcessor.c b/hicn-light/src/hicn/processor/messageProcessor.c
index 420863e26..7b43543a3 100644
--- a/hicn-light/src/hicn/processor/messageProcessor.c
+++ b/hicn-light/src/hicn/processor/messageProcessor.c
@@ -415,14 +415,12 @@ void processor_SetStrategy(MessageProcessor *processor, Name *prefix,
strategy_type strategy) {
FibEntry *entry = fib_Contains(processor->fib, prefix);
if (entry != NULL) {
-#ifndef WITH_POLICY
fibEntry_SetStrategy(entry, strategy);
if (strategy == SET_STRATEGY_LOADBALANCER_WITH_DELAY) {
strategyLoadBalancerWithPD_SetConnectionTable(
fibEntry_GetFwdStrategy(entry),
forwarder_GetConnectionTable(processor->forwarder));
}
-#endif /* ! WITH_POLICY */
}
}