summaryrefslogtreecommitdiffstats
path: root/plugins/ioam-plugin/ioam/lib-trace/trace_api.c
diff options
context:
space:
mode:
authorShwetha <shwethab@cisco.com>2016-10-13 01:46:19 +0100
committerChris Luke <chris_luke@comcast.com>2016-10-21 18:14:29 +0000
commit047144853f05f2fd9f9dd0166d66cf52e641ba13 (patch)
tree3480ed7892762338e84877902081ed9d9314a2ff /plugins/ioam-plugin/ioam/lib-trace/trace_api.c
parent14fbdfc800345ce6b4f2a6d019f70b9a7d6f3ed9 (diff)
Java api generation for ioam trace plugin
Makefile, configure, jvpp changes follow snat plugin jvpp Fixes trace api handling for endianess Change-Id: Id5c950ed3c85d5e0dc28ba31b580987baa1b133f Signed-off-by: Shwetha <shwethab@cisco.com>
Diffstat (limited to 'plugins/ioam-plugin/ioam/lib-trace/trace_api.c')
-rw-r--r--plugins/ioam-plugin/ioam/lib-trace/trace_api.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/ioam-plugin/ioam/lib-trace/trace_api.c b/plugins/ioam-plugin/ioam/lib-trace/trace_api.c
index 1b8ad3cc0d6..b98e65fb320 100644
--- a/plugins/ioam-plugin/ioam/lib-trace/trace_api.c
+++ b/plugins/ioam-plugin/ioam/lib-trace/trace_api.c
@@ -112,7 +112,8 @@ static void vl_api_trace_profile_add_t_handler
{
rv =
trace_profile_create (profile, mp->trace_type, mp->num_elts,
- mp->trace_tsp, mp->node_id, mp->app_data);
+ mp->trace_tsp, ntohl (mp->node_id),
+ ntohl (mp->app_data));
if (rv != 0)
goto ERROROUT;
}
@@ -186,7 +187,7 @@ trace_init (vlib_main_t * vm)
bzero (sm, sizeof (trace_main));
(void) trace_util_init ();
- name = format (0, "trace_%08x%c", api_version, 0);
+ name = format (0, "ioam_trace_%08x%c", api_version, 0);
/* Ask for a correctly-sized block of API message decode slots */
sm->msg_id_base = vl_msg_api_get_msg_ids