aboutsummaryrefslogtreecommitdiffstats
path: root/src/vat
diff options
context:
space:
mode:
authorJuraj Sloboda <jsloboda@cisco.com>2018-06-12 14:20:49 +0200
committerOle Trøan <otroan@employees.org>2018-08-09 07:34:25 +0000
commit7528245795947a7340d3537c6989c0f6a05933f4 (patch)
tree53ea00ccfbcff9d4f543bb215a391f87aaf2e405 /src/vat
parent40e6bdfff72fda7c0c51648686812f34fe8024ed (diff)
Fix "Old Style VLA" build warnings
Change-Id: I8d42f6ed58ec34298d41edcb3d783e7e9ded3eec Signed-off-by: Juraj Sloboda <jsloboda@cisco.com>
Diffstat (limited to 'src/vat')
-rw-r--r--src/vat/api_format.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vat/api_format.c b/src/vat/api_format.c
index 647277315e8..8be83ba7cae 100644
--- a/src/vat/api_format.c
+++ b/src/vat/api_format.c
@@ -11460,6 +11460,7 @@ api_classify_add_del_table (vat_main_t * vam)
mp->miss_next_index = ntohl (miss_next_index);
mp->current_data_flag = ntohl (current_data_flag);
mp->current_data_offset = ntohl (current_data_offset);
+ mp->mask_len = ntohl (vec_len (mask));
clib_memcpy (mp->mask, mask, vec_len (mask));
vec_free (mask);
@@ -12011,6 +12012,7 @@ api_classify_add_del_session (vat_main_t * vam)
mp->advance = ntohl (advance);
mp->action = action;
mp->metadata = ntohl (metadata);
+ mp->match_len = ntohl (vec_len (match));
clib_memcpy (mp->match, match, vec_len (match));
vec_free (match);