]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
man: extensions: recent: Clarify default value of ip_list_hash_size
authorPhil Sutter <phil@nwl.cc>
Wed, 24 Apr 2024 21:09:39 +0000 (23:09 +0200)
committerPhil Sutter <phil@nwl.cc>
Wed, 12 Jun 2024 15:13:45 +0000 (17:13 +0200)
The default value of 0 is a bit confusing.

Reported-by: Fabio <pedretti.fabio@gmail.com>
Link: https://bugzilla.netfilter.org/show_bug.cgi?id=1745
Signed-off-by: Phil Sutter <phil@nwl.cc>
extensions/libxt_recent.man

index 419be2579594df1d53699d256cd3ca6df307fcdc..82537fab9846f45ecdd57e5846657bc06430903d 100644 (file)
@@ -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.