summaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2017-10-26 08:16:59 -0700
committerDave Wallace <dwallacelf@gmail.com>2017-10-26 16:13:25 +0000
commit9a9adb2db318ca8043a7f337fedb020137d56610 (patch)
treed785aea3732074176bb3b7ee5f718cba8d9e72b3 /src/vnet
parentd71e0fc2945d03ce628de979eca8ba8c82febf63 (diff)
session: swap appns secret to host byte order
Change-Id: I355433e0f07b328c441ed642705b31ca5157fabe Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet')
-rwxr-xr-xsrc/vnet/session/session_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/session/session_api.c b/src/vnet/session/session_api.c
index e8fa8aa4804..181312cc952 100755
--- a/src/vnet/session/session_api.c
+++ b/src/vnet/session/session_api.c
@@ -761,7 +761,7 @@ vl_api_app_namespace_add_del_t_handler (vl_api_app_namespace_add_del_t * mp)
clib_memcpy (ns_id, mp->namespace_id, mp->namespace_id_len);
vnet_app_namespace_add_del_args_t args = {
.ns_id = ns_id,
- .secret = mp->secret,
+ .secret = clib_net_to_host_u64 (mp->secret),
.sw_if_index = clib_net_to_host_u32 (mp->sw_if_index),
.ip4_fib_id = clib_net_to_host_u32 (mp->ip4_fib_id),
.ip6_fib_id = clib_net_to_host_u32 (mp->ip6_fib_id),