From fce561226f0941bd144543741fe1f21326c01b87 Mon Sep 17 00:00:00 2001 From: Nathan Moos Date: Fri, 15 Jan 2021 13:47:16 -0800 Subject: [PATCH] acl: replace glibc internal __bswap_64 with clib Type: fix In order to build VPP as a package for an embedded Yocto-based distribution, this patch replaces the use of the glibc internal __bswap_64 function with the VPP function clib_net_to_host_u64, which is provided by vppinfra. Change-Id: I3ecc8525861dc3441bce2b51aa4c80f9a62d3051 Signed-off-by: Nathan Moos --- src/plugins/acl/acl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/acl/acl.c b/src/plugins/acl/acl.c index 3fbfcf692ad..ba4243c6926 100644 --- a/src/plugins/acl/acl.c +++ b/src/plugins/acl/acl.c @@ -216,7 +216,8 @@ static void ntohs (VL_API_ACL_PLUGIN_GET_CONN_TABLE_MAX_ENTRIES_REPLY + am->msg_id_base); rmp->context = mp->context; - rmp->conn_table_max_entries = __bswap_64 (am->fa_conn_table_max_entries); + rmp->conn_table_max_entries = + clib_net_to_host_u64 (am->fa_conn_table_max_entries); vl_api_send_msg (rp, (u8 *) rmp); } -- 2.16.6