From nobody Wed Dec 11 18:50:16 2024 X-Original-To: dev-commits-src-main@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 4Y7l604bwJz5gKRR; Wed, 11 Dec 2024 18:50:16 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Y7l603ZzPz4WK9; Wed, 11 Dec 2024 18:50:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733943016; 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=r/0b3shijbDZ8O5QbEk7NvG1amxEPxeDkYNsZendtiA=; b=GwFeXJRrv5CkdzAy4CzOIpCrEAXFAXvDB1sGle8RH9Ocn/O/CLsbAr9J1MCalBrjzOnOIN ng9Crdnxrp07525jtCwYuQMiDdU6re80vOfgkvZ8SWD96jrpJHC3wTCZ9xHwi6W7xTEfHL 9LJ2Q3FXbqZvwiKb67txNuAnw5mF4j4/0Ed4+VfGmuM0ajcGpSvmf2Pg0NtB8Tx1OHOOnu GTlw6tyVnfznUACdvUqFo/E6GZ+80XZryAUFUHhKYx/NOt7DwV+eBrff7BKOS0OtX2234C UUkmYFlJWKXfBw7HMf1LbIoVoQ2T0nPVXupmn9hEuFYC0HA8G7/Io1On0W/+fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733943016; 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=r/0b3shijbDZ8O5QbEk7NvG1amxEPxeDkYNsZendtiA=; b=kGwTokxnbtdtTzMmMl4d0pq0qnESNz9IIURg5fg7i8M3/NgEz59sAUI8cp4pNGsvr7pQt3 KO3UxtC7ZdCh/gBn/SdQ8P1qzYTyO8p8t1Lor0R2E2X6ehVlfSGo8PIpLOaHi8VjNRGIYL IchBBVi+AShqJhgWWx0kdu9ZLiXT8TlmC7dMQzeRnI4xFIDemNTv9orK8PSZSC4nERM6Mh OO2DZCdDR9J974B8YfICTuL1vWSgsF3CcR2Bo/V1VUeacaJczHOG9Fentwk03DRBsHNOqC RzJs92Jp7yoH3B5XYnSgpTguFPyKFBkWN+bZz98fJHqNOfNLWoUPL9N0gVkAMw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733943016; a=rsa-sha256; cv=none; b=XO9YMoDLcNnPWQwKl5+wDJzGTJnBJ8NkMP8iUpOS6r3vthlJ9+GA/48KqPDCRI1PLdq+42 sX/nrViwNf2maTAiRXoOLIlSpXM1uJ720Qay5SExTTjqlWMSARWAiji26OEhIAx9TtqzDS 8RkTwEtptLLG8PdKfOn85g/3Fow3GXT3ZcB6gBP+bEhmyMlC2o7Gf3KAbU5JClR160VHZ1 QYnfk6bx6cVm01Trtoaju4V6TTgzRB/jzFAmNh7DKN0wprExOwEbqPa9QiyuM4+9ycE9d7 gLTweiTygDrjavAx2Enb502SVvq6l+ysW6Ie3O9k0rM9hbJuSKifix5/iUI9sg== 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 4Y7l602gFRzKhM; Wed, 11 Dec 2024 18:50:16 +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 4BBIoGbG068770; Wed, 11 Dec 2024 18:50:16 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4BBIoGMa068757; Wed, 11 Dec 2024 18:50:16 GMT (envelope-from git) Date: Wed, 11 Dec 2024 18:50:16 GMT Message-Id: <202412111850.4BBIoGMa068757@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: eba715c544ea - main - icmp.4: improve icmplim and add icmplim_jitter description List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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: eba715c544ea89c6b402c55e03b388b77030b997 Auto-Submitted: auto-generated The branch main has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=eba715c544ea89c6b402c55e03b388b77030b997 commit eba715c544ea89c6b402c55e03b388b77030b997 Author: Michael Tuexen AuthorDate: 2024-12-11 18:47:11 +0000 Commit: Michael Tuexen CommitDate: 2024-12-11 18:47:11 +0000 icmp.4: improve icmplim and add icmplim_jitter description Reviewed by: cc, bcr MFC after: 1 week Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D48025 --- share/man/man4/icmp.4 | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/share/man/man4/icmp.4 b/share/man/man4/icmp.4 index 7bc844edd3c0..c8c92a794e24 100644 --- a/share/man/man4/icmp.4 +++ b/share/man/man4/icmp.4 @@ -25,7 +25,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd August 1, 2022 +.Dd December 11, 2024 .Dt ICMP 4 .Os .Sh NAME @@ -169,10 +169,31 @@ Defaults to false. Enable/disable dropping of ICMP Redirect packets. Defaults to false. .It Va icmplim -.Pq Vt integer -Bandwidth limit for ICMP replies in packets/second. +.Pq Vt unsigned integer +Mean rate limit for replies in packets/second. +The actual limit is +.Va icmplim +plus a random jitter limited by +.Va icmplim_jitter . If set to zero, no limiting will occur. Defaults to 200. +.It Va icmplim_jitter +.Pq Vt unsigned integer +A random jitter between the negative of +.Va icmplim_jitter +and +.Va icmplim_jitter +is applied to +.Va icmplim +for limiting the sending rate of replies. +.Va icmplim_jitter +must be smaller than +.Va icmplim , +if +.Va icmplim +is not zero. +If set to zero, no jitter will be applied. +Defaults to 16. .It Va icmplim_output .Pq Vt boolean Enable/disable logging of ICMP replies bandwidth limiting.