diff options
author | Damjan Marion <damarion@cisco.com> | 2016-05-24 23:19:11 +0200 |
---|---|---|
committer | Damjan Marion <damarion@cisco.com> | 2016-06-13 19:04:12 +0200 |
commit | 86be48773c1833129317a3a0d6fe8165eb69ac3f (patch) | |
tree | ff6ddc2933e9a18aba8e3e841fb6f495bc7efe4a /vpp | |
parent | a38c3df5fd2bf1bf8b3389e882f6dcd5ac533202 (diff) |
Explicity specify IP address type for format_ip46_address function
Change-Id: I3379517535a98a7a5fbd3173503f288a81378821
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'vpp')
-rw-r--r-- | vpp/api/custom_dump.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/vpp/api/custom_dump.c b/vpp/api/custom_dump.c index 638c4a78..f49e1b05 100644 --- a/vpp/api/custom_dump.c +++ b/vpp/api/custom_dump.c @@ -1335,10 +1335,12 @@ static void * vl_api_vxlan_add_del_tunnel_t_print s = format (0, "SCRIPT: vxlan_add_del_tunnel "); s = format (s, "dst %U ", format_ip46_address, - (ip46_address_t *)&(mp->dst_address)); + (ip46_address_t *)&(mp->dst_address), + mp->is_ipv6 ? IP46_TYPE_IP6 : IP46_TYPE_IP4); s = format (s, "src %U ", format_ip46_address, - (ip46_address_t *)&(mp->src_address)); + (ip46_address_t *)&(mp->src_address), + mp->is_ipv6 ? IP46_TYPE_IP6 : IP46_TYPE_IP4); if (mp->encap_vrf_id) s = format (s, "encap-vrf-id %d ", ntohl(mp->encap_vrf_id)); |