diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2024-07-03 16:29:26 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2024-07-05 00:10:47 +0200 |
commit | 551a4ad68b922fa6c942f5e79ac59f723a12e233 (patch) | |
tree | 97ee20a9e14fb42ece63e478a9eb80ed3b761421 /tests | |
parent | dc6950a80110d6e6f63bd6f5c308d202db698f46 (diff) |
intervals: fix element deletions with maps
Set element deletion in maps (including catchall elements) does not work.
# nft delete element ip x m { \* }
BUG: invalid range expression type catch-all set element
nft: src/expression.c:1472: range_expr_value_low: Assertion `0' failed.
Aborted
Call interval_expr_key() to fetch expr->left in the mapping but use the
expression that represents the mapping because it provides access to the
EXPR_F_REMOVE flags.
Moreover, assume maximum value for catchall expression by means of the
expr->len to reuse the existing code to check if the element to be
deleted really exists.
Fixes: 3e8d934e4f72 ("intervals: support to partial deletion with automerge")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions