* [iptables PATCH] extensions: recent: New kernels support 999 hits
@ 2024-07-20 0:26 Phil Sutter
2024-07-27 12:34 ` Phil Sutter
0 siblings, 1 reply; 2+ messages in thread
From: Phil Sutter @ 2024-07-20 0:26 UTC (permalink / raw)
To: netfilter-devel
Since kernel commit f4ebd03496f6 ("netfilter: xt_recent: Lift
restrictions on max hitcount value"), the max supported hitcount value
has increased significantly. Adjust the test to use a value which fails
on old as well as new kernels.
Signed-off-by: Phil Sutter <phil@nwl.cc>
---
extensions/libxt_recent.t | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/extensions/libxt_recent.t b/extensions/libxt_recent.t
index cf23aabc6e63b..3b0dd9fa29c94 100644
--- a/extensions/libxt_recent.t
+++ b/extensions/libxt_recent.t
@@ -4,7 +4,7 @@
-m recent --rcheck --hitcount 12 --name foo --mask 255.255.255.255 --rsource;=;OK
-m recent --update --rttl;-m recent --update --rttl --name DEFAULT --mask 255.255.255.255 --rsource;OK
-m recent --set --rttl;;FAIL
--m recent --rcheck --hitcount 999 --name foo --mask 255.255.255.255 --rsource;;FAIL
+-m recent --rcheck --hitcount 65536 --name foo --mask 255.255.255.255 --rsource;;FAIL
# nonsensical, but all should load successfully:
-m recent --rcheck --hitcount 3 --name foo --mask 255.255.255.255 --rsource -m recent --rcheck --hitcount 4 --name foo --mask 255.255.255.255 --rsource;=;OK
-m recent --rcheck --hitcount 4 --name foo --mask 255.255.255.255 --rsource -m recent --rcheck --hitcount 4 --name foo --mask 255.255.255.255 --rsource;=;OK
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [iptables PATCH] extensions: recent: New kernels support 999 hits
2024-07-20 0:26 [iptables PATCH] extensions: recent: New kernels support 999 hits Phil Sutter
@ 2024-07-27 12:34 ` Phil Sutter
0 siblings, 0 replies; 2+ messages in thread
From: Phil Sutter @ 2024-07-27 12:34 UTC (permalink / raw)
To: netfilter-devel
On Sat, Jul 20, 2024 at 02:26:27AM +0200, Phil Sutter wrote:
> Since kernel commit f4ebd03496f6 ("netfilter: xt_recent: Lift
> restrictions on max hitcount value"), the max supported hitcount value
> has increased significantly. Adjust the test to use a value which fails
> on old as well as new kernels.
>
> Signed-off-by: Phil Sutter <phil@nwl.cc>
Also applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-07-27 12:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-20 0:26 [iptables PATCH] extensions: recent: New kernels support 999 hits Phil Sutter
2024-07-27 12:34 ` Phil Sutter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox