From: Phil Sutter <phil@nwl.cc>
To: netfilter-devel@vger.kernel.org
Subject: [iptables PATCH] man: extensions: recent: Clarify default value of ip_list_hash_size
Date: Wed, 12 Jun 2024 14:41:07 +0200 [thread overview]
Message-ID: <20240612124109.19837-1-phil@nwl.cc> (raw)
The default value of 0 is a bit confusing.
Signed-off-by: Phil Sutter <phil@nwl.cc>
---
extensions/libxt_recent.man | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/extensions/libxt_recent.man b/extensions/libxt_recent.man
index 419be2579594d..82537fab9846f 100644
--- a/extensions/libxt_recent.man
+++ b/extensions/libxt_recent.man
@@ -97,7 +97,9 @@ Number of addresses remembered per table.
Number of packets per address remembered.
.TP
\fBip_list_hash_size\fP=\fI0\fP
-Hash table size. 0 means to calculate it based on ip_list_tot, default: 512.
+Hash table size. 0 means to calculate it based on ip_list_tot by rounding it up
+to the next power of two (with \fBip_list_tot\fP defaulting to \fI100\fP,
+\fBip_list_hash_size\fP will calculate to \fI128\fP by default).
.TP
\fBip_list_perms\fP=\fI0644\fP
Permissions for /proc/net/xt_recent/* files.
--
2.43.0
next reply other threads:[~2024-06-12 13:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-12 12:41 Phil Sutter [this message]
2024-06-12 20:44 ` [iptables PATCH] man: extensions: recent: Clarify default value of ip_list_hash_size Phil Sutter
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=20240612124109.19837-1-phil@nwl.cc \
--to=phil@nwl.cc \
--cc=netfilter-devel@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;
as well as URLs for NNTP newsgroup(s).