summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/optimizations/not_mergeable
Commit message (Collapse)AuthorAgeFilesLines
* evaluate: bogus datatype assertion in binary operation evaluationPablo Neira Ayuso2022-10-061-0/+6
| | | | | | | | | | Use datatype_equal(), otherwise dynamically allocated datatype fails to fulfill the datatype pointer check, triggering the assertion: nft: evaluate.c:1249: expr_evaluate_binop: Assertion `expr_basetype(left) == expr_basetype(right)' failed. Closes: https://bugzilla.netfilter.org/show_bug.cgi?id=1636 Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* optimize: check for mergeable rulesPablo Neira Ayuso2022-08-111-0/+16
Rules that are equal need to have at least one mergeable statement. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>