From nobody Sat Aug 20 02:59:52 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 4M8jyw2H9Jz4Z0QP; Sat, 20 Aug 2022 02:59:52 +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 4M8jyw1mMVz3ScQ; Sat, 20 Aug 2022 02:59:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660964392; 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=jn3MuVODv4xV0gz3egT57SHS/zjUjd7sy76CbCCrZOY=; b=ilhtcmI2d44BVDuyw2hv7Bz1Y5Fqe3Ys3MVkQYNv8mdEspvY1lDakmxJ4VQzSCV0AhdchR +918Tri/s6Uai702m8I8xVvJ6/Ro51HNyxUbAkuoGODjHDXpl2a5uKGH9XzBHiBYuwLMEv h3bTpHZrxPXc0MEE847wX4MTBEJ29AyfusBVENd9LwLsFnjIPFEx27RNyTW23Qup//jsyQ gDHS+b96rHC8Wb+ref70k5CQkY3SPZvoIP0LAbLDGCfJaJJnEc0iGCgvWeNKnLUAlucZtW QnINn1BdgMHmEcYk/BDwfLXkDZScik3Dl0B5AAnjHSVrY+cG3nYjBXYKlxC3zQ== 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 4M8jyw0r5tzGgK; Sat, 20 Aug 2022 02:59:52 +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 27K2xqwX052509; Sat, 20 Aug 2022 02:59:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27K2xq7l052508; Sat, 20 Aug 2022 02:59:52 GMT (envelope-from git) Date: Sat, 20 Aug 2022 02:59:52 GMT Message-Id: <202208200259.27K2xq7l052508@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: e1d8b0f49a9e - stable/12 - 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/stable/12 X-Git-Reftype: branch X-Git-Commit: e1d8b0f49a9eb9d7c23591e70f6077f59fbb25c5 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660964392; 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=jn3MuVODv4xV0gz3egT57SHS/zjUjd7sy76CbCCrZOY=; b=CQoyFafKesSMN9Cyk04BFLGv0WpCwxdH0qWLtuJTGHRggJCWz3nLWVDKQy8KpvkQbybrB7 o7G0m1c7RB+VmC1b4n9Vlz+vOM2GskbkEdnH+3mVbeeWoxBvYQd3EbwyNr53/FKzjV6PCp CaZXQEb9b0vNJrzgWUqJANrZFIYMckZJGuA4NuTFVvq86ereXjCtqYiSEucxACK+ocH4w0 klRyMAkf0AZmpCtltHiHgG3SRuaE5s0nBvvpqjLknzJKSAt15rqq1ASsR77DqQgqzQWAiv s9aHKvG47ND4icALYHiIut2XI+P2nsaCUfpffXgvFdPEAj1lTf+MUusc+PtWXA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660964392; a=rsa-sha256; cv=none; b=M6RWBRKcXmXPttqZMMPqyMGn5mZ47h+fDRhkhempSfTem3zalaqNBFGVY0JkdWMQZp/NQS 6KmVDcQbm81T+xm6vLzX5/iqRjy6gYhf2GVYwx8keh7XPv38aTAwjGX0HYzhzNUfsU9cYe Bxd8rXcRrNOyRY1LbaZ/bpmgH3316xPWEv5CktnoHEN6jLCHCVeUcrxITSLXKuOs1G0rO4 yS1Yi6g1YXrgOsYO4R1P7CJmnlbjHboHWSAQZizW3HUB1Soh7kjXgrhDePdvrwu3ZI8KfK lBLV3ADHL49/inPHMJ+mkMYOOw0XvXnuzowccMWtsrxRus97xs7eVeCoZXsh/w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/12 has been updated by asomers: URL: https://cgit.FreeBSD.org/src/commit/?id=e1d8b0f49a9eb9d7c23591e70f6077f59fbb25c5 commit e1d8b0f49a9eb9d7c23591e70f6077f59fbb25c5 Author: Alan Somers AuthorDate: 2022-07-24 15:06:39 +0000 Commit: Alan Somers CommitDate: 2022-08-20 02:59:33 +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 9828510922e1..7b448e365c3a 100644 --- a/share/man/man4/ip6.4 +++ b/share/man/man4/ip6.4 @@ -30,7 +30,7 @@ .\" .\" $FreeBSD$ .\" -.Dd August 19, 2018 +.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