aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Sardara <msardara@cisco.com>2023-01-23 16:24:35 +0000
committerMauro Sardara <msardara@cisco.com>2023-01-23 16:55:54 +0000
commit10907c6d1e5b77e61e06d609cf2e7c630632eb93 (patch)
treee4a20f31653f22abc676558bb4f5da8d4177dfd4
parent677eedc91dc5c048ed94fb9bb5d0074f8712e476 (diff)
fix(libhicnctrl): do not swap bytes when using vapi
Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: If1666dd5c31c662570ed10991b3d42d6095693ff
-rw-r--r--ctrl/libhicnctrl/src/modules/hicn_plugin/strategy.c2
1 files changed, 1 insertions, 1 deletions
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);