From 10907c6d1e5b77e61e06d609cf2e7c630632eb93 Mon Sep 17 00:00:00 2001 From: Mauro Sardara Date: Mon, 23 Jan 2023 16:24:35 +0000 Subject: fix(libhicnctrl): do not swap bytes when using vapi Signed-off-by: Mauro Sardara Change-Id: If1666dd5c31c662570ed10991b3d42d6095693ff --- ctrl/libhicnctrl/src/modules/hicn_plugin/strategy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctrl/libhicnctrl/src/modules/hicn_plugin/strategy.c b/ctrl/libhicnctrl/src/modules/hicn_plugin/strategy.c index f8f6536ff..17d29a1d7 100644 --- a/ctrl/libhicnctrl/src/modules/hicn_plugin/strategy.c +++ b/ctrl/libhicnctrl/src/modules/hicn_plugin/strategy.c @@ -82,7 +82,7 @@ static int _vpp_strategy_set(hc_sock_vpp_data_t *s, vapi_alloc_hicn_api_strategy_set(s->g_vapi_ctx_instance); // Fill it - msg->payload.strategy_id = clib_host_to_net_u32(strategy_id); + msg->payload.strategy_id = strategy_id; ret = _ip_prefix_encode(&strategy->address, strategy->len, strategy->family, &msg->payload.prefix); -- cgit 1.2.3-korg