From 84b72f153e9d125aa276e1cb5a05b9380a557171 Mon Sep 17 00:00:00 2001 From: Alberto Compagno Date: Tue, 2 Apr 2019 11:13:43 +0200 Subject: [HICN-158] Fixed ip face deletion from binary api Change-Id: I7a793e3664e30f765861fd5153c99fecb47ce863 Signed-off-by: Alberto Compagno --- hicn-plugin/src/hicn_api_test.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'hicn-plugin/src/hicn_api_test.c') diff --git a/hicn-plugin/src/hicn_api_test.c b/hicn-plugin/src/hicn_api_test.c index 4225f0078..d69c20770 100644 --- a/hicn-plugin/src/hicn_api_test.c +++ b/hicn-plugin/src/hicn_api_test.c @@ -413,7 +413,7 @@ api_hicn_api_face_ip_del (vat_main_t * vam) { unformat_input_t *input = vam->input; vl_api_hicn_api_face_ip_del_t *mp; - int faceid = 0, ret; + u32 faceid = 0, ret; while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT) { @@ -427,14 +427,14 @@ api_hicn_api_face_ip_del (vat_main_t * vam) } //Check for presence of face ID - if (faceid == 0) + if (faceid == ~0) { clib_warning ("Please specify face ID"); return 1; } //Construct the API message M (HICN_API_FACE_IP_DEL, mp); - mp->faceid = clib_host_to_net_i32 (faceid); + mp->faceid = clib_host_to_net_u32 (faceid); //send it... S (mp); @@ -450,7 +450,7 @@ api_hicn_api_face_ip_params_get (vat_main_t * vam) { unformat_input_t *input = vam->input; vl_api_hicn_api_face_ip_params_get_t *mp; - int faceid = 0, ret; + u32 faceid = 0, ret; while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT) { @@ -471,7 +471,7 @@ api_hicn_api_face_ip_params_get (vat_main_t * vam) } //Construct the API message M (HICN_API_FACE_IP_PARAMS_GET, mp); - mp->faceid = clib_host_to_net_i32 (faceid); + mp->faceid = clib_host_to_net_u32 (faceid); //send it... S (mp); -- cgit 1.2.3-korg