diff options
author | Alberto Compagno <acompagn+fdio@cisco.com> | 2020-01-21 18:23:03 +0100 |
---|---|---|
committer | Alberto Compagno <acompagn+fdio@cisco.com> | 2020-01-21 18:23:03 +0100 |
commit | 7b9da7e6f587dbcd93620b0b41591e1f5003369b (patch) | |
tree | 60ca2f3356c92d5912f9034da657cd082a4ce5ec /hicn-plugin | |
parent | bf366088b56e7f2e793e7026d9c655e26fe4a67a (diff) |
[HICN-486] Writing face type in network order in the face_detail binary api message
Change-Id: I9b65c61a9613b942aa4b2417460d6c6a9f2f261a
Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
Diffstat (limited to 'hicn-plugin')
-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 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)); } |