OSDN Git Service

ecc5fcea5c048aeff6a13922f1cbf0b867c33a97
[linuxjm/LDP_man-pages.git] / draft / man7 / ipv6.7
1 .\" This man page is Copyright (C) 2000 Andi Kleen <ak@muc.de>.
2 .\" Permission is granted to distribute possibly modified copies
3 .\" of this page provided the header is included verbatim,
4 .\" and in case of nontrivial modification author and date
5 .\" of the modification is added to the header.
6 .\" $Id: ipv6.7,v 1.4 2001/08/15 18:01:06 hanataka Exp $
7 .\"
8 .\" Japanese Version Copyright (c) 2001 NAKANO Takeo all rights reserved.
9 .\" Translated Sun 18 Feb 2001 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
10 .\" Updated Wed  4 Apr 2001 by Yuichi SATO <ysato@h4.dion.ne.jp>
11 .\" Updated Sat Dec 17 09:31:21 JST 2005 by Yuichi SATO <ysato444@yahoo.co.jp>
12 .\" Updated 2007-05-28, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>, LDP v2.50
13 .\" Updated 2008-08-07, Akihiro MOTOKI, LDP v3.05
14 .\"
15 .\"WORD:        flow identifier         フロー指定子
16 .\"WORD:        control message         制御メッセージ
17 .\"WORD:        incoming 〜            受信 (パケット、データグラム)
18 .\"WORD:        outgoing 〜            送信 (パケット、データグラム)
19 .\"WORD:        asynchronous error      非同期エラー
20 .\"
21 .TH IPV6 7 2011-09-08 "Linux" "Linux Programmer's Manual"
22 .\"O .SH NAME
23 .\"O ipv6, AF_INET6 \- Linux IPv6 protocol implementation
24 .SH 名前
25 ipv6, AF_INET6 \- Linux の IPv6 プロトコル実装
26 .\"O .SH SYNOPSIS
27 .SH 書式
28 .B #include <sys/socket.h>
29 .br
30 .B #include <netinet/in.h>
31 .sp
32 .IB tcp6_socket " = socket(AF_INET6, SOCK_STREAM, 0);"
33 .br
34 .IB raw6_socket " = socket(AF_INET6, SOCK_RAW, " protocol ");"
35 .br
36 .IB udp6_socket " = socket(AF_INET6, SOCK_DGRAM, " protocol ");"
37 .\"O .SH DESCRIPTION
38 .SH 説明
39 .\"O Linux 2.2 optionally implements the Internet Protocol, version 6.
40 .\"O This man page contains a description of the IPv6 basic API as
41 .\"O implemented by the Linux kernel and glibc 2.1.
42 .\"O The interface
43 .\"O is based on the BSD sockets interface; see
44 .\"O .BR socket (7).
45 Linux 2.2 では、Internet Protocol, version 6 を
46 オプションとして実装している。
47 この man ページでは、Linux カーネルと glibc 2.1 での実装に基づいて、
48 IPv6 の基本的な API を解説する。
49 インターフェースは BSD ソケットインターフェースをもとにしている。
50 .BR socket (7)
51 を参照。
52 .PP
53 .\"O The IPv6 API aims to be mostly compatible with the
54 .\"O IPv4 API (see
55 .\"O .BR ip (7)).
56 .\"O Only differences are described in this man page.
57 IPv6 API は、
58 IPv4 API
59 .RB ( ip (7)
60 参照) とほぼ互換になることを目指している。
61 この man ページでは相違点のみを解説する。
62 .PP
63 .\"O To bind an
64 .\"O .B AF_INET6
65 .\"O socket to any process, the local address should be copied from the
66 .\"O .I in6addr_any
67 .\"O variable which has
68 .\"O .I in6_addr
69 .\"O type.
70 .\"O In static initializations,
71 .\"O .B IN6ADDR_ANY_INIT
72 .\"O may also be used, which expands to a constant expression.
73 .\"O Both of them are in network byte order.
74 .B AF_INET6
75 ソケットを何らかのプロセスにバインドするには、
76 ローカルアドレスを
77 .I in6_addr
78 型の変数
79 .I in6addr_any
80 からコピーしてくる必要がある。
81 static な初期値
82 .B IN6ADDR_ANY_INIT
83 も用いることができ、これは定数式に展開される。
84 これらの両者はネットワークバイトオーダーである。
85 .PP
86 .\"O The IPv6 loopback address (::1) is available in the global
87 .\"O .I in6addr_loopback
88 .\"O variable.
89 .\"O For initializations,
90 .\"O .B IN6ADDR_LOOPBACK_INIT
91 .\"O should be used.
92 IPv6 のループバックアドレス (::1) は global 変数
93 .I in6addr_loopback
94 から取得できる。初期化には
95 .B IN6ADDR_LOOPBACK_INIT
96 を用いるべきである。
97 .PP
98 .\"O IPv4 connections can be handled with the v6 API by using the
99 .\"O v4-mapped-on-v6 address type;
100 .\"O thus a program only needs to support this API type to
101 .\"O support both protocols.
102 .\"O This is handled transparently by the address
103 .\"O handling functions in the C library.
104 v4-mapped-on-v6 アドレス型を用いることで、
105 IPv4 接続も v6 API で扱うことができる。
106 こうすれば、プログラムは v6 の API をサポートするだけで、
107 両方のプロトコルをサポートできる。
108 v4-mapped-on-v6 アドレス型は C ライブラリ内部のアドレスを
109 扱う関数によって透過的に処理される。
110 .PP
111 .\"O IPv4 and IPv6 share the local port space.
112 .\"O When you get an IPv4 connection
113 .\"O or packet to a IPv6 socket, its source address will be mapped
114 .\"O to v6 and it will be mapped to v6.
115 IPv4 と IPv6 はローカルポート空間を共有する。
116 IPv4 の接続 (またはパケット) を IPv6 ソケットが取得すると、
117 発信元アドレスが v6 にマップされ、その接続 (パケット) も v6 にマップされる。
118 .\"nakano: 最後の it がなにを指すのかわからん。
119 .\"O
120 .\"O .SS Address Format
121 .SS アドレスのフォーマット
122 .in +4n
123 .nf
124 struct sockaddr_in6 {
125     sa_family_t     sin6_family;   /* AF_INET6 */
126     in_port_t       sin6_port;     /* port number */
127     uint32_t        sin6_flowinfo; /* IPv6 flow information */
128     struct in6_addr sin6_addr;     /* IPv6 address */
129     uint32_t        sin6_scope_id; /* Scope ID (new in 2.4) */
130 };
131
132 struct in6_addr {
133     unsigned char   s6_addr[16];   /* IPv6 address */
134 };
135 .fi
136 .in
137 .sp
138 .\"O .I sin6_family
139 .\"O is always set to
140 .\"O .BR AF_INET6 ;
141 .\"O .I sin6_port
142 .\"O is the protocol port (see
143 .\"O .I sin_port
144 .\"O in
145 .\"O .BR ip (7));
146 .\"O .I sin6_flowinfo
147 .\"O is the IPv6 flow identifier;
148 .\"O .I sin6_addr
149 .\"O is the 128bit IPv6 address.
150 .\"O .I sin6_scope_id
151 .\"O is an ID depending on the scope of the address.
152 .\"O It is new in Linux 2.4.
153 .\"O Linux only supports it for link scope addresses, in that case
154 .\"O .I sin6_scope_id
155 .\"O contains the interface index (see
156 .\"O .BR netdevice (7))
157 .I sin6_family
158 は常に
159 .B AF_INET6
160 に設定される。
161 .I sin6_port
162 はプロトコルポートである
163 .RB ( ip (7)
164
165 .I sin_port
166 を参照)。
167 .I sin6_flowinfo
168 は IPv6 のフロー指定子 (flow identifier) である。
169 .I sin6_addr
170 は 128 ビットの IPv6 アドレスである。
171 .I sin6_scope_id
172 はアドレスのスコープに依存した ID である
173 (これは Linux 2.4 で導入された)。
174 Linux の場合は、これはリンクスコープアドレスでしかサポートされない。
175 この場合
176 .I sin6_scope_id
177 にはインターフェースのインデックスが含まれることになる
178 .RB ( netdevice (7)
179 を参照)。
180 .PP
181 .\"O IPv6 supports several address types: unicast to address a single
182 .\"O host, multicast to address a group of hosts,
183 .\"O anycast to address the nearest member of a group of hosts
184 .\"O (not implemented in Linux), IPv4-on-IPv6 to
185 .\"O address a IPv4 host, and other reserved address types.
186 IPv6 は何種類かのアドレスタイプをサポートしている。
187 単一のホストをアドレスするための unicast、
188 ホストのグループをアドレスするための multicast、
189 ホストのグループ中で最も近くにいるものをアドレスするための anycast
190 (これは Linux では実装されていない)、
191 IPv4 ホストをアドレスするための IPv4-on-IPv6。
192 他にも予約済みのアドレスタイプがある。
193 .PP
194 .\"O The address notation for IPv6 is a group of 8 4-digit hexadecimal
195 .\"O numbers, separated with a \(aq:\(aq.
196 .\"O \&"::" stands for a string of 0 bits.
197 .\"O Special addresses are ::1 for loopback and ::FFFF:<IPv4 address>
198 .\"O for IPv4-mapped-on-IPv6.
199 IPv6 でのアドレス表記は 4 桁の 16 進数 8 個からなり、
200 \(aq:\(aq は区切り文字はで、"::" は 0 ビットの文字列を表す。
201 特殊なアドレスとして、ループバックを表す ::1、
202 IPv4-mapped-on-IPv6 を表す ::FFFF::<IPv4 アドレス> がある。
203 .PP
204 .\"O The port space of IPv6 is shared with IPv4.
205 IPv6 のポート空間は IPv4 と共有されている。
206 .\"O .SS "Socket Options"
207 .SS ソケットオプション
208 .\"O IPv6 supports some protocol-specific socket options that can be set with
209 .\"O .BR setsockopt (2)
210 .\"O and read with
211 .\"O .BR getsockopt (2).
212 .\"O The socket option level for IPv6 is
213 .\"O .BR IPPROTO_IPV6 .
214 .\"O A boolean integer flag is zero when it is false, otherwise true.
215 IPv6 はプロトコル固有のソケットオプションをいくつかサポートしている。
216 これらは
217 .BR setsockopt (2)
218 で設定でき、
219 .BR getsockopt (2)
220 で取得できる。
221 IPv6 のソケットオプションレベルは
222 .B IPPROTO_IPV6
223 である。
224 ブール整数のフラグは、0 が偽であり、それ以外は真である。
225 .TP
226 .B IPV6_ADDRFORM
227 .\"O Turn an
228 .\"O .B AF_INET6
229 .\"O socket into a socket of a different address family.
230 .\"O Only
231 .\"O .B AF_INET
232 .\"O is currently supported for that.
233 .\"O It is only allowed for IPv6 sockets
234 .\"O that are connected and bound to a v4-mapped-on-v6 address.
235 .\"O The argument is a pointer to an integer containing
236 .\"O .BR AF_INET .
237 .\"O This is useful to pass v4-mapped sockets as file descriptors to
238 .\"O programs that  don't know how to deal with the IPv6 API.
239 .B AF_INET6
240 ソケットを別のアドレスファミリーのソケットに変える。
241 現在は
242 .B AF_INET
243 のみが変更先のアドレスファミリーとしてサポートされている。
244 これが許可されるのは、IPv6 が接続され、
245 v4-mapped-on-v6 アドレスにバインドされた場合に限られる。
246 引き数は
247 .B AF_INET
248 が入っている整数へのポインタである。
249 v4-mapped ソケットを、IPv6 API を扱えないプログラムに対して
250 ファイルディスクリプターとして渡す場合に便利。
251 .TP
252 .B IPV6_ADD_MEMBERSHIP, IPV6_DROP_MEMBERSHIP
253 .\"O Control membership in multicast groups.
254 .\"O Argument is a pointer to a
255 .\"O .I struct ipv6_mreq
256 .\"O structure.
257 multicast グループのメンバーを制御する。
258 引き数は
259 .I struct ipv6_mreq
260 構造体へのポインタ。
261 .\"O .\" FIXME IPV6_CHECKSUM is not documented, and probably should be
262 .\"O .\" FIXME IPV6_JOIN_ANYCAST is not documented, and probably should be
263 .\"O .\" FIXME IPV6_LEAVE_ANYCAST is not documented, and probably should be
264 .\" FIXME IPV6_CHECKSUM は記述されていないが、記述すべきだろう。
265 .\" FIXME IPV6_JOIN_ANYCAST は記述されていないが、記述すべきだろう。
266 .\" FIXME IPV6_LEAVE_ANYCAST は記述されていないが、記述すべきだろう。
267 .\"O .\" FIXME IPV6_RECVPKTINFO is not documented, and probably should be
268 .\"O .\" FIXME IPV6_2292PKTINFO is not documented, and probably should be
269 .\"O .\" FIXME there are probably many other IPV6_* socket options that
270 .\"O .\" should be documented
271 .\" FIXME IPV6_RECVPKTINFO は記述されていないが、記述すべきだろう。
272 .\" FIXME IPV6_2292PKTINFO は記述されていないが、記述すべきだろう。
273 .\" FIXME 他にも多くの記述すべき IPV6_* ソケットオプションがあるだろう。
274 .TP
275 .B IPV6_MTU
276 .\"O Set the MTU to be used for the socket.
277 .\"O The MTU is limited by the device
278 .\"O MTU or the path MTU when path MTU discovery is enabled.
279 .\"O Argument is a pointer to integer.
280 そのソケットに対して用いる MTU の値を設定する。
281 MTU の大きさは、
282 そのデバイスの MTU または (Path MTU Discovery
283 が可能なら) その経路の MTU の大きさ以下でなければならない。
284 引き数は整数へのポインタ。
285 .TP
286 .B IPV6_MTU_DISCOVER
287 .\"O Control path-MTU discovery on the socket.
288 .\"O See
289 .\"O .B IP_MTU_DISCOVER
290 .\"O in
291 .\"O .BR ip (7)
292 .\"O for details.
293 そのソケットでの Path MTU Discovery を制御する。
294 詳細は
295 .BR ip (7)
296
297 .B IP_MTU_DISCOVER
298 を参照。
299 .TP
300 .B IPV6_MULTICAST_HOPS
301 .\"O Set the multicast hop limit for the socket.
302 .\"O Argument is a pointer to an
303 .\"O integer.
304 .\"O \-1 in the value means use the route default, otherwise it should be
305 .\"O between 0 and 255.
306 そのソケットでの multicast の hop 数の上限値を設定する。
307 引き数は整数へのポインタである。
308 \-1 を指定すると経路のデフォルトを用いることを意味する。
309 それ以外の場合は 0 から 255 の範囲を指定する。
310 .TP
311 .B IPV6_MULTICAST_IF
312 .\"O Set the device for outgoing multicast packets on the socket.
313 .\"O This is only allowed
314 .\"O for
315 .\"O .B SOCK_DGRAM
316 .\"O and
317 .\"O .B SOCK_RAW
318 .\"O socket.
319 .\"O The argument is a pointer to an interface index (see
320 .\"O .BR netdevice (7))
321 .\"O in an integer.
322 そのソケットでの、送信 multicast パケットに用いるデバイスを設定する。
323 これは
324 .B SOCK_DGRAM
325 および
326 .B SOCK_RAW
327 各ソケットでのみ許される。
328 引き数はインターフェースのインデックスの整数値
329 .RB ( netdevice (7)
330 を参照) へのポインタである。
331 .TP
332 .B IPV6_MULTICAST_LOOP
333 .\"O Control whether the socket sees multicast packets that it has send itself.
334 .\"O Argument is a pointer to boolean.
335 ソケットが、自分自身の送信した
336 multicast パケットを監視するかどうかを制御する。
337 引き数はブール値へのポインタ。
338 .TP
339 .B IPV6_PKTINFO
340 .\"O Set delivery of the
341 .\"O .B IPV6_PKTINFO
342 .\"O control message on incoming datagrams.
343 .\"O Only allowed for
344 .\"O .B SOCK_DGRAM
345 .\"O or
346 .\"O .B SOCK_RAW
347 .\"O sockets.
348 .\"O Argument is a pointer to a boolean value in an integer.
349 データグラムの到着時における
350 .B IPV6_PKTINFO
351 制御メッセージを配送するかどうかを設定する。
352 .B SOCK_DGRAM
353 ソケットまたは
354 .B SOCK_RAW
355 ソケットに対してのみ許可される。
356 引き数はブール値の入った整数。
357 .TP
358 .nh
359 .B IPV6_RTHDR, IPV6_AUTHHDR, IPV6_DSTOPTS, IPV6_HOPOPTS, IPV6_FLOWINFO, IPV6_HOPLIMIT
360 .hy
361 .\"O Set delivery of control messages for incoming datagrams containing
362 .\"O extension headers from the received packet.
363 受信パケットのデータグラムに拡張ヘッダが含まれている場合の、
364 制御メッセージの配送を設定する。
365 .\"O .B IPV6_RTHDR
366 .\"O delivers the routing header,
367 .BR IPV6_RTHDR :
368 routing ヘッダを配送するかどうか。
369 .\"O .B IPV6_AUTHHDR
370 .\"O delivers the authentication header,
371 .BR IPV6_AUTHHDR :
372 authentication ヘッダを配送するかどうか。
373 .\"O .B IPV6_DSTOPTS
374 .\"O delivers the destination options,
375 .BR IPV6_DSTOPTS :
376 destination オプションを配送するかどうか。
377 .\"O .B IPV6_HOPOPTS
378 .\"O delivers the hop options,
379 .BR IPV6_HOPOPTS :
380 hop オプションを配送するかどうか。
381 .\"O .B IPV6_FLOWINFO
382 .\"O delivers an integer containing the flow ID,
383 .BR IPV6_FLOWINFO :
384 flow ID を含む整数を配送するかどうか。
385 .\"O .B IPV6_HOPLIMIT
386 .\"O delivers an integer containing the hop count of the packet.
387 .BR IPV6_HOPLIMIT :
388 パケットの hop カウントを含む整数を配送するかどうか。
389 .\"O The control messages have the same type as the socket option.
390 .\"O All these header options can also be set for outgoing packets
391 .\"O by putting the appropriate control message into the control buffer of
392 .\"O .BR sendmsg (2).
393 .\"O Only allowed for
394 .\"O .B SOCK_DGRAM
395 .\"O or
396 .\"O .B SOCK_RAW
397 .\"O sockets.
398 .\"O Argument is a pointer to a boolean value.
399 制御メッセージはソケットオプションのものと同じタイプを持つ。
400 これらのすべてのヘッダオプションは、
401 適切な制御メッセージを
402 .BR sendmsg (2)
403 の制御バッファーに書きこめば、
404 送信パケットにでも設定できる。
405 .B SOCK_DGRAM
406 ソケットまたは
407 .B SOCK_RAW
408 ソケットでのみ許される。引き数はブール値へのポインタ。
409 .TP
410 .B IPV6_RECVERR
411 .\"O Control receiving of asynchronous error options.
412 .\"O See
413 .\"O .B IP_RECVERR
414 .\"O in
415 .\"O .BR ip (7)
416 .\"O for details.
417 .\"O Argument is a pointer to boolean.
418 非同期エラー (asynchronous error) オプションの受信を制御する。
419 詳細は
420 .BR ip (7)
421
422 .B IP_RECVERR
423 を参照。
424 引き数はブール値へのポインタ。
425 .TP
426 .B IPV6_ROUTER_ALERT
427 .\"O Pass forwarded packets containing a router alert hop-by-hop option to
428 .\"O this socket.
429 .\"O Only allowed for SOCK_RAW sockets.
430 .\"O The tapped packets are not forwarded by the kernel, it is the
431 .\"O user's responsibility to send them out again.
432 このソケットで、router alert hop-by-hop オプションの付いた転送パケットを
433 通すかどうかを制御する。
434 .B SOCK_RAW
435 ソケットでのみ許可される。
436 tap されたパケットはカーネルによっては転送されない。そうしたパケットを
437 再度送信するのはユーザーの責任である。
438 .\"O Argument is a pointer to an integer.
439 .\"O A positive integer indicates a router alert option value to intercept.
440 .\"O Packets carrying a router alert option with a value field containing
441 .\"O this integer will be delivered to the socket.
442 .\"O A negative integer disables delivery of packets with router alert options
443 .\"O to this socket.
444 引き数は整数 (integer) へのポインタ。
445 正の整数は傍受を行う router alert オプション値を示す。
446 オプション値がこの整数である router alert オプションの付いたパケットは
447 ソケットに配送される。負の整数を指定すると、このソケットへの
448 router alert オプションの付いたパケットの配送が行われない。
449 .\" FLOWLABEL_MGR, FLOWINFO_SEND
450 .TP
451 .B IPV6_UNICAST_HOPS
452 .\"O Set the unicast hop limit for the socket.
453 .\"O Argument is a pointer to an integer.
454 .\"O \-1 in the value means use the route default,
455 .\"O otherwise it should be between 0 and 255.
456 そのソケットでの unicast の hop 数の上限値を設定する。
457 引き数は整数へのポインタである。
458 \-1 を指定すると経路のデフォルトを用いることを意味する。
459 それ以外の場合は 0 から 255 の範囲を指定する。
460 .TP
461 .\"O .BR IPV6_V6ONLY " (since Linux 2.4.21 and 2.6)"
462 .BR IPV6_V6ONLY " (Linux 2.4.21 以降および 2.6 以降)"
463 .\" See RFC 3493
464 .\"O If this flag is set to true (nonzero), then the socket is restricted
465 .\"O to sending and receiving IPv6 packets only.
466 .\"O In this case, an IPv4 and an IPv6 application can bind
467 .\"O to a single port at the same time.
468 このフラグを真 (0 以外) に設定すると、そのソケットは IPv6 パケットだけを
469 送受信するように制限される。
470 この場合、IPv4 アプリケーションと IPv6 アプリケーションが同時に
471 一つのポートをバインドできる。
472
473 .\"O If this flag is set to false (zero),
474 .\"O then the socket can be used to send and receive packets
475 .\"O to and from an IPv6 address or an IPv4-mapped IPv6 address.
476 このフラグを偽 (0) に設定すると、そのソケットはパケットの送受信に
477 IPv6 アドレスと IPv4-mapped IPv6 アドレスの両方を使用できる。
478
479 .\"O The argument is a pointer to a boolean value in an integer.
480 引き数はブール値の入った整数へのポインタである。
481
482 .\"O The default value for this flag is defined by the contents of the file
483 .\"O .IR /proc/sys/net/ipv6/bindv6only .
484 .\"O The default value for that file is 0 (false).
485 このフラグのデフォルト値はファイル
486 .I /proc/sys/net/ipv6/bindv6only
487 の内容により定義される。
488 このファイルのデフォルト値は 0 (偽) である。
489 .\"O .SH VERSIONS
490 .SH バージョン
491 .\"O The older
492 .\"O .I libinet6
493 .\"O libc5 based IPv6 API implementation for Linux is not described here
494 .\"O and may vary in details.
495 IPv6 API を libc5 ベースで Linux 向けに実装した、以前の
496 .I libinet6
497 についてはここでは記述していない。
498 おそらく細かいところには相違点があるだろう。
499 .PP
500 .\"O Linux 2.4 will break binary compatibility for the
501 .\"O .I sockaddr_in6
502 .\"O for 64-bit
503 .\"O hosts by changing the alignment of
504 .\"O .I in6_addr
505 .\"O and adding an additional
506 .\"O .I sin6_scope_id
507 .\"O field.
508 .\"O The kernel interfaces stay compatible, but a program including
509 .\"O .I sockaddr_in6
510 .\"O or
511 .\"O .I in6_addr
512 .\"O into other structures may not be.
513 .\"O This is not
514 .\"O a problem for 32bit hosts like i386.
515 Linux 2.4 では 64 ビットのホストに対して
516 .I sockaddr_in6
517 のバイナリ互換性が保たれていない。
518 .I in6_addr
519 のアラインメントが変更され、また
520 .I sin6_scope_id
521 フィールドが新たに追加されたからである。
522 カーネルインターフェースの互換性は保たれているが、
523 .I sockaddr_in6
524
525 .I in6_addr
526 を他の構造体に含んでいるようなプログラムでは
527 保たれないかもしれない。
528 これは i386 のような 32 ビットのホストでは問題にならない。
529 .PP
530 .\"O The
531 .\"O .I sin6_flowinfo
532 .\"O field is new in Linux 2.4.
533 .\"O It is transparently passed/read by the kernel
534 .\"O when the passed address length contains it.
535 .\"O Some programs that pass a longer address buffer and then
536 .\"O check the outgoing address length may break.
537 .I sin6_flowinfo
538 フィールドは Linux 2.4 で登場した。
539 これが渡されたアドレス長に含まれていると、
540 カーネルに透過的に渡され、読まれる。
541 .\"nakano ここわからないです...
542 より長いアドレスバッファを渡し、
543 そして送信アドレスの長さをチェックするようなプログラムは
544 うまく動かないかもしれない。
545 .\"O .SH "NOTES"
546 .SH 注意
547 .\"O The
548 .\"O .I sockaddr_in6
549 .\"O structure is bigger than the generic
550 .\"O .IR sockaddr .
551 .\"O Programs that assume that all address types can be stored safely in a
552 .\"O .I struct sockaddr
553 .\"O need to be changed to use
554 .\"O .I struct sockaddr_storage
555 .\"O for that instead.
556 .I sockaddr_in6
557 構造体はジェネリックな
558 .I sockaddr
559 よりも大きい。
560 すべてのアドレスタイプが
561 .I struct sockaddr
562 の中に安全に納められると仮定しているプログラムは、代わりに
563 .I struct sockaddr_storage
564 を用いるように変更する必要がある。
565 .\"O .SH BUGS
566 .SH バグ
567 .\"O The IPv6 extended API as in RFC\ 2292 is currently only partly
568 .\"O implemented;
569 .\"O although the 2.2 kernel has near complete support for receiving options,
570 .\"O the macros for generating IPv6 options are missing in glibc 2.1.
571 IPv6 拡張 API は、現在まだ RFC\ 2292 を完全には実装していない。
572 2.2 カーネルは受信オプションをほぼ完全にサポートサポートしているが、
573 glibc2.1 には IPv6 オプションを生成するマクロが存在していない。
574 .PP
575 .\"O IPSec support for EH and AH headers is missing.
576 EH および AH ヘッダ での IPSec のサポートは存在しない。
577 .PP
578 .\"O Flow label management is not complete and not documented here.
579 フローラベル管理はまだ完全でなく、ここにも記述されていない。
580 .PP
581 .\"O This man page is not complete.
582 この man ページはまだ完成していない。
583 .\"O .SH SEE ALSO
584 .SH 関連項目
585 .BR cmsg (3),
586 .BR ip (7)
587 .LP
588 RFC\ 2553: IPv6 BASIC API.
589 .\"O Linux tries to be compliant to this.
590 Linux はこの RFC に準拠するようにしている。
591 .LP
592 RFC\ 2460: IPv6 specification.