diff options
author | 2019-04-02 09:29:50 +0000 | |
---|---|---|
committer | 2019-04-02 09:29:50 +0000 | |
commit | 3cc0a6bbae4fd3dadb65a0e9789b48e2cea9d303 (patch) | |
tree | d1f41405115a899d40580e501f296d60cd051887 /hicn-plugin/src/hicn_api_test.c | |
parent | 79da1f90ffcee1acc933b9ec6e58e1228c4a0cbf (diff) | |
parent | 84b72f153e9d125aa276e1cb5a05b9380a557171 (diff) |
Merge "[HICN-158] Fixed ip face deletion from binary api"
Diffstat (limited to 'hicn-plugin/src/hicn_api_test.c')
-rw-r--r-- | hicn-plugin/src/hicn_api_test.c | 10 |
1 files changed, 5 insertions, 5 deletions
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); |