summaryrefslogtreecommitdiffstats
path: root/tests/shell
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2019-11-21 11:41:24 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2019-12-02 19:25:22 +0100
commitdd44081d91ceaead0a9730f1ab5c8041a4d905e2 (patch)
treed813dff15e184d52444e192c27195e6d129292ef /tests/shell
parent7e326d697ecf43ea029de5584e59701eb61ca87e (diff)
segtree: Fix add and delete of element in same batch
The commit this fixes accidentally broke a rather exotic use-case which is but used in set-simple.t of tests/monitor: | # nft 'add element t s { 22-25 }; delete element t s { 22-25 }' Since ranges are now checked for existence in userspace before delete command is submitted to kernel, the second command above was rejected because the range in question wasn't present in cache yet. Fix this by adding new interval set elements to cache after creating the batch job for them. Fixes: decc12ec2dc31 ("segtree: Check ranges when deleting elements") Signed-off-by: Phil Sutter <phil@nwl.cc> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/shell')
0 files changed, 0 insertions, 0 deletions