diff options
author | Mauro Sardara <msardara@cisco.com> | 2023-01-23 16:24:35 +0000 |
---|---|---|
committer | Mauro Sardara <msardara@cisco.com> | 2023-01-23 17:22:08 +0000 |
commit | 1d240b22d5f797372e48b81e51fa72c92f843e08 (patch) | |
tree | a98e1c764c9ca5df2c525a9db803afd31a830edd /ctrl/libhicnctrl | |
parent | c33cdb0fe6a1b97e16e9a3a92d9b084115e1b278 (diff) |
fix(libhicnctrl): do not swap bytes when using vapi
Signed-off-by: Mauro Sardara <msardara@cisco.com>
Change-Id: If1666dd5c31c662570ed10991b3d42d6095693ff
Diffstat (limited to 'ctrl/libhicnctrl')
-rw-r--r-- | ctrl/libhicnctrl/src/modules/hicn_plugin/strategy.c | 2 |
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); |