.\" commit c4062dfc425e94290ac427a98d6b4721dd2bc91f
.\" Author: Erich E. Hoover <ehoover@mines.edu>
.\"
-.TH IPV6 7 2012-12-16 "Linux" "Linux Programmer's Manual"
+.TH IPV6 7 2014-08-19 "Linux" "Linux Programmer's Manual"
.SH NAME
ipv6 \- Linux IPv6 protocol implementation
.SH SYNOPSIS
.PP
IPv4 connections can be handled with the v6 API by using the
v4-mapped-on-v6 address type;
-thus a program only needs to support this API type to
+thus a program needs to support only this API type to
support both protocols.
This is handled transparently by the address
handling functions in the C library.
.I sin6_scope_id
is an ID depending on the scope of the address.
It is new in Linux 2.4.
-Linux only supports it for link-local addresses, in that case
+Linux supports it only for link-local addresses, in that case
.I sin6_scope_id
contains the interface index (see
.BR netdevice (7))
Only
.B AF_INET
is currently supported for that.
-It is only allowed for IPv6 sockets
+It is allowed only for IPv6 sockets
that are connected and bound to a v4-mapped-on-v6 address.
The argument is a pointer to an integer containing
.BR AF_INET .
.TP
.B IPV6_MULTICAST_IF
Set the device for outgoing multicast packets on the socket.
-This is only allowed
-for
+This is allowed only for
.B SOCK_DGRAM
and
.B SOCK_RAW
.B IPV6_ROUTER_ALERT
Pass forwarded packets containing a router alert hop-by-hop option to
this socket.
-Only allowed for SOCK_RAW sockets.
+Only allowed for
+.B SOCK_RAW
+sockets.
The tapped packets are not forwarded by the kernel, it is the
user's responsibility to send them out again.
Argument is a pointer to an integer.
The default value for that file is 0 (false).
.\" FLOWLABEL_MGR, FLOWINFO_SEND
.SH ERRORS
-.\" FIXME document all errors.
.TP
.B ENODEV
The user tried to
structure is not a valid
interface index.
.SH VERSIONS
-The older
-.I libinet6
-libc5 based IPv6 API implementation for Linux is not described here
-and may vary in details.
-.PP
Linux 2.4 will break binary compatibility for the
.I sockaddr_in6
for 64-bit
RFC\ 2553: IPv6 BASIC API;
Linux tries to be compliant to this.
RFC\ 2460: IPv6 specification.
+.SH COLOPHON
+This page is part of release 3.79 of the Linux
+.I man-pages
+project.
+A description of the project,
+information about reporting bugs,
+and the latest version of this page,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.