From nobody Mon Oct 02 08:29:20 2023 X-Original-To: dev-commits-src-branches@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 4RzYyn1Fssz4vmgF; Mon, 2 Oct 2023 08:29:21 +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 4RzYyn04kgz4KFn; Mon, 2 Oct 2023 08:29:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696235361; 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=uoYBdZgVgDA3CbOTopT7bO6ZLJRy3txlew30685bf10=; b=sVoQQgiVN4p5laO0BRYh+OPryEefXXHO1Epb5PO5V+6AREFNIPA/Gd20WzQ/kJ74Gkhcm5 EMSoE0vQcrPm5ah8ZJ19IVZfS0vL3Oe3Cg2k2tSc4vzAuhTSW8kV6llo3Wl+6EPchhkdUt G2fgg2Rn1H6Rffh9kMYjR2Hz6D9yyZyK2h0hs52kdCcH8GJqmyo2tkQTomapl6tb8kZXS6 3c1rcdrIrrTLaSyyVKetD6sZWCTQ6/FdyQKs/4tMXGK8UjY7iwhP+VSTOh/2ZJBcsSWRVe QB2dQ6O2wqJsW+eAENvvDidNyTSfiONU5yowNbdAqSz1ArwCDmn0rfN9U2Novg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1696235361; a=rsa-sha256; cv=none; b=iBkBwDOh/qr3BsFD7W66xIX91PkvZ4OkSczQIU+avcIiBHSei6GBteXK4WsEtpZ8nN83tq IaZ86Gg77GrROSKRgkkdXjjNSWeWE4BydZPrI9ck6SH/+bNoHjF7dBHKIN1Mhg2Da73Vxp kP9hauGO0QvaPuIcv/h7w+7ZqVs4Ai1wHDln6Cr1uCiVovwBam7XrS/VhwbKnIm6lIlS1S 1x/ljbIqaCQo+bKYxG9QolCbc4c2ix+1e2h6gnCzKemOmoS3aw+qQj3ScaDVPiEm63yk7I 40hPi0C8CaZkF+ZeOBaRzz6x1+hrv/qssMI+HK7uV3cKPWUv+UWbab7gIoKbLA== 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=1696235361; 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=uoYBdZgVgDA3CbOTopT7bO6ZLJRy3txlew30685bf10=; b=RfDkrUPCUt49GW37Qd7J9hHOZbuNuc0cTDsq8IPszCm7ZFceBhYfSv0wyyY4SzdMIuVv4k Ks/JdzeJE6z38RXNQk+3tZ3oB4u8Gg0PbFVrX8SHutyruddQGB2L9r6WFQw2kDCAGMrBW2 H9Vt9v2BxHJm2GohOTSoKxkIn/Z6Iwn6ZNi6WvTwx85roj/8i0k6d9kUi96lbaphyA6eDB 2G3FOKbpiTrCjEH6yr4tcjOcCtpmj29gemUCHbQt65JtxRBvnxbic+xbkmhhADrxe9vXq+ sH7GN5/DmPT75JMnp1J6tjWts4+otyAaR4qffRrmBMYuQkRUAExQdXnuGXjxhw== 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 4RzYym5qzpz14pL; Mon, 2 Oct 2023 08:29:20 +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 3928TKYp086187; Mon, 2 Oct 2023 08:29:20 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3928TKba086184; Mon, 2 Oct 2023 08:29:20 GMT (envelope-from git) Date: Mon, 2 Oct 2023 08:29:20 GMT Message-Id: <202310020829.3928TKba086184@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: 28a80239fd6a - stable/13 - netinet6: Add sysctl flag CTLFLAG_TUN to loader tunables List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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: 28a80239fd6ab2ff79af5a2b19e349fa6f1d62e9 Auto-Submitted: auto-generated The branch stable/13 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=28a80239fd6ab2ff79af5a2b19e349fa6f1d62e9 commit 28a80239fd6ab2ff79af5a2b19e349fa6f1d62e9 Author: Zhenlei Huang AuthorDate: 2023-09-25 10:10:47 +0000 Commit: Zhenlei Huang CommitDate: 2023-10-02 08:28:22 +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) --- 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 4a92fff14e68..cfa368e7f7b0 100644 --- a/sys/netinet6/in6_proto.c +++ b/sys/netinet6/in6_proto.c @@ -482,10 +482,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"); @@ -538,7 +538,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,