public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ipv6.7: fix description of IPV6_PKTINFO
@ 2011-02-10  1:37 Christian Franke
       [not found] ` <20110210013700.GA17765-FCpQSzCsxjR54TAoqtyWWQ@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Christian Franke @ 2011-02-10  1:37 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

  IPV6_PKTINFO takes a struct in6_pktinfo as argument, not an int,
  see linux/net/ipv6/ipv6_sockglue.c
---
 man7/ipv6.7 |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/man7/ipv6.7 b/man7/ipv6.7
index 1e3b4c6..5b0482c 100644
--- a/man7/ipv6.7
+++ b/man7/ipv6.7
@@ -192,7 +192,18 @@ Only allowed for
 or
 .B SOCK_RAW
 sockets.
-Argument is a pointer to a boolean value in an integer.
+Argument is an
+.I in6_pktinfo
+structure.
+.sp
+.in +4n
+.nf
+struct in6_pktinfo {
+    struct in6_addr ipi6_addr;  /* src/dst IPv6 address */
+    unsigned int ipi6_ifindex;  /* interface index */
+};
+.fi
+.in
 .TP
 .nh
 .B IPV6_RTHDR, IPV6_AUTHHDR, IPV6_DSTOPTS, IPV6_HOPOPTS, IPV6_FLOWINFO, IPV6_HOPLIMIT
-- 
1.7.2.3

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ipv6.7: fix description of IPV6_PKTINFO
       [not found] ` <20110210013700.GA17765-FCpQSzCsxjR54TAoqtyWWQ@public.gmane.org>
@ 2011-02-10  1:48   ` Christian Franke
  0 siblings, 0 replies; 2+ messages in thread
From: Christian Franke @ 2011-02-10  1:48 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

On Thu, Feb 10, 2011 at 02:37:00AM +0100, Christian Franke wrote:
>   IPV6_PKTINFO takes a struct in6_pktinfo as argument, not an int,
>   see linux/net/ipv6/ipv6_sockglue.c

This is true for newer kernels. However as bug #18132 points out,
the problem of RFC2292 vs RFC3542 and the current implementation
in Linux is not that simple, so the patch is probably not very
helpful.

-Christian Franke
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-02-10  1:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-10  1:37 [PATCH] ipv6.7: fix description of IPV6_PKTINFO Christian Franke
     [not found] ` <20110210013700.GA17765-FCpQSzCsxjR54TAoqtyWWQ@public.gmane.org>
2011-02-10  1:48   ` Christian Franke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox