From nobody Sat Oct 4 18:17:46 2025 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 4cfDKR0xPbz69Vx7; Sat, 04 Oct 2025 18:17:47 +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 4cfDKR04tjz3gQ4; Sat, 04 Oct 2025 18:17:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1759601867; 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=p9f/bxTjd4sB+ucDbnO/sDM9fYK4U0MSqk1syOeRi4w=; b=lZx6NI9dlnFWFReJPZuXz3FI5xqaFEs8xuutPOWgD175rdU9h2hCp4wXoswlzIQHgASQBd 98ZgVZLrZYRyCTADd5ovGzb8bDq2Q504cSzmkKOboF34F81BdfcoyMIM6xQipa5Me23ScE tFj7J/XK3XyN//V2V00ZoQPCmMGFmdnKok62kWxP2PyjUVYqzJgRzXMX51fXYPDYebfLob BTvC97e3fYZRhCxSuL4EsW01DvkSChu1vOFmtfPtkchPep46hykVgX8focjlLygVFXlHER HIlgidLRsDZvISCeYnL3Fq0l7GEP7t4CiuQyfTFrxcMd9jYTEvXr/Wn0fRWViQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1759601867; 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=p9f/bxTjd4sB+ucDbnO/sDM9fYK4U0MSqk1syOeRi4w=; b=YYCh8hBOJYe/OJ73WaZZKFhSgJkvFZp8p5uxJhjosjUfUvUzkzHgp8mOZ+qtYRAXZiFBBi WAINnrRGWt476gI+sXIZu88WkY1EOwI+ot8rcAnM3XrOWkkO1uFRyKbyjgJUmW+ptbR4/j 7KFEwFgsv5HorJ1JhsNtZ8YqPsYnraURQZCGvCBtm3/iYQXbpp5Z3xyb7DGAd6kiguCvkK atSbFhwl2XB9JQAxWTJkRi0FhdC7D2qqXPHDdxFy7ME8D/NGUIlHmuY9c1OQ6Mo2l3rJmJ 6XqIgp3kbw5FeMFonsa+Vr2nH3HAcFa1evdGLvGt1VdgaA/feXvCA0iRj7K0SA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1759601867; a=rsa-sha256; cv=none; b=m631RNRZt+u65gqoej6LScjkS8HG3YQY83iDTwwls9dF/M1N5t2KrtsS9w6v1GwQC9qc+0 dmQUWY6/bVK+K9Mec/rdvjJBBLEa8l4Awg9V4vmcvLmFcgPZ1+simHOTCsdrxi7w4gDKsN 1cZbHyGRLhcpeG6u0+te5yoLVGu10p2mVXH2jAz+fOXWu/2t4571aTOTmQbfJKN6GDGSc8 82C4p274GHFHdLBOEDcsQuERpS6NQq/aetPYeHEDiCs/aaPTIvHtkdEuPvP2jvtb4NDyu+ Zgn6TWw4ZOtOtTk6dPEbMjuuSUjj3AVJWRRIEXrNWFqgBwmGvLi7pWbDTU0P3w== 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 4cfDKQ6ndQzsmW; Sat, 04 Oct 2025 18:17:46 +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 594IHkFN029123; Sat, 4 Oct 2025 18:17:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 594IHki2029120; Sat, 4 Oct 2025 18:17:46 GMT (envelope-from git) Date: Sat, 4 Oct 2025 18:17:46 GMT Message-Id: <202510041817.594IHki2029120@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: e991ca922a32 - stable/15 - vnet.9: Remove references to non-existant macros and update how to virtualize sysctls 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: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@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/15 X-Git-Reftype: branch X-Git-Commit: e991ca922a32857b95cd7b24da7a023fe09b693e Auto-Submitted: auto-generated The branch stable/15 has been updated by brd: URL: https://cgit.FreeBSD.org/src/commit/?id=e991ca922a32857b95cd7b24da7a023fe09b693e commit e991ca922a32857b95cd7b24da7a023fe09b693e Author: Brad Davis AuthorDate: 2025-09-19 14:38:20 +0000 Commit: Brad Davis CommitDate: 2025-10-04 18:17:17 +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 ,