diff options
author | 2018-10-24 02:57:49 -0700 | |
---|---|---|
committer | 2018-11-06 21:23:18 +0000 | |
commit | 4d5b917b1a74461abaa30182d4bf5c7761572323 (patch) | |
tree | a92e08d4de07934dcb49c63661e0ddd74ad0c5a6 /src/vpp | |
parent | 65ed2d0503bc8d9a6a66ca1ece87e3e876ff95cc (diff) |
BD ARP entry use common API types
Change-Id: I29f20dbaf2c2d735faff297cee552ed648f6f61b
Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vpp')
-rw-r--r-- | src/vpp/api/custom_dump.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/vpp/api/custom_dump.c b/src/vpp/api/custom_dump.c index 727032fb1bf..e837b4deee4 100644 --- a/src/vpp/api/custom_dump.c +++ b/src/vpp/api/custom_dump.c @@ -46,6 +46,7 @@ #include <vnet/l2/l2_vtr.h> #include <vpp/api/vpe_msg_enum.h> +#include <vpp/api/types.h> #include <vnet/bonding/node.h> @@ -506,14 +507,8 @@ static void *vl_api_bd_ip_mac_add_del_t_print s = format (0, "SCRIPT: bd_ip_mac_add_del "); s = format (s, "bd_id %d ", ntohl (mp->bd_id)); - if (mp->is_ipv6) - s = format (s, "%U ", format_ip6_address, - (ip6_address_t *) mp->ip_address); - else - s = format (s, "%U ", format_ip4_address, - (ip4_address_t *) mp->ip_address); - - s = format (s, "%U ", format_ethernet_address, mp->mac_address); + s = format (s, "%U ", format_vl_api_address, &mp->ip); + s = format (s, "%U ", format_vl_api_mac_address, &mp->mac); if (mp->is_add == 0) s = format (s, "del "); |