From 7b9da7e6f587dbcd93620b0b41591e1f5003369b Mon Sep 17 00:00:00 2001 From: Alberto Compagno Date: Tue, 21 Jan 2020 18:23:03 +0100 Subject: [HICN-486] Writing face type in network order in the face_detail binary api message Change-Id: I9b65c61a9613b942aa4b2417460d6c6a9f2f261a Signed-off-by: Alberto Compagno --- hicn-plugin/src/hicn_api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hicn-plugin/src') diff --git a/hicn-plugin/src/hicn_api.c b/hicn-plugin/src/hicn_api.c index 806de2b4e..639840647 100644 --- a/hicn-plugin/src/hicn_api.c +++ b/hicn-plugin/src/hicn_api.c @@ -474,12 +474,12 @@ send_faces_details (vl_api_registration_t * reg, if (face->shared.face_type == hicn_face_ip_type) { - mp->type = IP_FACE; + mp->type = clib_host_to_net_u32(IP_FACE); send_face_ip_details (face, &(mp->face.ip)); } else if (face->shared.face_type == hicn_face_udp_type) { - mp->type = UDP_FACE; + mp->type = clib_host_to_net_u32(UDP_FACE); send_face_udp_details (face, &(mp->face.udp)); } -- cgit 1.2.3-korg