From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Slavko <linux@slavino.sk>
Cc: netfilter@vger.kernel.org
Subject: Re: [ANNOUNCE] nftables 1.1.2 release
Date: Tue, 15 Apr 2025 17:54:15 +0200 [thread overview]
Message-ID: <Z_6BJ81Iw1uS7zuY@calendula> (raw)
In-Reply-To: <01529A93-9DCA-4F48-8F80-C4CB32A11B43@slavino.sk>
On Tue, Apr 15, 2025 at 03:22:52PM +0000, Slavko wrote:
> On 15. apríla 2025 14:39:20 UTC, Pablo Neira Ayuso <pablo@netfilter.org> wrote:
>
> >https://git.netfilter.org/nftables/commit/?id=da0bac050c8b2588242727f9915a1ea8bc48ceb2
>
> Thanks, but i still do not understand, consider this set:
>
> table inet filter {
> set testset {
> type ipv4_addr
> flags interval,timeout
> auto-merge
> timeout 1m
> }
> }
>
> Now i add one network, and one or two seconds later second
> network::
>
> nft add element inet filter testset "{ 192.168.1.0/24 }"
> sleep 1
> nft add element inet filter testset "{ 192.168.2.0/24 }"
>
> Currently (1.0.6), they are merged with timeout reset::
>
> table inet filter {
> set testset {
> ...
> elements = { 192.168.1.0-192.168.2.255 expires XY }
> }
> }
>
> What will be result with new behavior? Will be both (not merged)
> in set, each with different timeout/expires?
After this update, two different intervals with different timeouts are
added.
> Another example is to add subnet of existing element, currently
> the new subnet is not added (or is merged into existing without
> timeout change). How it will work with this new behavior? Will be
> both in set? Or error happens? Or something other?
After this update, with subset, an error will be reported if the
interval overlaps.
next prev parent reply other threads:[~2025-04-15 15:54 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-14 17:49 [ANNOUNCE] nftables 1.1.2 release Pablo Neira Ayuso
2025-04-14 20:19 ` Jan Engelhardt
2025-04-14 20:32 ` Pablo Neira Ayuso
2025-04-15 7:58 ` Slavko
2025-04-15 14:39 ` Pablo Neira Ayuso
2025-04-15 15:22 ` Slavko
2025-04-15 15:54 ` Pablo Neira Ayuso [this message]
2025-04-15 16:19 ` Slavko
2025-04-15 16:28 ` Pablo Neira Ayuso
2025-04-16 10:02 ` Slavko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Z_6BJ81Iw1uS7zuY@calendula \
--to=pablo@netfilter.org \
--cc=linux@slavino.sk \
--cc=netfilter@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox