From nobody Mon Oct 02 09:09:58 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 4RzZsf6b2Fz4vq13; Mon, 2 Oct 2023 09:09:58 +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 4RzZsf63zvz4PDX; Mon, 2 Oct 2023 09:09:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696237798; 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=/Fy2cGEFi80uNoaAn207ikUcJcDK9GWUirHoQE/VDxY=; b=HKK/IFQzL3IcCkdakvV22MAQPN16JrxP+Ku/h4YPpkJ+kU2JBPqeQ07nXKzN9Txt92Hl/R z3EFaEfjOFnrbLYiDck4L+T71v4rC/KTOmPIbIHZ68vUx3818HYtfsvmUna9krfyAmBSK8 aV2giKxupsVmJshgugp0KeDl/XPQxt2Y7kBNN53ZEw2Rt90cpkE8n03TF117IeSkrCH+cA /0JVwKwxqAud870P1MmpT3ooz83n4H2XYOOobjoUjbckAiAE0rq1zM9N8ljV93bsEsvd2W 0bnQarMEOj7JLX0TLkyEvGq/esa5/6XU0xHz5Sn9/l1WMkxjlwV0zWKZmkpILQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1696237798; a=rsa-sha256; cv=none; b=GH47Ur50VCI1CFDjYVT8ABMkJzNXqhAIvw1k+yRmP8oV/KFlpPLO4WkIkBNYkZiJ4IlRAh pbtbODV13D0xWPre3WpRPI700ian+9BINpcTfB4NS+s1agmYuHbPDWEeldasBDj1bf1zwg hwCkMILNFswNdV+2uX1F1ZjPrdBYl4lCRsvrAyjs9ytqsvr3vOMRcqdXXLfHdl3k8n8zKS BuIX5LWXkacZ+lnP/XfP121l8jWG33fwNxPmBGsMhlKyDYcGbmmxtJJemGuY+sbFMInirI DsZuoruWMi+svBj/2Tb9YnvQBrKx7Ie5/Zd+LScfIe8UoPhW3VF/D4YvgJe/iA== 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=1696237798; 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=/Fy2cGEFi80uNoaAn207ikUcJcDK9GWUirHoQE/VDxY=; b=CyBqQpWN7q4DCM9DssZCvTwdcW7qqm7Yxb40IcIZ7QQUjmyWRiRo4nR+8toEXenci5B1+d m0NtDRWXGwE06GXoXjsQ9OSNs8vJAOjVdvvU2mRG8s6uS/GsW8GQY3QeT5w0kvhSV2waaX A2D4sc2dCKDDmyjUKF1uHU6WtbC0nJN62oe3I8OGE9cJ1VYNM2orK6jKw/cu5OTp3zepDk U95WWX1Op9wjQ6gzsvrPX4mNHTPrWGeSzaX9PE9INuQEUGYOdiUpTDPxIk0r06pqM5uBzE NhAOjhvPBzLoSfvJl6ZKkKq/oyO+aqug7mXpeOQ+6AdkRM1Jde+pKLexjlYAvg== 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 4RzZsf59RRz15Pv; Mon, 2 Oct 2023 09:09:58 +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 39299wPr053739; Mon, 2 Oct 2023 09:09:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39299web053736; Mon, 2 Oct 2023 09:09:58 GMT (envelope-from git) Date: Mon, 2 Oct 2023 09:09:58 GMT Message-Id: <202310020909.39299web053736@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: 2d43654e6aa8 - stable/12 - netinet6: Add sysctl flag CTLFLAG_TUN to loader tunables 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/12 X-Git-Reftype: branch X-Git-Commit: 2d43654e6aa8215dff11e5249bdb3518ed0fbdbd Auto-Submitted: auto-generated The branch stable/12 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=2d43654e6aa8215dff11e5249bdb3518ed0fbdbd commit 2d43654e6aa8215dff11e5249bdb3518ed0fbdbd Author: Zhenlei Huang AuthorDate: 2023-09-25 10:10:47 +0000 Commit: Zhenlei Huang CommitDate: 2023-10-02 09:08:54 +0000 netinet6: Add sysctl flag CTLFLAG_TUN to loader tunables The following sysctl variables are actually loader tunables. Add sysctl flag CTLFLAG_TUN to them so that `sysctl -T` will report them correctly. 1. net.inet6.ip6.auto_linklocal 2. net.inet6.ip6.accept_rtadv 3. net.inet6.ip6.no_radr No functional change intended. Reviewed by: glebius MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D41928 (cherry picked from commit 03dac3e37993801dab4418087bfedacce0526e66) (cherry picked from commit da2b630c12ec074673dfc646b2055a31b0d8d6d9) (cherry picked from commit 28a80239fd6ab2ff79af5a2b19e349fa6f1d62e9) --- sys/netinet6/in6_proto.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/netinet6/in6_proto.c b/sys/netinet6/in6_proto.c index 43d99e484fb8..b8895b4aa442 100644 --- a/sys/netinet6/in6_proto.c +++ b/sys/netinet6/in6_proto.c @@ -492,10 +492,10 @@ SYSCTL_VNET_PCPUSTAT(_net_inet6_ip6, IPV6CTL_STATS, stats, struct ip6stat, ip6stat, "IP6 statistics (struct ip6stat, netinet6/ip6_var.h)"); SYSCTL_INT(_net_inet6_ip6, IPV6CTL_ACCEPT_RTADV, accept_rtadv, - CTLFLAG_VNET | CTLFLAG_RW, &VNET_NAME(ip6_accept_rtadv), 0, + CTLFLAG_VNET | CTLFLAG_RWTUN, &VNET_NAME(ip6_accept_rtadv), 0, "Default value of per-interface flag for accepting ICMPv6 RA messages"); SYSCTL_INT(_net_inet6_ip6, IPV6CTL_NO_RADR, no_radr, - CTLFLAG_VNET | CTLFLAG_RW, &VNET_NAME(ip6_no_radr), 0, + CTLFLAG_VNET | CTLFLAG_RWTUN, &VNET_NAME(ip6_no_radr), 0, "Default value of per-interface flag to control whether routers " "sending ICMPv6 RA messages on that interface are added into the " "default router list"); @@ -548,7 +548,7 @@ SYSCTL_INT(_net_inet6_ip6, IPV6CTL_V6ONLY, v6only, CTLFLAG_VNET | CTLFLAG_RW, &VNET_NAME(ip6_v6only), 0, "Restrict AF_INET6 sockets to IPv6 addresses only"); SYSCTL_INT(_net_inet6_ip6, IPV6CTL_AUTO_LINKLOCAL, auto_linklocal, - CTLFLAG_VNET | CTLFLAG_RW, &VNET_NAME(ip6_auto_linklocal), 0, + CTLFLAG_VNET | CTLFLAG_RWTUN, &VNET_NAME(ip6_auto_linklocal), 0, "Default value of per-interface flag for automatically adding an IPv6 " "link-local address to interfaces when attached"); SYSCTL_VNET_PCPUSTAT(_net_inet6_ip6, IPV6CTL_RIP6STATS, rip6stats,