Thread (7 messages) flat view 7 messages, 2 authors, 2026-08-11

Re: [nf_tables] pipapo: inserting an interval that strictly contains an existing one is accepted; rbtree rejects the same insert

From: Florian Westphal <fw@strlen.de>
Date: 2026-08-11 10:49:23
Also in: netfilter-devel

Wei Fang [off-list ref] wrote:
On Tue, Aug 11, 2026 at 6:20 PM Florian Westphal [off-list ref] wrote:
quoted
Wei Fang [off-list ref] wrote:
quoted
-------------------
expected: both backends reject the overlapping insert (-EEXIST)
Why?
Maybe I was too terse.  Default behaviour for interval sets (Rbtree) is
auto-merge: if we have 10.0.0.1-10.0.0.5, add for 10.0.0.2 will work
(no-op).

Behaviour for pipapo is to accept a new element that is fully contained
in an existing entry (no add takes place).

Sure, it could be changed to reject but that would alter user-visible
behaviour, so I would expect complaints.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help