aboutsummaryrefslogtreecommitdiffstats
path: root/hicn-plugin/src/strategies/strategy_mw.c
diff options
context:
space:
mode:
authorAlberto Compagno <acompagn+fdio@cisco.com>2020-01-14 09:14:02 +0000
committerGerrit Code Review <gerrit@fd.io>2020-01-14 09:14:02 +0000
commitdef98b1a2af5292519b18893133e419e940a850b (patch)
tree6ee1801da406b91a65bc971b28e5a48c0d166dd9 /hicn-plugin/src/strategies/strategy_mw.c
parent63312d00f31de987101a3a3edc4939730d269fef (diff)
parent6a268308c499edf4b5d72531388269114802de29 (diff)
Merge changes from topic "HICN-475"
* changes: [HICN-475] Adding multihoming in case the producer is facing the producer [HICN-474] Enabling print of FIB and TFIB status
Diffstat (limited to 'hicn-plugin/src/strategies/strategy_mw.c')
-rw-r--r--hicn-plugin/src/strategies/strategy_mw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hicn-plugin/src/strategies/strategy_mw.c b/hicn-plugin/src/strategies/strategy_mw.c
index 3efddc0ce..d5ff87303 100644
--- a/hicn-plugin/src/strategies/strategy_mw.c
+++ b/hicn-plugin/src/strategies/strategy_mw.c
@@ -74,7 +74,7 @@ hicn_select_next_hop_mw (index_t dpo_idx, int *nh_idx, dpo_id_t ** outface)
(hicn_strategy_mw_ctx_t *) hicn_strategy_mw_ctx_get (dpo_idx);
u8 next_hop_index = 0;
- for (int i = 0; i < HICN_PARAM_FIB_ENTRY_NHOPS_MAX; i++)
+ for (int i = 0; i < hicn_strategy_mw_ctx->default_ctx.entry_count; i++)
{
if (dpo_id_is_valid (&hicn_strategy_mw_ctx->default_ctx.next_hops[i]))
{