summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/vnet/ipsec/ipsec_cli.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vnet/ipsec/ipsec_cli.c b/src/vnet/ipsec/ipsec_cli.c
index 312289ae7d8..4172e104a98 100644
--- a/src/vnet/ipsec/ipsec_cli.c
+++ b/src/vnet/ipsec/ipsec_cli.c
@@ -374,12 +374,14 @@ static void
ipsec_spd_bindings_show_all (vlib_main_t * vm, ipsec_main_t * im)
{
u32 spd_id, sw_if_index;
+ ipsec_spd_t *spd;
vlib_cli_output (vm, "SPD Bindings:");
/* *INDENT-OFF* */
hash_foreach(sw_if_index, spd_id, im->spd_index_by_sw_if_index, ({
- vlib_cli_output (vm, " %d -> %U", spd_id,
+ spd = pool_elt_at_index (im->spds, spd_id);
+ vlib_cli_output (vm, " %d -> %U", spd->id,
format_vnet_sw_if_index_name, im->vnet_main,
sw_if_index);
}));