summaryrefslogtreecommitdiffstats
path: root/hicn-plugin
diff options
context:
space:
mode:
authorAlberto Compagno <acompagn+fdio@cisco.com>2020-01-22 09:31:10 +0000
committerGerrit Code Review <gerrit@fd.io>2020-01-22 09:31:10 +0000
commit6a371e0002ced0f287f96ddb440cc6f1c3507385 (patch)
tree0070eccb33f740c2c8758591a50c7cf0b3e87819 /hicn-plugin
parent731a7efa3fa58d0fee89c93d613e11d8b4108c89 (diff)
parent7b9da7e6f587dbcd93620b0b41591e1f5003369b (diff)
Merge "[HICN-486] Writing face type in network order in the face_detail binary api message"
Diffstat (limited to 'hicn-plugin')
-rw-r--r--hicn-plugin/src/hicn_api.c4
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));
}