X-Git-Url: https://gerrit.fd.io/r/gitweb?p=vpp.git;a=blobdiff_plain;f=src%2Fvat%2Fapi_format.c;h=391fe9cf7c43283462ebebb1e3c62bd7f0bf0de2;hp=e6e4acd9ea673f79611dc68baaf3bc8432594eaf;hb=e101e1f52f1da71575588fac30b984a0e94fb5a7;hpb=3bde40778cc2bf5fab6b13d81eca0180f7d27af3 diff --git a/src/vat/api_format.c b/src/vat/api_format.c index e6e4acd9ea6..391fe9cf7c4 100644 --- a/src/vat/api_format.c +++ b/src/vat/api_format.c @@ -10671,10 +10671,8 @@ static void vl_api_vxlan_tunnel_details_t_handler (vl_api_vxlan_tunnel_details_t * mp) { vat_main_t *vam = &vat_main; - ip46_address_t src, dst; - - ip46_from_addr_buf (mp->is_ipv6, mp->src_address, &src); - ip46_from_addr_buf (mp->is_ipv6, mp->dst_address, &dst); + ip46_address_t src = to_ip46 (mp->is_ipv6, mp->dst_address); + ip46_address_t dst = to_ip46 (mp->is_ipv6, mp->src_address); print (vam->ofp, "%11d%24U%24U%14d%18d%13d%19d", ntohl (mp->sw_if_index),