aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2020-05-29 16:18:57 +0000
committerAndrew Yourtchenko <ayourtch@gmail.com>2020-06-03 17:56:09 +0000
commite0db09034a17347fe9c35557fb6b0afe46d82a2b (patch)
treec1dbbcfd625ba827e112ea48ca2d89a596ea825b /src
parent201c8e4d2aed9b9e2c99ee848d8ed4c89fd9031e (diff)
lisp: fix api_format
Type: fix Ticket: VPP-1885 Fixes: 58db6e1 Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I6431e49b315e09490fed8fd70ac53872836c6a09 (cherry picked from commit f3c1e4b61269cd93302073a631a2549f1aeb24d9)
Diffstat (limited to 'src')
-rw-r--r--src/vat/api_format.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/vat/api_format.c b/src/vat/api_format.c
index 7f361e0b7f8..ea79b9508b5 100644
--- a/src/vat/api_format.c
+++ b/src/vat/api_format.c
@@ -2958,7 +2958,7 @@ vl_api_one_eid_table_details_t_handler (vl_api_one_eid_table_details_t * mp)
s = format (0, "%d", clib_net_to_host_u32 (mp->locator_set_index));
eid = format (0, "%U", format_lisp_eid_vat,
- mp->deid, mp->seid, mp->is_src_dst);
+ &mp->deid, &mp->seid, mp->is_src_dst);
vec_add1 (eid, 0);
print (vam->ofp, "[%d] %-35s%-20s%-30s%-20d%-20d%-10d%-20s",
@@ -3007,7 +3007,7 @@ vl_api_one_eid_table_details_t_handler_json (vl_api_one_eid_table_details_t
else
{
eid = format (0, "%U", format_lisp_eid_vat,
- mp->deid, mp->seid, mp->is_src_dst);
+ &mp->deid, &mp->seid, mp->is_src_dst);
vec_add1 (eid, 0);
vat_json_object_add_string_copy (node, "eid", eid);
vec_free (eid);
@@ -3031,9 +3031,9 @@ vl_api_one_stats_details_t_handler (vl_api_one_stats_details_t * mp)
u8 *seid = 0, *deid = 0;
ip46_address_t lloc, rloc;
- deid = format (0, "%U", format_lisp_eid_vat, mp->deid, 0);
+ deid = format (0, "%U", format_lisp_eid_vat, &mp->deid, 0, 0);
- seid = format (0, "%U", format_lisp_eid_vat, mp->seid, 0);
+ seid = format (0, "%U", format_lisp_eid_vat, &mp->seid, 0, 0);
vec_add1 (deid, 0);
vec_add1 (seid, 0);
@@ -3079,9 +3079,9 @@ vl_api_one_stats_details_t_handler_json (vl_api_one_stats_details_t * mp)
node = vat_json_array_add (&vam->json_tree);
vat_json_init_object (node);
- deid = format (0, "%U", format_lisp_eid_vat, mp->deid, 0);
+ deid = format (0, "%U", &format_lisp_eid_vat, mp->deid, 0, 0);
- seid = format (0, "%U", format_lisp_eid_vat, mp->seid, 0);
+ seid = format (0, "%U", &format_lisp_eid_vat, mp->seid, 0, 0);
vec_add1 (deid, 0);
vec_add1 (seid, 0);