aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Jones <thj@freebsd.org>2024-03-14 12:24:04 +0000
committerDamjan Marion <dmarion@0xa5.net>2024-04-09 15:14:54 +0000
commit5997a5db0a0098bc1c3362f41e3481a05d196904 (patch)
treee53395a1ada0a8ff36551d025ea90fbbe3d0b83e
parent7b899be710263dd334112f18db0f055625d9da5a (diff)
acl: Use clib_net_to_host rather than library bswap
Type: improvement Change-Id: I51345fb75843c67c6bf6a4c56380e1f0899c45b1 Signed-off-by: Tom Jones <thj@freebsd.org>
-rw-r--r--src/plugins/acl/acl_test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/acl/acl_test.c b/src/plugins/acl/acl_test.c
index 0c218687bdf..fddb3d532ff 100644
--- a/src/plugins/acl/acl_test.c
+++ b/src/plugins/acl/acl_test.c
@@ -157,9 +157,9 @@ static void vl_api_acl_plugin_get_conn_table_max_entries_reply_t_handler
(vl_api_acl_plugin_get_conn_table_max_entries_reply_t * mp)
{
vat_main_t * vam = acl_test_main.vat_main;
- clib_warning("\nConn table max entries: %d",
- __bswap_64(mp->conn_table_max_entries) );
- vam->result_ready = 1;
+ clib_warning ("\nConn table max entries: %d",
+ clib_net_to_host_u64 (mp->conn_table_max_entries));
+ vam->result_ready = 1;
}
static inline u8 *