summaryrefslogtreecommitdiffstats
path: root/src/plugins/acl/acl.c
diff options
context:
space:
mode:
authorNathan Moos <nmoos@cisco.com>2021-01-15 13:47:16 -0800
committerFlorin Coras <florin.coras@gmail.com>2021-01-20 18:11:39 +0000
commitfce561226f0941bd144543741fe1f21326c01b87 (patch)
treeff9a8d7219f887e37d3032e2b5a4665ccc22cde1 /src/plugins/acl/acl.c
parentacaee3d36e141b096ff0f04ca213283f217ca173 (diff)
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 <nmoos@cisco.com>
Diffstat (limited to 'src/plugins/acl/acl.c')
-rw-r--r--src/plugins/acl/acl.c3
1 files changed, 2 insertions, 1 deletions
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);
}