summaryrefslogtreecommitdiffstats
path: root/hicn-plugin/src
diff options
context:
space:
mode:
authorAlberto Compagno <acompagn+fdio@cisco.com>2019-05-10 09:15:17 +0200
committerAlberto Compagno <acompagn+fdio@cisco.com>2019-05-10 09:15:17 +0200
commite09777d07b9d2237b35be09d69bdd2ec1d5648ca (patch)
tree3a3ba53d2b55192dbf5ee93c5efe736638d63e98 /hicn-plugin/src
parent3ba9071c6899d64b36e910943f109ddc7c7e0809 (diff)
[HICN-193] Fixed faceid convertion from network to host order
Change-Id: Idf28a2ae624231481b03556665a7360388229c8a Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
Diffstat (limited to 'hicn-plugin/src')
-rw-r--r--hicn-plugin/src/hicn_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hicn-plugin/src/hicn_api.c b/hicn-plugin/src/hicn_api.c
index 661b56d5e..fe7a4e9da 100644
--- a/hicn-plugin/src/hicn_api.c
+++ b/hicn-plugin/src/hicn_api.c
@@ -392,7 +392,7 @@ vl_api_hicn_api_route_nhops_add_t_handler (vl_api_hicn_api_route_nhops_add_t
for (int i = 0; i < HICN_PARAM_FIB_ENTRY_NHOPS_MAX; i++)
{
- face_ids[i] = clib_net_to_host_u16 (mp->face_ids[i]);
+ face_ids[i] = clib_net_to_host_u32 (mp->face_ids[i]);
}
if ((face_ids == NULL) || (n_faces > HICN_PARAM_FIB_ENTRY_NHOPS_MAX))