28
28
The IPv6 API aims to be mostly compatible with the
31
31
Only differences are described in this man page.
35
socket to any process the local address should be copied from the
35
socket to any process, the local address should be copied from the
40
In static initializations
40
In static initializations,
41
41
.B IN6ADDR_ANY_INIT
42
42
may also be used, which expands to a constant expression.
43
Both of them are in network order.
43
Both of them are in network byte order.
45
45
The IPv6 loopback address (::1) is available in the global
46
46
.I in6addr_loopback
49
49
.B IN6ADDR_LOOPBACK_INIT
52
52
IPv4 connections can be handled with the v6 API by using the
53
53
v4-mapped-on-v6 address type;
54
thus a program only needs only to support this API type to
54
thus a program only needs to support this API type to
55
55
support both protocols.
56
56
This is handled transparently by the address
57
handling functions in libc.
57
handling functions in the C library.
59
59
IPv4 and IPv6 share the local port space.
60
60
When you get an IPv4 connection
61
or packet to a IPv6 socket its source address will be mapped
61
or packet to a IPv6 socket, its source address will be mapped
62
62
to v6 and it will be mapped to v6.
63
63
.SS "Address Format"
91
91
is the 128-bit IPv6 address.
93
is an ID of depending of on the scope of the address.
93
is an ID depending on the scope of the address.
94
94
It is new in Linux 2.4.
95
95
Linux only supports it for link scope addresses, in that case
264
264
The argument is a pointer to a boolean value in an integer.
266
266
The default value for this flag is defined by the contents of the file
267
.BR /proc/sys/net/ipv6/bindv6only .
267
.IR /proc/sys/net/ipv6/bindv6only .
268
268
The default value for that file is 0 (false).
269
269
.\" FLOWLABEL_MGR, FLOWINFO_SEND
327
327
RFC\ 2460: IPv6 specification.
329
This page is part of release 3.13 of the Linux
329
This page is part of release 3.14 of the Linux
332
332
A description of the project,