aboutsummaryrefslogtreecommitdiffstats
path: root/src/vat
diff options
context:
space:
mode:
authorMarek Gradzki <mgradzki@cisco.com>2017-03-21 11:51:54 +0100
committerOle Trøan <otroan@employees.org>2017-03-22 07:25:16 +0000
commit59ed490ed7dd7376c3d3acabc4932133a4899d69 (patch)
treee78a4e900d95a3f77dbfd5665c2f1a7398942163 /src/vat
parentcacdea3bb9be44a468795c04bb468d2cfb321d76 (diff)
policer: fix byte ordering in policer_details msg
Change-Id: Id53131e8cd32bfd35739a7bd7cdbadf3a9f4d941 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'src/vat')
-rw-r--r--src/vat/api_format.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vat/api_format.c b/src/vat/api_format.c
index d34a97f65cb..37b7f93e879 100644
--- a/src/vat/api_format.c
+++ b/src/vat/api_format.c
@@ -3630,8 +3630,8 @@ static void vl_api_policer_details_t_handler_json
vat_json_object_add_string_copy (node, "name", mp->name);
vat_json_object_add_uint (node, "cir", ntohl (mp->cir));
vat_json_object_add_uint (node, "eir", ntohl (mp->eir));
- vat_json_object_add_uint (node, "cb", ntohl (mp->cb));
- vat_json_object_add_uint (node, "eb", ntohl (mp->eb));
+ vat_json_object_add_uint (node, "cb", clib_net_to_host_u64 (mp->cb));
+ vat_json_object_add_uint (node, "eb", clib_net_to_host_u64 (mp->eb));
vat_json_object_add_string_copy (node, "rate_type", rate_type_str);
vat_json_object_add_string_copy (node, "round_type", round_type_str);
vat_json_object_add_string_copy (node, "type", type_str);