~ubuntu-branches/ubuntu/saucy/manpages/saucy

« back to all changes in this revision

Viewing changes to man7/ipv6.7

  • Committer: Bazaar Package Importer
  • Author(s): Joey Schulze
  • Date: 2008-11-29 12:01:13 UTC
  • mfrom: (1.1.36 upstream) (2.1.12 sid)
  • Revision ID: james.westby@ubuntu.com-20081129120113-7nufimylf2grlth8
* New upstream version
  . Fix description of range of function value return in atan2(3)
    (closes: Bug#506299)
  . Clarify and add more detail in RETURN VALUE description in
    getpwnam(3) and getgrnam(3) (closes: Bug#504787)
  . Add text on use of pointer arguments to makecontext(3) (closes:
    Bug#504699)
  . Document that LOG_KERN messages can't be generated from user
    processes in syslog(3)
* Avoid distribution of more pthread manpages that are currently also
  provided by glibc-doc:
  . pthread_attr_setinheritsched(3)
  . pthread_cancel(3)
  . pthread_cleanup_pop(3)
  . pthread_cleanup_push(3)
  . pthread_setcancelstate(3)
  . pthread_setcanceltype(3)
  . pthread_testcancel(3)

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
.BR socket (7).
27
27
.PP
28
28
The IPv6 API aims to be mostly compatible with the
29
 
.BR ip (7)
30
 
v4 API.
 
29
IPv4 API (see
 
30
.BR ip (7)).
31
31
Only differences are described in this man page.
32
32
.PP
33
33
To bind an
34
34
.B AF_INET6
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
36
36
.I in6addr_any
37
37
variable which has
38
38
.I in6_addr
39
39
type.
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.
44
44
.PP
45
45
The IPv6 loopback address (::1) is available in the global
46
46
.I in6addr_loopback
47
47
variable.
48
 
For initializations
 
48
For initializations,
49
49
.B IN6ADDR_LOOPBACK_INIT
50
50
should be used.
51
51
.PP
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.
58
58
.PP
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"
64
64
.in +4n
90
90
.I sin6_addr
91
91
is the 128-bit IPv6 address.
92
92
.I sin6_scope_id
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
96
96
.I sin6_scope_id
264
264
The argument is a pointer to a boolean value in an integer.
265
265
 
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
270
270
.SH VERSIONS
326
326
.PP
327
327
RFC\ 2460: IPv6 specification.
328
328
.SH COLOPHON
329
 
This page is part of release 3.13 of the Linux
 
329
This page is part of release 3.14 of the Linux
330
330
.I man-pages
331
331
project.
332
332
A description of the project,