From nobody Tue Oct 03 03:37:27 2023 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 4S03RW62SCz4vdtY; Tue, 3 Oct 2023 03:37:27 +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 4S03RW5MZWz4TgK; Tue, 3 Oct 2023 03:37:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696304247; 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=TyxrqQTEKI/gVre2+gAIIGIf0FoKnq2C0I+hlTpXY9I=; b=u/o60xMbQFwCmF7n/DuLrWDZG97mm0Xeplwn0SYGppozEfknBSV4lbf7kfi123IuboNqRr FQTeKpdsJl8KmU0iMC4ub6gBTcCF7d+B3KLnAJHUrzelMUWNgDPvy/fdzhtmkss7vQCecd 1iLtEcdDO9/mjLfcjCUfJlyFeFSoGNo9h89YiIbSeVd8GuGQWoSLS5tDjebgtjDzmQm3Va rkXiEwTP+jtEk2/0qalAMLIu0bIy/WxGDky5nEmhTLI99jqR6+/KoGIKu+W1WHRr1VcoO+ GIJGhDw5KQ4GNqOY8pRhR3UK3sosw9xpvzxP1fY7Va0tgTTD2RiKLbmlbfs2cg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1696304247; a=rsa-sha256; cv=none; b=le3RH4enNjil0iihUbC/2SZSFCqiadM/0YWTA1uEuYPQGYtE9C9uEPBMU4n2r5YU6I4mdR fZ04otdruVHQYdnzKg9ecWuCEeqVvSRS7kMSzsazAImgimSAOvGyYJciIByrkOMmWVklqr IxZ1EEofIqDdMpt7XXZjDx41HybNb2WFaN9X/aAGRu6nor0OjwQfKtKbn/nVWf+Y6RfSek lyQTQPtzGRtFIxJYQ3c7e60tLjKm+qOfQeZ9NDF3TAapCP8cAUaKulxYe1w7wMYQ71N0kQ ukhgLCY9GGo3q/YeK74Fg0zfafFsSkLBsX7KNLKaRfLiAFyW59JqwnGw/3pL/A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696304247; 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=TyxrqQTEKI/gVre2+gAIIGIf0FoKnq2C0I+hlTpXY9I=; b=nEmmYjF8Wqbb6+hAVmZqu98RCl2e85LkkiwBMOrZ2aGg1Bu3+BtbltaunzTeCe/CxNTZZK 1XJEPQIdvsjZUu21PeJ3Okn1hqf4g952q/kMU1G9+lX348niMsTIC4IFa+UuXnC70HZRFa +ybDVgzkbhcdTI460f/GVmQwPRwKgvs+qaN4Zid9MTNJOrCpz0IeD+N+ArTF3sxDNmu+Ik HFc+2apvAXa4Fw4hKafZ1CVHPKmOeCfHA0s86PvRdLvw5QiAhlP4oDSksESVsf8783AxNj PI9tQw5OvAO3xNb4KR43RreX6mXyQive98v48HvzLITpIOyvfmgkGyJaj88KPA== 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 4S03RW4QdWzfSB; Tue, 3 Oct 2023 03:37:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3933bR5U003182; Tue, 3 Oct 2023 03:37:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3933bRGl003179; Tue, 3 Oct 2023 03:37:27 GMT (envelope-from git) Date: Tue, 3 Oct 2023 03:37:27 GMT Message-Id: <202310030337.3933bRGl003179@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Zhenlei Huang Subject: git: c920810743c6 - releng/14.0 - ipfilter: Add sysctl flag CTLFLAG_TUN to loader tunable 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: zlei X-Git-Repository: src X-Git-Refname: refs/heads/releng/14.0 X-Git-Reftype: branch X-Git-Commit: c920810743c6de1f1d78936726af29752e7a0095 Auto-Submitted: auto-generated The branch releng/14.0 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=c920810743c6de1f1d78936726af29752e7a0095 commit c920810743c6de1f1d78936726af29752e7a0095 Author: Zhenlei Huang AuthorDate: 2023-09-29 00:01:43 +0000 Commit: Zhenlei Huang CommitDate: 2023-10-03 03:34:17 +0000 ipfilter: Add sysctl flag CTLFLAG_TUN to loader tunable The sysctl variable `net.inet.ipf.large_nat` is actually a loader tunable. Add sysctl flag CTLFLAG_TUN to it so that `sysctl -T` will report it correctly. No functional change intended. Reviewed by: cy (for #network) Approved by: re (gjb) Fixes: a805ffbcbce8 ipfilter: Make LARGE_NAT a tunable MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D42005 (cherry picked from commit ba883e7a5ac43b27a373f2b1b0044fd2eb769d4e) (cherry picked from commit a9359dcde241f17421a71bc8c96dee08625db9dd) --- sys/netpfil/ipfilter/netinet/mlfk_ipl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netpfil/ipfilter/netinet/mlfk_ipl.c b/sys/netpfil/ipfilter/netinet/mlfk_ipl.c index 35daad4715bf..69be4abb2485 100644 --- a/sys/netpfil/ipfilter/netinet/mlfk_ipl.c +++ b/sys/netpfil/ipfilter/netinet/mlfk_ipl.c @@ -134,7 +134,7 @@ SYSCTL_IPF(_net_inet_ipf, OID_AUTO, fr_running, CTLFLAG_RD, &VNET_NAME(ipfmain.ipf_running), 0, "IPF is running"); SYSCTL_IPF(_net_inet_ipf, OID_AUTO, fr_chksrc, CTLFLAG_RW, &VNET_NAME(ipfmain.ipf_chksrc), 0, ""); SYSCTL_IPF(_net_inet_ipf, OID_AUTO, fr_minttl, CTLFLAG_RW, &VNET_NAME(ipfmain.ipf_minttl), 0, ""); -SYSCTL_IPF(_net_inet_ipf, OID_AUTO, large_nat, CTLFLAG_RD, &VNET_NAME(ipfmain.ipf_large_nat), 0, "large_nat"); +SYSCTL_IPF(_net_inet_ipf, OID_AUTO, large_nat, CTLFLAG_RDTUN | CTLFLAG_NOFETCH, &VNET_NAME(ipfmain.ipf_large_nat), 0, "large_nat"); #define CDEV_MAJOR 79 #include