From nobody Fri Jul 29 15:08:14 2022 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 4LvW9W1Rgqz4XS4Z; Fri, 29 Jul 2022 15:08:15 +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 4LvW9V6p27z3L9d; Fri, 29 Jul 2022 15:08:14 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659107295; 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=4LbPj/97oVUrfV3Jvj0mVczreUAMugTFkxZi1V395fg=; b=BqzM1h8f0Da7bN56B1fdrc34CS/ugz8ERTGXuwNEcj1iv+aSpSrRoRrcHhWurdqLR8bhWj MgmPoIQasRYlSpsKZlNX1M2otaudSUsYYpYN+1T63wZgDOlXBSexpaPVH4GrhpdfIa8bJD x5uuc5QhowmZLXh10ITTlE0ggWgWWKdWjrdMPCv8x6DTxpPWJXs+I46KZwlCbCcvhpBFWh akob7pogH+68WYVuliG2wD525Ot5Ftl0JeflYo/HZnc9ESymsCXs21x6jLgZheWbLVhbRJ GETXUOonCL1CwMfiTtBMFQ+WaCuLzKxgGlRIcMJ3O78mb/ugFMlVxpCYJCMupQ== 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 4LvW9V5mzrzg5K; Fri, 29 Jul 2022 15:08:14 +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 26TF8ERU024445; Fri, 29 Jul 2022 15:08:14 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26TF8EXg024444; Fri, 29 Jul 2022 15:08:14 GMT (envelope-from git) Date: Fri, 29 Jul 2022 15:08:14 GMT Message-Id: <202207291508.26TF8EXg024444@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Alan Somers Subject: git: a043594c211f - main - ip6(4): document IP_ORIGDSTADDR 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: asomers X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a043594c211fd36228f4d84273885da50bb7f59c Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659107295; 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=4LbPj/97oVUrfV3Jvj0mVczreUAMugTFkxZi1V395fg=; b=rBAwZtyGUuY0X5xe7KzJfN5DMz8QEm7yhu0aThhvtFddK2QRHL9duoKOUOkT53DKMWULYS 35DxLCnPw6hnySN81Vre4oJckjXlx6lfdqTm9abnUQg8+JEy5s74ghAqvdHM6K5Fgw91qq E0kj+cDwHvw95Aqi6+oR1v4681f0HLxqVpEy1IMZFWrzJFM7j6WgZKbG60rYT+9j+YR9eG JkKU/kUKN34sFUa4qZuJTpxIC64ndgBquQHWy3HHCJDa1H+P1cZF/PuUVPJrBaDolCBjTc L3eywHEt78Yed8w9HgyWalRWJrqhbEm/HLqOf4CylJUYQhdnn/bKuKXHYbb6JQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659107295; a=rsa-sha256; cv=none; b=J+8tcRZz+iYu24KWX4fR8z5LPnJGfTcAOOJVlNPYBLN1gZZFOL7/AsS8wsmO8b+TXxARo2 pRYOZiz6nlm5kjDMJNKpAA8WSBVk8CSQI72HYW1Nhy2wsdVtxpNa87YeqELmvEC538GP4U PjwFe0gKMV7JS1PXsgX9OGlh09OpPu87ynmmVB+4VO3Xf2B1/wjJ79Flz5zBeCVxV1nOBY ZN56fTFrqyvCQD3C9uOf4kMUi05F4GilwLXl73zo16BoegIlVVwctROaTjyEjW2RJnjhYE /oRsiyEp/KGGstODsd2lQg2czbxY4DcSca92UTTnP+9BVPPeQ1A3YVslAo9ZHg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by asomers: URL: https://cgit.FreeBSD.org/src/commit/?id=a043594c211fd36228f4d84273885da50bb7f59c commit a043594c211fd36228f4d84273885da50bb7f59c Author: Alan Somers AuthorDate: 2022-07-24 15:06:39 +0000 Commit: Alan Somers CommitDate: 2022-07-29 15:06:19 +0000 ip6(4): document IP_ORIGDSTADDR The option was originally added in r313524, but with incomplete documentation. MFC after: 1 week Reviewed by: karels, gbe (manpages) Differential Revision: https://reviews.freebsd.org/D35890 --- 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