summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/optimizations/merge_stmts_vmap
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2022-03-03 13:06:59 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2022-03-03 15:54:27 +0100
commit3de1dbd2da8a76ddd2d1d9fcd7e469eb848f0d00 (patch)
treee16709ed82e5875694cbbbd7f69debdeba7a254d /tests/shell/testcases/optimizations/merge_stmts_vmap
parent99eb46969f3d7ccd37899f2755055fe7511c46b0 (diff)
optimize: more robust statement merge with vmap
Check expressions that are expected on the rhs rather than using a catch-all default case. Actually, lists and sets need to be their own routine, because this needs the set element key expression to be merged. This is a follow up to 99eb46969f3d ("optimize: fix vmap with anonymous sets"). Fixes: 1542082e259b ("optimize: merge same selector with different verdict into verdict map") Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/shell/testcases/optimizations/merge_stmts_vmap')
-rwxr-xr-xtests/shell/testcases/optimizations/merge_stmts_vmap1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/shell/testcases/optimizations/merge_stmts_vmap b/tests/shell/testcases/optimizations/merge_stmts_vmap
index 6511c7b2..79350076 100755
--- a/tests/shell/testcases/optimizations/merge_stmts_vmap
+++ b/tests/shell/testcases/optimizations/merge_stmts_vmap
@@ -10,6 +10,7 @@ RULESET="table ip x {
chain z {
tcp dport { 1 } accept
tcp dport 2-3 drop
+ tcp dport 4 accept
}
}"