diff --git a/man7/ipv6.7 b/man7/ipv6.7 index 95ec76778..5209cb92c 100644 --- a/man7/ipv6.7 +++ b/man7/ipv6.7 @@ -26,39 +26,39 @@ is based on the BSD sockets interface; see .BR socket (7). .PP The IPv6 API aims to be mostly compatible with the -.BR ip (7) -v4 API. +IPv4 API (see +.BR ip (7)). Only differences are described in this man page. .PP To bind an .B AF_INET6 -socket to any process the local address should be copied from the +socket to any process, the local address should be copied from the .I in6addr_any variable which has .I in6_addr type. -In static initializations +In static initializations, .B IN6ADDR_ANY_INIT may also be used, which expands to a constant expression. -Both of them are in network order. +Both of them are in network byte order. .PP The IPv6 loopback address (::1) is available in the global .I in6addr_loopback variable. -For initializations +For initializations, .B IN6ADDR_LOOPBACK_INIT should be used. .PP IPv4 connections can be handled with the v6 API by using the v4-mapped-on-v6 address type; -thus a program only needs only to support this API type to +thus a program only needs to support this API type to support both protocols. This is handled transparently by the address -handling functions in libc. +handling functions in the C library. .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 a IPv6 socket, its source address will be mapped to v6 and it will be mapped to v6. .SS "Address Format" .in +4n @@ -90,7 +90,7 @@ is the IPv6 flow identifier; .I sin6_addr is the 128-bit IPv6 address. .I sin6_scope_id -is an ID of depending of on the scope of the address. +is an ID depending on the scope of the address. It is new in Linux 2.4. Linux only supports it for link scope addresses, in that case .I sin6_scope_id