From nobody Sat Aug 20 03:08:02 2022 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 4M8k8M1MVPz4Z1M7; Sat, 20 Aug 2022 03:08: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4M8k8M0v0cz3V3Y; Sat, 20 Aug 2022 03:08:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660964883; 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=04x7rEjiRpDaXTE5AAHdiGoGTDLyVvfPVxfJDQbuT1U=; b=DsBT+y6d4xrqHmOAReTx53UHDUADSa4YqmrTIw7+AhxE0wohC1M04J4DuGHxGWsVpaBfeD Fs/RQ0XgZZZ0Nc7/5rTVU9SQ3fEx+aWnLywOgfOlPLMuYi7EmcbAYNPv5hRFsq33H1al7V zAFhXOtO/pfWwsiEzDx/Bs/2qXYHBIhkgp7+GHa0mw4CP/IMnQdkH6HxmAqgDp+d0m9Oly HG54411+IXgwRRZGYPxxQ67OwWFNqZxu1325DVRyeCdnWjX6ZaSg5qrz2ayR8KdWRV2smW KLa7fSlEnoFpdVhuv1rSmZm4Il1hprv4iTOuwFdYx92g42wWunfR+7hYKKN6Nw== 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 4M8k8L75RvzH7G; Sat, 20 Aug 2022 03:08:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 27K382JJ068307; Sat, 20 Aug 2022 03:08:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27K382TY068306; Sat, 20 Aug 2022 03:08:02 GMT (envelope-from git) Date: Sat, 20 Aug 2022 03:08:02 GMT Message-Id: <202208200308.27K382TY068306@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Alan Somers Subject: git: baa6a68cbe47 - stable/13 - ip6(4): document IP_ORIGDSTADDR 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: asomers X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: baa6a68cbe47b257c771e9b7f7254750df46bd3f Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660964883; 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=04x7rEjiRpDaXTE5AAHdiGoGTDLyVvfPVxfJDQbuT1U=; b=W11Dpza2OgXMCsEMHGNygrHhBNF4wa756sAtXCdGlse99SODrZ2L8DtFUDFMW58fYORFac Eyxc7HoAFDr62YSTKaZxXXXNCow9ZIcJfZbYhPORg218QywSNi6bu3zWEKwKEJQhn4mkk4 bnDC9S1ZJ+aQ1PJlFrz8LrfkB77QCba3BxnGHZB2n/U10nyxO0SrgoDXQrF3O/o1KApBwS ajvKbKrwq5d3CiJKp5w9pif2dwXpfflw1FlVe9TZtuIB4fchPBcFxOiQAt+v4H/lt6XMGZ 3MBGoZERAmZ2lv7qt1kfJk8QWLBjkcTAmI5m+qNsN9hPnrCgkruJP1qxzkiO4w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660964883; a=rsa-sha256; cv=none; b=CTRv3Q5LP8uQ+ARBKSw3vu/uK+543Tj68O52X8igNBpsBzt+eJomqDJ6gktQdYqxPpbGaB vUhvNzSO0/oWFgT2dy/Qb1c5gulQdmxUEPfgvqHjpu9OLvZ8r7dnCmVmMEii7vCftyi2Vs qprUByjqmqka92SZ9eMr2ZNP8EjyxdDtbieDTYE09jI0YAlyRYXaXLeDW2TdYJ1e9G709f UnMPFWTfL+9FZdnXY4d7DUnwZvgOBwbofrY+vyKptV0NzQlyKy6SvHPz22hMU06Q2LvZ+E 89LmDjMYtKesLeCaZ07RlC+zcG6/cVC9ogcqjPBbsG7rdfT7/7oT47DnAnUvsQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by asomers: URL: https://cgit.FreeBSD.org/src/commit/?id=baa6a68cbe47b257c771e9b7f7254750df46bd3f commit baa6a68cbe47b257c771e9b7f7254750df46bd3f Author: Alan Somers AuthorDate: 2022-07-24 15:06:39 +0000 Commit: Alan Somers CommitDate: 2022-08-20 03:07:55 +0000 ip6(4): document IP_ORIGDSTADDR The option was originally added in r313524, but with incomplete documentation. Reviewed by: karels, gbe (manpages) Differential Revision: https://reviews.freebsd.org/D35890 (cherry picked from commit a043594c211fd36228f4d84273885da50bb7f59c) --- share/man/man4/ip6.4 | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/share/man/man4/ip6.4 b/share/man/man4/ip6.4 index 9c94b3def444..9dd9007866a2 100644 --- a/share/man/man4/ip6.4 +++ b/share/man/man4/ip6.4 @@ -30,7 +30,7 @@ .\" .\" $FreeBSD$ .\" -.Dd July 30, 2021 +.Dd July 24, 2022 .Dt IP6 4 .Os .Sh NAME @@ -156,9 +156,6 @@ datagrams sent on this socket. .\" .It Dv IPV6_RECVDSTADDR Fa "int *" .\" Get or set the status of whether datagrams are received with .\" destination addresses. -.\" .It Dv IPV6_ORIGDSTADDR Fa "int *" -.\" Get or set the status of whether datagrams are received with -.\" destination addresses and destination ports. .\" .It Dv IPV6_RETOPTS .\" Get or set IPv6 options. .It Dv IPV6_MULTICAST_IF Fa "u_int *" @@ -227,6 +224,14 @@ Note that setting to this value requires superuser privileges. Drop membership from the associated multicast group. Memberships are automatically dropped when the socket is closed or when the process exits. +.It Dv IPV6_ORIGDSTADDR Fa "int *" +Get or set whether a datagram's original destination address and port are +returned as ancillary data along with the payload in subsequent +.Xr recvmsg 2 +calls. +The information is stored in the the ancillary data as a +.Tn sockaddr_in6 +structure. .It Dv IPV6_PORTRANGE Fa "int *" Get or set the allocation policy of ephemeral ports for when the kernel automatically binds a local address to this socket. @@ -420,8 +425,9 @@ The .Dv IPV6_HOPLIMIT , .Dv IPV6_HOPOPTS , .Dv IPV6_DSTOPTS , +.Dv IPV6_RTHDR , and -.Dv IPV6_RTHDR +.Dv IPV6_ORIGDSTADDR options will return ancillary data along with payload contents in subsequent .Xr recvmsg 2 calls with @@ -432,7 +438,7 @@ and .Va cmsg_type set to respective option name value (e.g., .Dv IPV6_HOPTLIMIT ) . -These options may also be used directly as ancillary +Some of these options may also be used directly as ancillary .Va cmsg_type values in .Xr sendmsg 2