From 5de4fb7076a46ab75e2d3c30079dd6639af16a86 Mon Sep 17 00:00:00 2001 From: Jakub Grajciar Date: Tue, 3 Sep 2019 10:40:01 +0200 Subject: devices: tap API cleanup Use consistent API types. Type: fix Change-Id: I11cc7f6347b7a60e5fd41e54f0c7994e2d81199f Signed-off-by: Jakub Grajciar --- src/vpp/api/custom_dump.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'src/vpp/api/custom_dump.c') diff --git a/src/vpp/api/custom_dump.c b/src/vpp/api/custom_dump.c index 982d66dec85..7284d805455 100644 --- a/src/vpp/api/custom_dump.c +++ b/src/vpp/api/custom_dump.c @@ -557,16 +557,20 @@ static void *vl_api_tap_create_v2_t_print s = format (s, "host-ns %s ", mp->host_namespace); if (mp->host_bridge_set) s = format (s, "host-bridge %s ", mp->host_bridge); - if (mp->host_ip4_addr_set) + if (mp->host_ip4_prefix_set) s = format (s, "host-ip4-addr %U/%d ", format_ip4_address, - mp->host_ip4_addr, mp->host_ip4_prefix_len); - if (mp->host_ip6_addr_set) + mp->host_ip4_prefix.address, mp->host_ip4_prefix.len); + if (mp->host_ip6_prefix_set) s = format (s, "host-ip6-addr %U/%d ", format_ip6_address, - mp->host_ip6_addr, mp->host_ip6_prefix_len); + mp->host_ip6_prefix.address, mp->host_ip6_prefix.len); if (mp->host_ip4_gw_set) - s = format (s, "host-ip4-gw %U ", format_ip4_address, mp->host_ip4_addr); + s = + format (s, "host-ip4-gw %U ", format_ip4_address, + mp->host_ip4_prefix.address); if (mp->host_ip6_gw_set) - s = format (s, "host-ip6-gw %U ", format_ip6_address, mp->host_ip6_addr); + s = + format (s, "host-ip6-gw %U ", format_ip6_address, + mp->host_ip6_prefix.address); if (mp->tx_ring_sz) s = format (s, "tx-ring-size %u ", (mp->tx_ring_sz)); if (mp->rx_ring_sz) -- cgit 1.2.3-korg