aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet
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/vnet
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/vnet')
-rw-r--r--src/vnet/policer/policer_api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/policer/policer_api.c b/src/vnet/policer/policer_api.c
index fb5f08b890d..67fb9a4e2b9 100644
--- a/src/vnet/policer/policer_api.c
+++ b/src/vnet/policer/policer_api.c
@@ -105,8 +105,8 @@ send_policer_details (u8 * name,
mp->context = context;
mp->cir = htonl (config->rb.kbps.cir_kbps);
mp->eir = htonl (config->rb.kbps.eir_kbps);
- mp->cb = htonl (config->rb.kbps.cb_bytes);
- mp->eb = htonl (config->rb.kbps.eb_bytes);
+ mp->cb = clib_host_to_net_u64 (config->rb.kbps.cb_bytes);
+ mp->eb = clib_host_to_net_u64 (config->rb.kbps.eb_bytes);
mp->rate_type = config->rate_type;
mp->round_type = config->rnd_type;
mp->type = config->rfc;