OSDN Git Service

(split) LDP: Update release pages
[linuxjm/LDP_man-pages.git] / release / man7 / udplite.7
1 .\" Copyright (c) 2008 by Gerrit Renker <gerrit@erg.abdn.ac.uk>
2 .\"
3 .\" %%%LICENSE_START(VERBATIM)
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
7 .\"
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
12 .\"
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein.  The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
19 .\" professionally.
20 .\"
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" %%%LICENSE_END
24 .\"
25 .\" $Id: udplite.7,v 1.12 2008/07/23 15:22:22 gerrit Exp gerrit $
26 .\"
27 .\"*******************************************************************
28 .\"
29 .\" This file was generated with po4a. Translate the source file.
30 .\"
31 .\"*******************************************************************
32 .\"
33 .\" Japanese Version Copyright (c) 2008  Akihiro MOTOKI
34 .\"         all rights reserved.
35 .\" Translated 2008-08-21, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>, LDP v3.07
36 .\"
37 .TH UDPLITE 7 2008\-12\-03 Linux "Linux Programmer's Manual"
38 .SH 名前
39 udplite \- 軽量なユーザーデータグラムプロトコル
40 .SH 書式
41 \fB#include <sys/socket.h>\fP
42 .br
43 .\" FIXME . see #defines under `BUGS',
44 .\"        when glibc supports this, add
45 .\"        #include <netinet/udplite.h>
46 .sp
47 \fBsockfd = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDPLITE);\fP
48 .SH 説明
49 これは RFC\ 3828 に書かれている軽量なユーザーデータグラムプロトコル (Lightweight User Datagram Protocol;
50 UDP\-Lite) の実装である。
51
52 UDP\-Lite は UDP (RFC\ 768) の拡張で、可変長のチェックサムをサポートしている。
53 このプロトコルが効果を発揮するのは、少しだけ壊れたデータグラムがあった場合に、 そのデータグラムを下位レイヤーのプロトコルに廃棄させるのではなく、
54 それを利用することができるような、ある種のマルチメディア転送においてである。
55
56 可変長のチェックサムの対象範囲は \fBsetsockopt\fP(2)  オプション経由で設定される。 このオプションが設定されていない場合、UDP
57 と異なるのは 違う IP プロトコル識別子 (IANA 番号 136) を使用する点だけである。
58
59 UDP\-Lite の実装は \fBudp\fP(7)  の完全な拡張、すなわち API と API の動作は同じである。 これに加えて、2
60 つのソケットオプションがチェックサムの対象範囲を 制御するために提供されている。
61 .SS アドレスのフォーマット
62 UDP\-Litev4 は \fBip\fP(7)  で説明されている \fIsockaddr_in\fP アドレスを使用する。 UDP\-Litev6 は
63 \fBipv6\fP(7)  で説明されている \fIsockaddr_in6\fP アドレスを使用する。
64 .SS ソケットオプション
65 UDP\-Lite のソケットオプションを設定/取得するには、 オプションレベル引き数に \fBIPPROTO_UDPLITE\fP を指定して、取得時には
66 \fBgetsockopt\fP(2)  を、設定時には \fBsetsockopt\fP(2)  を呼び出す。さらに、全ての \fBIPPROTO_UDP\fP
67 のソケットオプションが UDP\-Lite ソケットでも使用できる。 詳細は \fBudp\fP(7)  を参照のこと。
68
69 以下の 2 つが UDP\-Lite に固有のオプションである。
70 .TP 
71 \fBUDPLITE_SEND_CSCOV\fP
72 このオプションは送信側のチェックサムの対象範囲を設定する。 \fIint\fP 型を引き数として取り、設定可能な値の範囲は 0 から 2^16\-1
73 までである。
74
75 値 0 はデータグラム全体が常にチェックサムの対象となることを意味する。 値 1〜7 は不正であり (RFC\ 3828 の 3.1
76 章)、範囲の設定として最小値である 8 に切り上げられる。
77
78 IPv6 の jumbograms (巨大なデータグラム; RFC\ 2675) の場合には、 UDP\-Litev6
79 のチェックサムの対象範囲は、RFC\ 3828 の 3.5 章にあるように、 先頭から 2^16\-1 オクテットまでに限定される。
80 そのため、それより大きな値は 2^16\-1 に黙って切り詰められる。 現在の対象範囲の値を知りたければ、いつでも \fBgetsockopt\fP(2)
81 を使って値を問い合わせることができる。
82 .TP 
83 \fBUDPLITE_RECV_CSCOV\fP
84 これは受信側のチェックサムの対象範囲を設定するもので、 使用される引き数形式と値の範囲は \fBUDPLITE_SEND_CSCOV\fP と同じである。
85 このオプションは、部分的なチェックサム対象範囲を持つトラフィックを 有効にするのに必要なわけではなく、トラフィックフィルターとして機能する。
86 このオプションが有効にすると、カーネルは指定されたチェックサム対象範囲 よりも「短かい」対象範囲を持つパケットを全て廃棄するようになる。
87
88 .\" SO_NO_CHECK exists and is supported by UDPv4, but is
89 .\" commented out in socket(7), hence also commented out here
90 .\".PP
91 .\"Since UDP-Lite mandates checksums, checksumming can not be disabled
92 .\"via the
93 .\".B SO_NO_CHECK
94 .\"option from
95 .\".BR socket (7).
96 \fBUDPLITE_RECV_CSCOV\fP の値が実際のパケットのチェックサム対象範囲よりも大きい場合、 受信したパケットは黙って廃棄される。
97 ただし、システムログに対して警告メッセージが生成されるかもしれない。
98 .SH エラー
99 \fBudp\fP(7)  について書かれている全てのエラーは返る可能性がある。 UDP\-Lite 自体は新たなエラーは追加していない。
100 .SH ファイル
101 \fI/proc/net/snmp\fP \- UDP\-Litev4 の基本的な統計情報カウンター。
102 .br
103 \fI/proc/net/snmp6\fP \- UDP\-Litev6 の基本的な統計情報カウンター。
104 .SH バージョン
105 UDP\-Litev4/v6 は Linux 2.6.20 で初めて登場した。
106 .SH バグ
107 .\" FIXME . remove this section once glibc supports UDP-Lite
108 glibc によるサポートがない場合は、以下の定義を行う必要がある。
109 .in +4n
110 .nf
111
112 .\" The following two are defined in the kernel in linux/net/udplite.h
113 #define IPPROTO_UDPLITE     136
114 #define UDPLITE_SEND_CSCOV  10
115 #define UDPLITE_RECV_CSCOV  11
116 .fi
117 .in
118 .SH 関連項目
119 \fBip\fP(7), \fBipv6\fP(7), \fBsocket\fP(7), \fBudp\fP(7)
120
121 RFC\ 3828 for the Lightweight User Datagram Protocol (UDP\-Lite).
122
123 Linux カーネルソース内の \fIDocumentation/networking/udplite.txt\fP
124 .SH この文書について
125 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.54 の一部
126 である。プロジェクトの説明とバグ報告に関する情報は
127 http://www.kernel.org/doc/man\-pages/ に書かれている。