diff options
author | Shwetha <shwethab@cisco.com> | 2016-10-13 01:46:19 +0100 |
---|---|---|
committer | Chris Luke <chris_luke@comcast.com> | 2016-10-21 18:14:29 +0000 |
commit | 047144853f05f2fd9f9dd0166d66cf52e641ba13 (patch) | |
tree | 3480ed7892762338e84877902081ed9d9314a2ff /plugins/ioam-plugin/ioam/lib-trace/trace_test.c | |
parent | 14fbdfc800345ce6b4f2a6d019f70b9a7d6f3ed9 (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_test.c')
-rw-r--r-- | plugins/ioam-plugin/ioam/lib-trace/trace_test.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/ioam-plugin/ioam/lib-trace/trace_test.c b/plugins/ioam-plugin/ioam/lib-trace/trace_test.c index dc3851bec16..8385582f438 100644 --- a/plugins/ioam-plugin/ioam/lib-trace/trace_test.c +++ b/plugins/ioam-plugin/ioam/lib-trace/trace_test.c @@ -136,7 +136,7 @@ api_trace_profile_add (vat_main_t * vam) int rv = 0; u32 node_id = 0; u32 app_data = 0; - u32 trace_tsp = 0; + u8 trace_tsp = 0; f64 timeout; while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT) @@ -160,9 +160,9 @@ api_trace_profile_add (vat_main_t * vam) M (TRACE_PROFILE_ADD, trace_profile_add); mp->trace_type = trace_type; - mp->trace_tsp = ntohl (trace_tsp); - mp->node_id = ntohl (node_id); - mp->app_data = ntohl (app_data); + mp->trace_tsp = trace_tsp; + mp->node_id = htonl (node_id); + mp->app_data = htonl (app_data); mp->num_elts = num_elts; S; @@ -231,7 +231,7 @@ vat_plugin_register (vat_main_t * vam) sm->vat_main = vam; - name = format (0, "trace_%08x%c", api_version, 0); + name = format (0, "ioam_trace_%08x%c", api_version, 0); sm->msg_id_base = vl_client_get_first_plugin_msg_id ((char *) name); if (sm->msg_id_base != (u16) ~ 0) |