diff options
author | 2020-01-13 17:02:27 +0100 | |
---|---|---|
committer | 2020-01-14 09:24:44 +0100 | |
commit | da5b7d29648fd6acfa527a83f0b66d2f52452033 (patch) | |
tree | 5d5d5696dfae43d0dce8770788813e64a4798d03 /hicn-plugin/src/strategies/strategy_mw.c | |
parent | 3f4acd6752d19ebe29fd0b04101fbe5b5199c119 (diff) |
[HICN-474] Enabling print of FIB and TFIB status
Change-Id: I0bf56393fe53a4a52753501134cfe2b4b6c75c08
Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
Diffstat (limited to 'hicn-plugin/src/strategies/strategy_mw.c')
-rw-r--r-- | hicn-plugin/src/strategies/strategy_mw.c | 2 |
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])) { |