classify: Fix a couple bugs in 'pcap filter' command. 84/28984/4
authorJon Loeliger <jdl@netgate.com>
Mon, 21 Sep 2020 21:48:54 +0000 (16:48 -0500)
committerMatthew Smith <mgsmith@netgate.com>
Thu, 1 Oct 2020 18:06:22 +0000 (18:06 +0000)
commit362c666df000e78589ba966a42edfa1ef0ee288e
tree52db2270dd65743cd448357663880c850c6fc6bd
parent459a0c4e3be1473c4c2b93811280c738e60d0524
classify: Fix a couple bugs in 'pcap filter' command.

- Assert a valid set prior to first use.
- Sort tables by mask prior to selecting first table
- Use actual table indices and not loop index when linking tables

Type: fix

Change-Id: I9c61c8b7fe97c38faed8f2fc1792d7232799f580
Signed-off-by: Jon Loeliger <jdl@netgate.com>
src/vnet/classify/vnet_classify.c