ipv6.7: fix description of IPV6_PKTINFO
PATCH 1/1 ipv6.7: fix description of IPV6_PKTINFO
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(-)
man7/ipv6.7 +12 -1
@@ -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
Signature · 6 lines
1.7.2.3 -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 2 lines · Christian Franke
IPV6_PKTINFOtakes a structin6_pktinfoas argument, not an int, seelinux/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 [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html