From 8f931a47b0fa58d5d33a792062650a42ff8bef70 Mon Sep 17 00:00:00 2001 From: Mohsin Kazmi Date: Thu, 8 Mar 2018 17:45:33 +0100 Subject: ACL: Fix the detail for ethertype whitelist Change-Id: Ie8b4effbd25e1e26b625d451ec059bac58a5a5a1 Signed-off-by: Mohsin Kazmi --- src/plugins/acl/acl.c | 4 ++-- src/plugins/acl/acl_test.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/plugins') diff --git a/src/plugins/acl/acl.c b/src/plugins/acl/acl.c index 5ab38ef6e56..1ad9ddffe29 100644 --- a/src/plugins/acl/acl.c +++ b/src/plugins/acl/acl.c @@ -2744,11 +2744,11 @@ send_acl_interface_etype_whitelist_details (acl_main_t * am, mp->n_input = n_input; for (i = 0; i < n_input; i++) { - mp->whitelist[i] = whitelist_in[i]; + mp->whitelist[i] = htons (whitelist_in[i]); } for (i = 0; i < n_output; i++) { - mp->whitelist[n_input + i] = whitelist_out[i]; + mp->whitelist[n_input + i] = htons (whitelist_out[i]); } clib_mem_set_heap (oldheap); vl_api_send_msg (reg, (u8 *) mp); diff --git a/src/plugins/acl/acl_test.c b/src/plugins/acl/acl_test.c index 1b565995308..2c0687d9e7d 100644 --- a/src/plugins/acl/acl_test.c +++ b/src/plugins/acl/acl_test.c @@ -167,7 +167,7 @@ static void vl_api_acl_interface_etype_whitelist_details_t_handler for(i=0; icount; i++) { if (i == mp->n_input) out = format(out, "\n output "); - out = format(out, "%04x ", mp->whitelist[i]); + out = format(out, "%04x ", ntohs(mp->whitelist[i])); } out = format(out, "\n"); clib_warning("%s", out); -- cgit 1.2.3-korg