Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Aug 2022 02:59:52 GMT
From:      Alan Somers <asomers@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: e1d8b0f49a9e - stable/12 - ip6(4): document IP_ORIGDSTADDR
Message-ID:  <202208200259.27K2xq7l052508@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/12 has been updated by asomers:

URL: https://cgit.FreeBSD.org/src/commit/?id=e1d8b0f49a9eb9d7c23591e70f6077f59fbb25c5

commit e1d8b0f49a9eb9d7c23591e70f6077f59fbb25c5
Author:     Alan Somers <asomers@FreeBSD.org>
AuthorDate: 2022-07-24 15:06:39 +0000
Commit:     Alan Somers <asomers@FreeBSD.org>
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202208200259.27K2xq7l052508>