summaryrefslogtreecommitdiffstats
path: root/src/vnet/l2/l2_api.c
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2018-09-19 04:07:02 -0700
committerDave Barach <openvpp@barachs.net>2018-09-19 12:22:35 +0000
commit7341b6d70f577556f703905836ef55cc3a11b520 (patch)
tree5cb4c4af310ec25ece195b0398cfd912b7d80bea /src/vnet/l2/l2_api.c
parent8023ad4c41090995c91f529a94519ffaa605d238 (diff)
L2-fib-dump: send 1 or 0 rather than flag value
Change-Id: I487b3b480347f60ffe3af4029adfb22b6700cea7 Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vnet/l2/l2_api.c')
-rw-r--r--src/vnet/l2/l2_api.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vnet/l2/l2_api.c b/src/vnet/l2/l2_api.c
index 088e490ff14..3a37938e915 100644
--- a/src/vnet/l2/l2_api.c
+++ b/src/vnet/l2/l2_api.c
@@ -142,9 +142,9 @@ send_l2fib_table_entry (vpe_api_main_t * am,
clib_memcpy (mp->mac, l2fe_key->fields.mac, 6);
mp->sw_if_index = ntohl (l2fe_res->fields.sw_if_index);
- mp->static_mac = l2fib_entry_result_is_set_STATIC (l2fe_res);
- mp->filter_mac = l2fib_entry_result_is_set_FILTER (l2fe_res);
- mp->bvi_mac = l2fib_entry_result_is_set_BVI (l2fe_res);
+ mp->static_mac = (l2fib_entry_result_is_set_STATIC (l2fe_res) ? 1 : 0);
+ mp->filter_mac = (l2fib_entry_result_is_set_FILTER (l2fe_res) ? 1 : 0);
+ mp->bvi_mac = (l2fib_entry_result_is_set_BVI (l2fe_res) ? 1 : 0);
mp->context = context;
vl_api_send_msg (reg, (u8 *) mp);