From nobody Fri Sep 29 00:05:10 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 4RxVwQ5SmLz4vp7q; Fri, 29 Sep 2023 00:05:10 +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 4RxVwQ4bcPz3YgX; Fri, 29 Sep 2023 00:05:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1695945910; 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=2N1YDvM0zYahXUGt+MpM/ZvJuOjx0eAEQqDWI3C2v+E=; b=URomtB61u1MRrjwP6t7/NfKFYULt1HVaGv/v1ujl1G55Cfxc+dKUzzRcL0TOaDC7Vniwo/ s8V1f526qLugBdNcXki8C+KoaF5WY3ZInaOwqcwCm4UiUpOpFFsyH8dIWE+6lZuk8O0GXk DvAbgozS2lupqZGWsgGv8TfixNLIgsDbUe5bWh50Ru5D35ewWiepUjVtqPuJ4eb9/bUjTt WQKutCbgLti9e41Je3s7CDSf7M4FXwIpI0YzhzrCTC3gydXjwno4hb2I0DkYx5YuWjL8hV 7K/ELeQiKKcLc6EGhx1VeiDK4yfuqx3nFBE5JzOJYTt+lkf0dRjuyqQN84fN6w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1695945910; a=rsa-sha256; cv=none; b=OUH0wsASAaD4Xw/eu91B9zbKdoRwmaPb/c1xWEa8JCF7uREcC4JkC+McX1YSskc2AjIQsm NgM9x9bbJ+aTJLpIn5IgYGjKysZgLkLzV2MI4zlavGmq1pEtWtuegtItNd43kVxvpHh14T 5hr6otQ1W/ALozrVzkOhYW4zoQqS27OtIgNlpLBKm2i9OIfrT3NnRwaPwpqSU8AlGxawjf VfMiUR4gnxJBZaoabM2zhf3I4nmTixlPxKYXejLBvECdA03BZP1AgZLtyBnBET61vmAq3M dh//O4cynrDm7aDrecgbCwLvRh5EoAwxhLl3U2K1FkytVfbkoPC1W3O5eETj5Q== 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=1695945910; 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=2N1YDvM0zYahXUGt+MpM/ZvJuOjx0eAEQqDWI3C2v+E=; b=N7dZ83/+hOP98rTdP+T/bf+1q5PON//3gsEnGfhb/Ic74cbfN0npW/w+4NHJID1IM++0WY 9La4lktceTMktk0kptd+mZ/IWBv6dmq2PJvgQtDF46Tnh+4oq4g9Vx4zru8EbP43P2BnkW fIZDZ0+3QkL3K4bkebIPefYUPixhONIQAskC0UPMytPx/Vn5lFnOFk18O6FjWDXyYSwue0 JBQTHz5xqYkSndMxBbOJ4WQ+VymvLMQCgwtu8vkr0nabpwk9LpmJ/huZWweifcFx9ho9gq GolagssUTp4bxzUdwwvvHIpT9kR4t+19VQxs85MWuY7HD8oG5NZsl1FWQoTEBA== 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 4RxVwQ3fBgzj2T; Fri, 29 Sep 2023 00:05:10 +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 38T05AuO038926; Fri, 29 Sep 2023 00:05:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 38T05AJN038923; Fri, 29 Sep 2023 00:05:10 GMT (envelope-from git) Date: Fri, 29 Sep 2023 00:05:10 GMT Message-Id: <202309290005.38T05AJN038923@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Zhenlei Huang Subject: git: ba883e7a5ac4 - main - 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/main X-Git-Reftype: branch X-Git-Commit: ba883e7a5ac43b27a373f2b1b0044fd2eb769d4e Auto-Submitted: auto-generated The branch main has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=ba883e7a5ac43b27a373f2b1b0044fd2eb769d4e commit ba883e7a5ac43b27a373f2b1b0044fd2eb769d4e Author: Zhenlei Huang AuthorDate: 2023-09-29 00:01:43 +0000 Commit: Zhenlei Huang CommitDate: 2023-09-29 00:01:44 +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 --- 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