Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177965648
D62029.1795669471.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D62029.1795669471.diff
View Options
diff --git a/sbin/ipfw/ipfw.8 b/sbin/ipfw/ipfw.8
--- a/sbin/ipfw/ipfw.8
+++ b/sbin/ipfw/ipfw.8
@@ -1,5 +1,5 @@
.\"
-.Dd September 9, 2026
+.Dd November 24, 2026
.Dt IPFW 8
.Os
.Sh NAME
@@ -1069,11 +1069,33 @@
keyword with a skipto for a
.Em computed
skipto.
-Skipto may work either in O(log(N)) or in O(1) depending
-on amount of memory and/or sysctl variables.
-See the
-.Sx SYSCTL VARIABLES
-section for more details.
+.Pp
+The target rule of a
+.Cm skipto
+or
+.Cm call
+action is found with a binary search of the ruleset, in O(log(N)) time.
+For a fixed
+.Ar number
+the result is remembered until the ruleset changes, but a computed
+target is looked up for every packet.
+The
+.Nm
+.Cm enable skipto_cache
+command enables the skipto cache, a table indexed by rule number that
+finds the target in O(1) time.
+The cache is disabled by default, and
+.Nm
+.Cm disable skipto_cache
+turns it off again.
+The setting is per
+.Xr VNET 9
+and its state is shown by the
+.Va net.inet.ip.fw.skipto_cache
+variable.
+The cache takes 512 KB of kernel memory in each
+.Xr VNET 9 ,
+which is allocated even while the cache is disabled.
.It Cm call Ar number | tablearg
The current rule number is saved in the internal stack and
ruleset processing continues with the first rule numbered
@@ -4351,6 +4373,19 @@
node is not passed though the firewall again.
Otherwise, after an action, the packet is
reinjected into the firewall at the next rule.
+.It Va net.inet.ip.fw.skipto_cache : No 0
+Status of the skipto cache, 1 if enabled and 0 if disabled
+(read-only).
+Use
+.Nm
+.Cm enable skipto_cache
+or
+.Nm
+.Cm disable skipto_cache
+to change it, as described for the
+.Cm skipto
+action in
+.Sx RULE ACTIONS .
.It Va net.inet.ip.fw.tables_max : No 128
Maximum number of tables.
.It Va net.inet.ip.fw.verbose : No 1
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 26, 5:04 AM (22 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42003813
Default Alt Text
D62029.1795669471.diff (1 KB)
Attached To
Mode
D62029: ipfw.8: document the skipto cache
Attached
Detach File
Event Timeline