From 3ba9071c6899d64b36e910943f109ddc7c7e0809 Mon Sep 17 00:00:00 2001 From: Alberto Compagno Date: Fri, 3 May 2019 15:11:28 +0200 Subject: [HICN-181] Added round robin strategy Change-Id: I301ffaeed6f43b7db6701810167f02947439d20c Signed-off-by: Alberto Compagno --- hicn-plugin/src/strategies/strategy_mw.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'hicn-plugin/src/strategies/strategy_mw.c') diff --git a/hicn-plugin/src/strategies/strategy_mw.c b/hicn-plugin/src/strategies/strategy_mw.c index 77a7d16a8..3efddc0ce 100644 --- a/hicn-plugin/src/strategies/strategy_mw.c +++ b/hicn-plugin/src/strategies/strategy_mw.c @@ -88,11 +88,11 @@ hicn_select_next_hop_mw (index_t dpo_idx, int *nh_idx, dpo_id_t ** outface) if (!dpo_id_is_valid (&hicn_strategy_mw_ctx->default_ctx.next_hops[next_hop_index])) - return HICN_ERROR_MW_STRATEGY_NH_NOT_FOUND; + return HICN_ERROR_STRATEGY_NH_NOT_FOUND; *outface = - (dpo_id_t *) & hicn_strategy_mw_ctx-> - default_ctx.next_hops[next_hop_index]; + (dpo_id_t *) & hicn_strategy_mw_ctx->default_ctx. + next_hops[next_hop_index]; return HICN_ERROR_NONE; } -- cgit 1.2.3-korg