From nobody Mon Oct 02 08:29:25 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 4RzYys44FWz4vmM3; Mon, 2 Oct 2023 08:29:25 +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 4RzYys3Wgpz4KWB; Mon, 2 Oct 2023 08:29:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696235365; 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=a+pSWsdjoq0ROvW5fJghtoLdbs4BpNPLCK242qQRbd4=; b=E0qnO+wQslslGY2LDGbH90oUDBJDvZbNR2QgnlLPBeItLhlfzwCrTUe0TTgQjJk64gnGCA K+89Y6TyV34QkQE3TpV02IAca1DKoKRMGVaNnzhe56h7dWpgone5KFg5ZxQsfX1znW3kJX A9GHx6CeFjHjDqddmUaFHGyGr0VJlKvqCqX8pdcfrOKWEHWOIq1m/QEsjnWx9gQO0sQ2UN iyCLUwc02QGIYo7LLESpj5kK4e8YXJhQcskGq5jxC1oVRTsDNkP3cj5p5zVvxvbMeCp9+3 WVkdqDs5paNxdUGNsoiHv2EpE3GHAwzjJyNfZVGHQt6Z9o/FRy0QcNC41fRNLg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1696235365; a=rsa-sha256; cv=none; b=gcRs2Q19cH3EQz9v1CI7Gh4enZS/dsu24YaRz8YF7zBNAuRopSPZgUvOuzczIr4B1f7kc6 2Ai7VYxiAJpXyrEI3kE4uw/TYvEd/9pdLdXTbbOO5dcqRugSTHRHnE26nW/ApKB4DrkLs1 LYgyfGDxs8qfICVMT8rK0l2W8mVMuVkckzB0MHCdIHvPxS2iF9DZj8WP0N5hc9As1+UVqa raMcErrC1CiatVJTMig/sRsA/Ysr1zDZ3Y912McjRqXyU+1TNUmCUlM14INp4thGHjbgiM poRYR3bJ9DZNycmQYvjdn5OV9Vk/DfCReMzTVJDnwSEgOU8IMXbkF670OTH4BQ== 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=1696235365; 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=a+pSWsdjoq0ROvW5fJghtoLdbs4BpNPLCK242qQRbd4=; b=oFZ0h109mUib0O1GoyVJws5cyevMqP7z8RC6AJfbto9lMPqvx7kr8cy+/Baq19f9Gf9TWd akdrjnD940uhQRyaggz3xDfZiMek7cuRVlZU7a3eScnbg+mv/GCukcynUGcOf5MYevI4r6 R2INXcGnZeNhSFdcVZNBpHRlcwCmO2qzg8T3mH+gXANV8MWCSY7c/UQOpmeYRAZbhMuKqY hfN4Sf6yU0bWP29mPhodutibRHUMBRuoRfo3QnXZudg6lyPj254lJ019urrblahYpZ+XsJ 16wn4nS47DC32TK6dFC8+erfAItK5yReAeMQBKDjktjEOxgqNEySz0sVWPGWhg== 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 4RzYys2TS2z14gj; Mon, 2 Oct 2023 08:29:25 +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 3928TPGq086495; Mon, 2 Oct 2023 08:29:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3928TPp6086492; Mon, 2 Oct 2023 08:29:25 GMT (envelope-from git) Date: Mon, 2 Oct 2023 08:29:25 GMT Message-Id: <202310020829.3928TPp6086492@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: 25c371dc559a - stable/13 - 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/stable/13 X-Git-Reftype: branch X-Git-Commit: 25c371dc559a9ea23905baa5cbfed3f6d9d6eb5c Auto-Submitted: auto-generated The branch stable/13 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=25c371dc559a9ea23905baa5cbfed3f6d9d6eb5c commit 25c371dc559a9ea23905baa5cbfed3f6d9d6eb5c Author: Zhenlei Huang AuthorDate: 2023-09-29 00:01:43 +0000 Commit: Zhenlei Huang CommitDate: 2023-10-02 08:28:23 +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) 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 fcd7a94575e6..a2f1b5070818 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