From nobody Thu Jun 30 16:41:50 2022 X-Original-To: dev-commits-src-all@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 AB2178A984E; Thu, 30 Jun 2022 16:41:50 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LYkct4MJtz3pcF; Thu, 30 Jun 2022 16:41:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656607310; 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=Y4L6AtSJVCVmL6eM8HG45+UDIOYjXxGzN/YZrhCNSfU=; b=xyykqKBudBXvTT3+LcfywX22JJKdJjleFJ6BVBVAU3qlYwkmKhSZ3pK9U/IkJqLuqB0dST kSLrlMgTn4y+J3ppQFULgGNuymhPMQc2fWFsainCfQjYZQKUPM+PAaSK1IWv3eMf/w2kgN 9KUx3pAWl0sC6gvqGkFaGWodrrsEAr2KqJZisFLsm38MQmAevOLeDZhD2qmIhKfNFffUfd TPx6HtegSTYVcBMEPhhtZ+2VoH2tv9oD3PbxKgcotcTQWXFXrkooKG1gRuZyfVVezwcaVj 4CPfXPGJuCVFttzlBTNT89oS05t32gMAL8aJZk8O+913gQK0p6nNwTYd6e2aiw== 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 757481FAA; Thu, 30 Jun 2022 16:41:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 25UGfova052752; Thu, 30 Jun 2022 16:41:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 25UGfovN052751; Thu, 30 Jun 2022 16:41:50 GMT (envelope-from git) Date: Thu, 30 Jun 2022 16:41:50 GMT Message-Id: <202206301641.25UGfovN052751@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Michael Tuexen Subject: git: 61a73acd8871 - main - tcpsso: improve man page List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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/main X-Git-Reftype: branch X-Git-Commit: 61a73acd8871ca79d04e10c7ed908f2d8774636b Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656607310; 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=Y4L6AtSJVCVmL6eM8HG45+UDIOYjXxGzN/YZrhCNSfU=; b=SEmJmwT7fjOhBOp6LjeEMizVptNtjZgsKsgwNX5mpxIvMKtrSKRMz95TFRkyM1nB75iTYn IFCWOoh5X3ZJmWn0qU8B8gTR9syHBZxq+gt92HWADPt3s/Q7GsBJ1aiUEsNJR3tcCwqlM6 6ibK8AHSFpQPPxo1Be8ScOE5WVmXwdXu2MEMtJhwPiNrtOiP0XLxMYQWX2WVeCoV3/D86/ gdjYB66LZix9wD8aq3Hlm+Ir30Xt9LeGugKxViz3REc1Kro80DZ9Jj8gwWzZ7yuRDBKXTB ifrXVD07A1z3M2mgdSY+5oRF9kDn9f9jBB8Gc9NKbmumY3Dp8ccbIxq7ogT3jA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1656607310; a=rsa-sha256; cv=none; b=V+5+hpytp4Q482TdG/rsNBKPws1TPSjVE2+AMiE13dwFO6kNNC+0OHcEJ700rrx1c/i82Y KIbzTgMVIWd2z1R8AhDgXiIGURnU+QcFwVo+RRdvSca8YkUL/GCtF4ROvM6OPrEvAM2K70 zpxjuvBYzBZNkLFxntwZiKtg15BWbkpfAC+jmS2TCficeUiQVX8Ep+LuX7F7Psdtm5qPxX HRx4c+K66QGC4fMzVfHJ5dFiUPrZPi6bN/dYcMGAx7IDvlvJ4Z5sbg3pesaqkrKDtVsw2R txMKSO4pCig3JKgNgSJQKi2+OWkJSeoOB/xdkJBH+GdBFCpE8OiEMgFjSoXCkg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=61a73acd8871ca79d04e10c7ed908f2d8774636b commit 61a73acd8871ca79d04e10c7ed908f2d8774636b Author: Michael Tuexen AuthorDate: 2022-06-30 16:37:09 +0000 Commit: Michael Tuexen CommitDate: 2022-06-30 16:37:09 +0000 tcpsso: improve man page Describe explicitly the handling of TCP endpoints in the TIME-WAIT and SYN-RCVD state. Reported by: glebius@ Reviewed by: glebius@ Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D35651 --- usr.sbin/tcpsso/tcpsso.8 | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/usr.sbin/tcpsso/tcpsso.8 b/usr.sbin/tcpsso/tcpsso.8 index b3aee93ae5da..14402ac4daee 100644 --- a/usr.sbin/tcpsso/tcpsso.8 +++ b/usr.sbin/tcpsso/tcpsso.8 @@ -24,7 +24,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd February 10, 2022 +.Dd June 30, 2022 .Dt TCPSSO 8 .Os .Sh NAME @@ -73,6 +73,15 @@ and value .Ar optval on a TCP endpoint from the command line. .Pp +TCP endpoints in the +.Dv TIME_WAIT +state can not be handled by +.Nm . +TCP endpoints in the +.Dv SYN_RCVD +state can only be handled if their prior state was +.Dv SYN_SENT . +.Pp .Op Ar level can be specified as a non negative number or a symbolic name like .Dv SOL_SOCKET , @@ -129,8 +138,8 @@ If .Fl a is specified then .Nm -will apply the socket option to all TCP endpoints not being in the state -.Dv TIME_WAIT . +will apply the socket option to all TCP endpoints subject to the above state +restrictions. .Pp If .Fl C Ar cc-algo @@ -139,8 +148,7 @@ is specified then will apply the socket option to all TCP endpoints using the TCP congestion control algorithm .Ar cc-algo -and not being in the state -.Dv TIME_WAIT . +and subject to the above state restrictions. .Pp If .Fl S Ar stack @@ -149,8 +157,7 @@ is specified then will apply the socket option to all TCP endpoints using the TCP stack .Ar stack -and not being in the state -.Dv TIME_WAIT . +and subject to the above state restrictions. .Pp If .Fl s Ar state @@ -170,6 +177,12 @@ is one of .Dv CLOSING , .Dv LAST_ACK , .Dv FIN_WAIT_2 . +Using +.Dv SYN_RCVD +only applies to TCP endpoints in the state +.Dv SYN_RCVD +if their prior state was +.Dv SYN_SENT . .Pp If multiple of .Fl C Ar cc-algo ,