Fix use of format_ip46_address in custom_format 34/934/1
authorChris Luke <chrisy@flirble.org>
Fri, 29 Apr 2016 13:04:55 +0000 (09:04 -0400)
committerChris Luke <chrisy@flirble.org>
Fri, 29 Apr 2016 13:07:00 +0000 (09:07 -0400)
format_ip46_address() does not take a 2nd argument indicating the
address family. Harmless since the extra argument is simply not
consumed.

(noticed while adding gre to this module)

Change-Id: I692883872eedb4a8e3c0be7680d03b4b257ba6f9
Signed-off-by: Chris Luke <chrisy@flirble.org>
vpp/api/custom_dump.c

index 6ffc8c9..f4e5e75 100644 (file)
@@ -1266,11 +1266,11 @@ 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), mp->is_ipv6);
+    s = format (s, "dst %U ", format_ip46_address,
+                (ip46_address_t *)&(mp->dst_address));
 
-    s = format (s, "src %U ", format_ip46_address, 
-                (ip46_address_t *)&(mp->src_address), mp->is_ipv6);
+    s = format (s, "src %U ", format_ip46_address,
+                (ip46_address_t *)&(mp->src_address));
 
     if (mp->encap_vrf_id)
         s = format (s, "encap-vrf-id %d ", ntohl(mp->encap_vrf_id));