Skip to content

Commit bed2299

Browse files
committed
syncache.4: add missing information
Add the description for one sysctl-variable and three counters provided by netstat. Reviewed by: gbe, rscheff MFC after: 1 week Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D52226
1 parent 7b57f25 commit bed2299

File tree

1 file changed

+27
-2
lines changed

1 file changed

+27
-2
lines changed

share/man/man4/syncache.4

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
.\" notice, this list of conditions and the following disclaimer in the
1111
.\" documentation and/or other materials provided with the distribution.
1212
.\"
13-
.Dd April 12, 2021
13+
.Dd August 30, 2025
1414
.Dt SYNCACHE 4
1515
.Os
1616
.Sh NAME
@@ -39,6 +39,8 @@ MIBs for controlling TCP SYN caching
3939
.Nm sysctl Cm net.inet.tcp.syncache.count
4040
.It
4141
.Nm sysctl Cm net.inet.tcp.syncache.see_other
42+
.It
43+
.Nm sysctl Cm net.inet.tcp.syncache.rst_on_sock_fail
4244
.El
4345
.Sh DESCRIPTION
4446
The
@@ -107,6 +109,18 @@ and run only with
107109
set
108110
.Va net.inet.tcp.syncookies_only
109111
to 1.
112+
To use
113+
.Nm syncookies
114+
to handle bucket overflows in the
115+
.Nm syncache
116+
set
117+
.Va net.inet.tcp.syncookies
118+
to 1.
119+
The default value for
120+
.Va net.inet.tcp.syncookies_only
121+
is 0 and the default value for
122+
.Va net.inet.tcp.syncookies
123+
is 1.
110124
.Pp
111125
The
112126
.Nm
@@ -169,6 +183,9 @@ However, extra
169183
.Xr ucred 9
170184
referencing is required on every incoming SYN packet processed.
171185
The default is off.
186+
.It Va rst_on_sock_fail
187+
Send a TCP RST segment if the socket allocation fails.
188+
The default is on.
172189
.El
173190
.Pp
174191
Statistics on the performance of the
@@ -206,8 +223,16 @@ Entries dropped due to ICMP unreachable messages.
206223
Failures to allocate new
207224
.Nm
208225
entry.
226+
.It Li "cookies sent"
227+
SYN cookies sent in SYN ACK segments.
209228
.It Li "cookies received"
210-
Connections created from segment containing ACK.
229+
ACK segments with valid syncookies which resulted in TCP connection
230+
establishment.
231+
.It Li "spurious cookies rejected"
232+
Received ACKs, for which the syncache lookup failed and also no syncookie was
233+
recently sent.
234+
.It Li "failed cookies rejected"
235+
Received ACKs for which the syncookie validation failed.
211236
.El
212237
.Sh SEE ALSO
213238
.Xr netstat 1 ,

0 commit comments

Comments
 (0)