summaryrefslogtreecommitdiffstats
path: root/src/vnet/session/session_api.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2018-11-20 16:52:49 -0800
committerDamjan Marion <dmarion@me.com>2018-11-21 09:05:45 +0000
commit349f8caa054a656973e0b841c3ece75561ebf2f7 (patch)
tree2892ada1ef62f7bd1d7e5125676afae1944e7151 /src/vnet/session/session_api.c
parentc1f5a4336036e3f2d1f6746f39ce610312254272 (diff)
session: improve app cli
Change-Id: I766c0b2bfd5f781e4fe5df615a7ecd139b7d2cc4 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session/session_api.c')
-rwxr-xr-xsrc/vnet/session/session_api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/session/session_api.c b/src/vnet/session/session_api.c
index d960792ee86..7d3ff31031d 100755
--- a/src/vnet/session/session_api.c
+++ b/src/vnet/session/session_api.c
@@ -1349,7 +1349,7 @@ vl_api_app_worker_add_del_t_handler (vl_api_app_worker_add_del_t * mp)
vnet_app_worker_add_del_args_t args = {
.app_index = app->app_index,
- .wrk_index = clib_net_to_host_u32 (mp->wrk_index),
+ .wrk_map_index = clib_net_to_host_u32 (mp->wrk_index),
.api_client_index = mp->client_index,
.is_add = mp->is_add
};
@@ -1382,7 +1382,7 @@ vl_api_app_worker_add_del_t_handler (vl_api_app_worker_add_del_t * mp)
done:
REPLY_MACRO2 (VL_API_APP_WORKER_ADD_DEL_REPLY, ({
rmp->is_add = mp->is_add;
- rmp->wrk_index = clib_host_to_net_u32 (args.wrk_index);
+ rmp->wrk_index = clib_host_to_net_u32 (args.wrk_map_index);
if (!rv && mp->is_add)
{
if (vec_len (args.segment->name))