From e09777d07b9d2237b35be09d69bdd2ec1d5648ca Mon Sep 17 00:00:00 2001 From: Alberto Compagno Date: Fri, 10 May 2019 09:15:17 +0200 Subject: [HICN-193] Fixed faceid convertion from network to host order Change-Id: Idf28a2ae624231481b03556665a7360388229c8a Signed-off-by: Alberto Compagno --- hicn-plugin/src/hicn_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hicn-plugin') 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)) -- cgit 1.2.3-korg