classify: forbid invalid match config
Forbid too long match to be configured. Type: fix Change-Id: Icfced0f86821d5febd6a3c81e1315bd9737498c0 Signed-off-by: Benoît Ganne <bganne@cisco.com>
This commit is contained in:

committed by
Damjan Marion

parent
f62a8c013c
commit
71a70d73f3
@ -775,6 +775,9 @@ vnet_classify_add_del_table (vnet_classify_main_t * cm,
|
||||
if (nbuckets == 0)
|
||||
return VNET_API_ERROR_INVALID_VALUE;
|
||||
|
||||
if (match < 1 || match > 5)
|
||||
return VNET_API_ERROR_INVALID_VALUE;
|
||||
|
||||
t = vnet_classify_new_table (cm, mask, nbuckets, memory_size,
|
||||
skip, match);
|
||||
t->next_table_index = next_table_index;
|
||||
|
Reference in New Issue
Block a user