ikev2: fix show ikev2 profile 14/30414/2
authorBenoît Ganne <bganne@cisco.com>
Mon, 14 Dec 2020 16:32:01 +0000 (17:32 +0100)
committerDamjan Marion <dmarion@me.com>
Mon, 14 Dec 2020 21:51:06 +0000 (21:51 +0000)
commit1474ab355f3f22eefcbc0d66d493557fd15d3dfc
tree8aa6c4784e347233f02dd901fce43b7df6129512
parent506aa3c93c26c41a343d19d13c4b9c3810ab489e
ikev2: fix show ikev2 profile

format_ip_address() to display {local,remote}_id does not work because
we do not store ip_address_t but ip{4,6}_address_t, hence we lack the
ip_address_family_t version field.
Update format_ikev2_id_type_and_data() to support all types and use it
instead.

Type: fix

Change-Id: I7a81beb0b22fcf1c5d1bf03a32a6cc4f030f4361
Signed-off-by: Benoît Ganne <bganne@cisco.com>
src/plugins/ikev2/ikev2_cli.c