netfilter.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* expires larger than timeout causes error
@ 2024-12-29 10:00 lilydjwg
  2024-12-29 13:18 ` Harshit Mogalapalli
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: lilydjwg @ 2024-12-29 10:00 UTC (permalink / raw)
  To: netfilter

I have an IPv4 set with timeout 2d, but update its elements to 4d when
a rule matches. It was fine until kernel is updated to 6.12.6 or 6.12.7.
E.g. the following snippet gives an error when importing:

table inet blocker {
        set spam_ips {
                type ipv4_addr
                size 65535
                flags dynamic,timeout
                timeout 2d
                elements = { 1.2.3.4 expires 3d }
        }
}

a.nft:7:16-22: Error: Could not process rule: Numerical result out of range
                elements = { 1.2.3.4 expires 3d }
                             ^^^^^^^

kernel 6.10.6 worked just fine. nftables cli v1.1.1.

Despite I can't import the set, existing elements can still be updated
to timeout more that 2d.

A new bug? Or a new limitation?

-- 
Best regards,
lilydjwg

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-12-30 22:17 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-29 10:00 expires larger than timeout causes error lilydjwg
2024-12-29 13:18 ` Harshit Mogalapalli
2024-12-29 17:01 ` Reindl Harald
2024-12-30 15:19   ` lilydjwg
2024-12-30 15:40     ` Reindl Harald
2024-12-30 22:16       ` Kerin Millar
2024-12-30 10:57 ` Pablo Neira Ayuso
2024-12-30 14:21   ` Kerin Millar
2024-12-30 15:26   ` lilydjwg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).