diff options
author | Alberto Compagno <acompagn+fdio@cisco.com> | 2019-11-19 17:57:20 +0000 |
---|---|---|
committer | Alberto Compagno <acompagn+fdio@cisco.com> | 2019-11-26 10:46:53 +0000 |
commit | 3e949f72778dd076fffecd7da2fb83cbb1ccb428 (patch) | |
tree | eb5e437c0bc4be54fc57ae46ae964be7567c43bc /hicn-plugin/src/hicn_api.c | |
parent | b3ee2ed8602c909f8d5096e9d8d44aa345093566 (diff) |
[HICN-398] Added face create/delete/list and listener list on libctrl for hicn-plugin
Listener list returns the list of interfaces and their ip addresses
Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
Change-Id: I2582cf29d4f1f60964766d47ad8d6dc64504fd62
Diffstat (limited to 'hicn-plugin/src/hicn_api.c')
-rw-r--r-- | hicn-plugin/src/hicn_api.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hicn-plugin/src/hicn_api.c b/hicn-plugin/src/hicn_api.c index 4c75d406d..df3365999 100644 --- a/hicn-plugin/src/hicn_api.c +++ b/hicn-plugin/src/hicn_api.c @@ -352,7 +352,7 @@ vl_api_hicn_api_face_add_t_handler (vl_api_hicn_api_face_add_t * mp) hicn_main_t *sm = &hicn_main; hicn_face_id_t face_id; - vl_api_face_type_t face_type = mp->type; + vl_api_face_type_t face_type = clib_net_to_host_u32(mp->type); switch (face_type) { @@ -371,7 +371,7 @@ vl_api_hicn_api_face_add_t_handler (vl_api_hicn_api_face_add_t * mp) REPLY_MACRO2 (VL_API_HICN_API_FACE_ADD_REPLY /* , rmp, mp, rv */ ,( { rmp->faceid = clib_host_to_net_u32 ((u32) face_id); - rmp->retval = rv; + rmp->retval = clib_host_to_net_u32 (rv); })); /* *INDENT-ON* */ } |