.\" commit c4062dfc425e94290ac427a98d6b4721dd2bc91f
.\" Author: Erich E. Hoover <ehoover@mines.edu>
.\"
-.TH IPV6 7 2015-03-29 "Linux" "Linux Programmer's Manual"
+.TH IPV6 7 2017-09-15 "Linux" "Linux Programmer's Manual"
.SH NAME
ipv6 \- Linux IPv6 protocol implementation
.SH SYNOPSIS
.PP
IPv4 and IPv6 share the local port space.
When you get an IPv4 connection
-or packet to a IPv6 socket, its source address will be mapped
+or packet to an IPv6 socket, its source address will be mapped
to v6 and it will be mapped to v6.
.SS Address format
.in +4n
-.nf
+.EX
struct sockaddr_in6 {
sa_family_t sin6_family; /* AF_INET6 */
in_port_t sin6_port; /* port number */
struct in6_addr {
unsigned char s6_addr[16]; /* IPv6 address */
};
-.fi
+.EE
.in
-.sp
+.PP
.I sin6_family
is always set to
.BR AF_INET6 ;
host, multicast to address a group of hosts,
anycast to address the nearest member of a group of hosts
(not implemented in Linux), IPv4-on-IPv6 to
-address a IPv4 host, and other reserved address types.
+address an IPv4 host, and other reserved address types.
.PP
The address notation for IPv6 is a group of 8 4-digit hexadecimal
numbers, separated with a \(aq:\(aq.
and other
.BR SOL_ *
socket options are nonportable variants of
-.BR IPPROTO_ *.
+.BR IPPROTO_ * .
See also
.BR ip (7).
.SH BUGS