diff options
author | Gabriel Ganne <gabriel.ganne@enea.com> | 2017-11-14 14:43:34 +0100 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2017-11-14 16:25:35 +0000 |
commit | 0f8a96c084dbce006cb03a6a27b2e504fb45b11e (patch) | |
tree | c3760ce4048b821fd799bbc5405cb1cecf257206 /src/vnet/bier | |
parent | 156e5caeecb5e60d283d97d61f41d64c1228171d (diff) |
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 <gabriel.ganne@enea.com>
Diffstat (limited to 'src/vnet/bier')
-rw-r--r-- | src/vnet/bier/bier_disp_table.c | 3 | ||||
-rw-r--r-- | src/vnet/bier/bier_fmask.c | 3 | ||||
-rw-r--r-- | src/vnet/bier/bier_table.c | 3 |
3 files changed, 6 insertions, 3 deletions
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] = { |