From 0f8a96c084dbce006cb03a6a27b2e504fb45b11e Mon Sep 17 00:00:00 2001 From: Gabriel Ganne Date: Tue, 14 Nov 2017 14:43:34 +0100 Subject: bier - fix node table declaration Need to be NULL-terminated. Fix declarations of: - bier_disp_table_bier_nodes - bier_table_mpls_nodes - bier_fmask_mpls_nodes This was crashing during make test on aarch64 platform: During the API call to bier_table_add_del, the crash happens during dpo_default_get_next_node(). Change-Id: I16207ba38fc9ab65bad787878c4608740c312257 Signed-off-by: Gabriel Ganne --- src/vnet/bier/bier_disp_table.c | 3 ++- src/vnet/bier/bier_fmask.c | 3 ++- src/vnet/bier/bier_table.c | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/vnet/bier/bier_disp_table.c b/src/vnet/bier/bier_disp_table.c index 5caf86d3705..b2541dacc4d 100644 --- a/src/vnet/bier/bier_disp_table.c +++ b/src/vnet/bier/bier_disp_table.c @@ -328,7 +328,8 @@ const static dpo_vft_t bier_disp_table_dpo_vft = { const static char *const bier_disp_table_bier_nodes[] = { - "bier-disp-lookup" + "bier-disp-lookup", + NULL }; const static char * const * const bier_disp_table_nodes[DPO_PROTO_NUM] = diff --git a/src/vnet/bier/bier_fmask.c b/src/vnet/bier/bier_fmask.c index e30425cda4e..32bece0c665 100644 --- a/src/vnet/bier/bier_fmask.c +++ b/src/vnet/bier/bier_fmask.c @@ -465,7 +465,8 @@ const static dpo_vft_t bier_fmask_dpo_vft = { const static char *const bier_fmask_mpls_nodes[] = { - "bier-output" + "bier-output", + NULL }; const static char * const * const bier_fmask_nodes[DPO_PROTO_NUM] = { diff --git a/src/vnet/bier/bier_table.c b/src/vnet/bier/bier_table.c index 74a09910601..191ac01e373 100644 --- a/src/vnet/bier/bier_table.c +++ b/src/vnet/bier/bier_table.c @@ -393,7 +393,8 @@ const static dpo_vft_t bier_table_dpo_vft = { const static char *const bier_table_mpls_nodes[] = { - "bier-input" + "bier-input", + NULL }; const static char * const * const bier_table_nodes[DPO_PROTO_NUM] = { -- cgit 1.2.3-korg