From nobody Tue Sep 09 18:16:44 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4cLsTm68Rpz67G87; Tue, 09 Sep 2025 18:16:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cLsTm5Sd9z3k4t; Tue, 09 Sep 2025 18:16:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1757441804; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bjmc97EgTwIAJKxuGUdeTH+lIuETjPhtNqenDvjyUZw=; b=Mjw47Ox3bqYPmpEveNM3qK0/5p615XeH/eRCOFyYCBTJBNNWhUX/uydCdCYfqXr62eEPf4 nbgUlH+4ZLoefWxzvxXxlh8HyR52RdsZ4Gnb5j0S8j+7lE2EG1I4TjunDskGrQ3svwRWcF xRL5bs0D2lltMt3ici4+OlVD1OeStjUy8UWX3UBMNmciHHzMoM8/X51BYK+wuyGN5rZfVB Pf6LbVwfK2FACJCo0oUJ3dPKYX1PMW9dMRNdUZMgreomK6Qc5Uz5SZLuCMHqBIqBKqXoak /n4CBdJ1rEElIbqtNJSCuNkYzvOzZ7mPnW9e9rOe1XA8wK9NW1C+7IX6At8kUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1757441804; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bjmc97EgTwIAJKxuGUdeTH+lIuETjPhtNqenDvjyUZw=; b=yPSCaOrI4kmuJAJV1WDrrXJAHyacVM6MkDZivTwPL60NMmiOg4YxX36R/XOhzib5P89+f+ 9u7i1KzN4d7wxE6ptgle/TD0dYYzRyW6siXKEL3vsu45iP3oBjS/Aj+HyryCPVHEFg7GGA D64BzQHgZd61tFn3zA4FuofHWTTJxrdb9G+NfAE9VtQV5a3v1Q3WrqspDjGtNZTYSs2sr1 O6/2GIuz5h6WkQUX5xaIdUh5boCerhkagRLhG4wLJyGgBUYJyofSNr0Wpl5zYVLuoBYeOP eggIAaxgq6i+QxYDT/w3ASVh19V2N/YwmsSPLn2uDjZohV5ECz08kBDqp+s9sg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1757441804; a=rsa-sha256; cv=none; b=NmPXWMAgRq+bHxbCUPu04PvA8NV8NR3VJv99EFveVvzXUPuKB3RYdQSVpEgEi4C5yzBTrb g9vP2fbluS36SaZ9E3O0VmOuC7mUY+1FCYFuRirgmXaV7qXKSSiGXRYQGufGYx+ologw5+ yeL2wKAZic/HbWKCNFSDOA4PjNBoQiKNIcT41FmFnadn3QygJ9qq2BeMP6WYSqfn6Y8kzf EA84NmBpH1whCGToos/kRYJ6+lKHnZpkqnOb2/EQ8Evswnajw0rLrclTvuPGSeY/Slqh6X iGx94YgumYcvvaOJiCuQlwZIzTrSFBmHl+tKg77L5LBFUJplgzvj7gC+PZplWg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4cLsTm4dtszmNM; Tue, 09 Sep 2025 18:16:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 589IGiTh005402; Tue, 9 Sep 2025 18:16:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 589IGiZb005399; Tue, 9 Sep 2025 18:16:44 GMT (envelope-from git) Date: Tue, 9 Sep 2025 18:16:44 GMT Message-Id: <202509091816.589IGiZb005399@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Michael Tuexen Subject: git: 9a6978136157 - stable/14 - syncache.4: add missing information List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tuexen X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 9a69781361576e597f68b25e22925f8c24b9e433 Auto-Submitted: auto-generated The branch stable/14 has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=9a69781361576e597f68b25e22925f8c24b9e433 commit 9a69781361576e597f68b25e22925f8c24b9e433 Author: Michael Tuexen AuthorDate: 2025-08-30 14:53:08 +0000 Commit: Michael Tuexen CommitDate: 2025-09-09 18:16:30 +0000 syncache.4: add missing information Add the description for one sysctl-variable and three counters provided by netstat. Reviewed by: gbe, rscheff Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D52226 (cherry picked from commit bed2299823b8173fd791c0bbacc75ac224cecc0a) --- share/man/man4/syncache.4 | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/share/man/man4/syncache.4 b/share/man/man4/syncache.4 index e92502fd15ff..f83e9b083e45 100644 --- a/share/man/man4/syncache.4 +++ b/share/man/man4/syncache.4 @@ -10,7 +10,7 @@ .\" notice, this list of conditions and the following disclaimer in the .\" documentation and/or other materials provided with the distribution. .\" -.Dd April 12, 2021 +.Dd August 30, 2025 .Dt SYNCACHE 4 .Os .Sh NAME @@ -39,6 +39,8 @@ MIBs for controlling TCP SYN caching .Nm sysctl Cm net.inet.tcp.syncache.count .It .Nm sysctl Cm net.inet.tcp.syncache.see_other +.It +.Nm sysctl Cm net.inet.tcp.syncache.rst_on_sock_fail .El .Sh DESCRIPTION The @@ -107,6 +109,18 @@ and run only with set .Va net.inet.tcp.syncookies_only to 1. +To use +.Nm syncookies +to handle bucket overflows in the +.Nm syncache +set +.Va net.inet.tcp.syncookies +to 1. +The default value for +.Va net.inet.tcp.syncookies_only +is 0 and the default value for +.Va net.inet.tcp.syncookies +is 1. .Pp The .Nm @@ -169,6 +183,9 @@ However, extra .Xr ucred 9 referencing is required on every incoming SYN packet processed. The default is off. +.It Va rst_on_sock_fail +Send a TCP RST segment if the socket allocation fails. +The default is on. .El .Pp Statistics on the performance of the @@ -206,8 +223,16 @@ Entries dropped due to ICMP unreachable messages. Failures to allocate new .Nm entry. +.It Li "cookies sent" +SYN cookies sent in SYN ACK segments. .It Li "cookies received" -Connections created from segment containing ACK. +ACK segments with valid syncookies which resulted in TCP connection +establishment. +.It Li "spurious cookies rejected" +Received ACKs, for which the syncache lookup failed and also no syncookie was +recently sent. +.It Li "failed cookies rejected" +Received ACKs for which the syncookie validation failed. .El .Sh SEE ALSO .Xr netstat 1 ,