From nobody Sat Oct 4 18:19:02 2025 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 4cfDLv2JMLz69WQ1; Sat, 04 Oct 2025 18:19:03 +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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cfDLv0jDdz3gTy; Sat, 04 Oct 2025 18:19:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1759601943; 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=+BOvwhTiTqqEKyTBw7FISPvC8ESd2NIGZCq24R5u9Lo=; b=r5f6ZWCfjcYtPWoUMORFsLMHmT6bryuKJRZBA10fMytrFpe4jSOeE2lYtwYPb9Vz8nK4lw aNsppU/Pyf/ZKqilYtaiawaj6aOqdEs/NMClU3XfTxWG/QHzgp2ZrJuLtzcCPOd41ovNxX fu++QLfP74bh5/+0SVTNh0miKOpv3+ltmP7q63FSusB/nR+cjXrQUZgpvFfc4yVEibUVbN c3WQ+8rnxod2/a9EAF7969R4DeQqB5fxN73mmAPqAHcDHMR0w366i+tXFMQ4UZ+f1QyYN0 GoQohF6IHAaqX1lQBGAbMcH9MkTP3DXhZnM2pfdc4jPvIdR2te6Ewpn2j2alhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1759601943; 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=+BOvwhTiTqqEKyTBw7FISPvC8ESd2NIGZCq24R5u9Lo=; b=UI4LPlLORJui7hfeGPmD00omwxTu6+JCh/B1TDVhSNl/DEvmd8R8sYnRe0eRYCniSMEVx4 rPNZAUnA/yY2EKBrNRJoOw3j5IdDOdCe8AEkA+/ag+/FqL4gNzgk0F6skzxeyegJbv5i+M s6Izg2J5lQM26eF3cx/XLwX9O7Rp8CcVK+kNt3e2SlsehGZ87ADWObtFf0WaXEYy+MCjb2 wNkZ2tL8Nq8bDJJ57B784QVFAhvh58rbISufnxy7BjY34tdZfIHoBXgz6KFGTshZCIcu+J mM+jcm9o9mhIx80NG00wOeFe1bsujBG0CGMpxs2oIgq2gkgiwWRygTHG7dkauA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1759601943; a=rsa-sha256; cv=none; b=mnDhRfocm+D7yb6T2mBzc/OZNzdVeUK3tWDEWhB8U0NaLJcRSU4TF79PC4ujCHc10XZgOX DAW1a2jz+Yb4l+xm46STCvrMEuA9zmIOYBUb97nZffy03ElCWA+WQDKsJkjuloXHmsAdma AWyoVULEJNK8KGcdwi5L19uA6Zs+dJrneYVX2D9OTygHQ072GrTundRn8XNyOD3sdALMAg UnRg0SCWzWhqOueMz2JvD1QLBMxwcORAIGQlDbakgvZQe7FGd5YuR7/fflGSDF5JxkdEo2 TVLw4yQERW8lNB3ngznRke7988fzTT1Ym5J97O79ZuuPNrdxJ6ZXae0oupBkJg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4cfDLv067Hzt8D; Sat, 04 Oct 2025 18:19:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 594IJ2Tr029606; Sat, 4 Oct 2025 18:19:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 594IJ2qw029603; Sat, 4 Oct 2025 18:19:02 GMT (envelope-from git) Date: Sat, 4 Oct 2025 18:19:02 GMT Message-Id: <202510041819.594IJ2qw029603@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Brad Davis Subject: git: f591fd26ca8e - stable/14 - vnet.9: Remove references to non-existant macros and update how to virtualize sysctls 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: brd X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: f591fd26ca8e4a32048287c880bac1f7e12301e7 Auto-Submitted: auto-generated The branch stable/14 has been updated by brd: URL: https://cgit.FreeBSD.org/src/commit/?id=f591fd26ca8e4a32048287c880bac1f7e12301e7 commit f591fd26ca8e4a32048287c880bac1f7e12301e7 Author: Brad Davis AuthorDate: 2025-09-19 14:38:20 +0000 Commit: Brad Davis CommitDate: 2025-10-04 18:18:39 +0000 vnet.9: Remove references to non-existant macros and update how to virtualize sysctls Approved by: bcr, ziaee MFC after: 1 week MFC to: stable/14, stable/15 Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D52620 (cherry picked from commit 22886d3af0657dae3b547b21e612642bb47e0321) --- share/man/man9/vnet.9 | 52 ++++----------------------------------------------- 1 file changed, 4 insertions(+), 48 deletions(-) diff --git a/share/man/man9/vnet.9 b/share/man/man9/vnet.9 index 28e28bfd3242..679ccc3f9a06 100644 --- a/share/man/man9/vnet.9 +++ b/share/man/man9/vnet.9 @@ -25,7 +25,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd December 10, 2020 +.Dd September 19, 2025 .Dt VNET 9 .Os .Sh NAME @@ -162,26 +162,6 @@ .Fa "int priority" .Fc .\" ------------------------------------------------------------ -.Ss "Sysctl Handling" -.Fo SYSCTL_VNET_INT -.Fa parent nbr name access ptr val descr -.Fc -.Fo SYSCTL_VNET_PROC -.Fa parent nbr name access ptr arg handler fmt descr -.Fc -.Fo SYSCTL_VNET_STRING -.Fa parent nbr name access arg len descr -.Fc -.Fo SYSCTL_VNET_STRUCT -.Fa parent nbr name access ptr type descr -.Fc -.Fo SYSCTL_VNET_UINT -.Fa parent nbr name access ptr val descr -.Fc -.Fo VNET_SYSCTL_ARG -.Fa req arg1 -.Fc -.\" ------------------------------------------------------------ .Sh DESCRIPTION .Nm is the name of a technique to virtualize the network stack. @@ -250,9 +230,6 @@ The .Fn VNET_NAME macro returns the offset within the memory region of the virtual network stack instance. -It is usually only used with -.Fn SYSCTL_VNET_* -macros. .\" ------------------------------------------------------------ .Ss "Virtual Instance Selection" .\" @@ -459,30 +436,9 @@ call will be ignored. .\" A .Xr sysctl 9 -can be virtualized by using one of the -.Fn SYSCTL_VNET_* -macros. -.Pp -They take the same arguments as the standard -.Xr sysctl 9 -functions, with the only difference, that the -.Fa ptr -argument has to be passed as -.Ql &VNET_NAME(foo) -instead of -.Ql &foo -so that the variable can be selected from the correct memory -region of the virtual network stack instance of the caller. -.Pp -For the very rare case a sysctl handler function would want to -handle -.Fa arg1 -itself the -.Fn VNET_SYSCTL_ARG req arg1 -is provided that will translate the -.Fa arg1 -argument to the correct memory address in the virtual network stack -context of the caller. +can be virtualized by adding the +.Dv CTLFLAG_VNET +control flag to the ctlflags bitmask of the macros. .\" ------------------------------------------------------------ .Sh SEE ALSO .Xr jail 2 ,