summaryrefslogtreecommitdiffstats
path: root/src/vat
diff options
context:
space:
mode:
authorEyal Bari <ebari@cisco.com>2017-03-15 08:23:42 +0200
committerJohn Lo <loj@cisco.com>2017-03-15 12:44:00 +0000
commite101e1f52f1da71575588fac30b984a0e94fb5a7 (patch)
tree11fcadb6249f343b52a7957d612158edee9d9059 /src/vat
parent3bde40778cc2bf5fab6b13d81eca0180f7d27af3 (diff)
VXLAN:add hidden multicast interface check
and some refactoring Change-Id: I99e3c5e782ce65cb9779ccc3a9a3151ef1429e07 Signed-off-by: Eyal Bari <ebari@cisco.com>
Diffstat (limited to 'src/vat')
-rw-r--r--src/vat/api_format.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/vat/api_format.c b/src/vat/api_format.c
index e6e4acd9..391fe9cf 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),