summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/sets/0053echo_0
Commit message (Collapse)AuthorAgeFilesLines
* evaluate: remove table from cache on delete tablePablo Neira Ayuso2020-07-291-0/+16
The following ruleset crashes nft if loaded twice, via nft -ef: add table inet filter delete table inet filter table inet filter { chain input { type filter hook input priority filter; policy drop; iifname { "eth0" } counter accept } } If the table contains anonymous sets, such as __set0, then delete + add table might result in nft reusing the existing stale __set0 in the cache. The problem is that nft gets confused and it reuses the existing stale __set0 instead of the new anonymous set __set0 with the same name. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>