1 .\" This man page is Copyright (C) 1998 Alan Cox.
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: ddp.7,v 1.6 1999/12/06 00:13:56 nakano Exp $
8 .\" Japanese Version Copyright (c) 1999 NAKANO Takeo all rights reserved.
9 .\" Translated Mon 6 Dec 1999 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
11 .TH DDP 7 2008-11-20 "Linux" "Linux Programmer's Manual"
14 .\"O ddp \- Linux AppleTalk protocol implementation
15 ddp \- Linux での AppleTalk プロトコルの実装
18 .B #include <sys/socket.h>
20 .B #include <netatalk/at.h>
22 .IB ddp_socket " = socket(AF_APPLETALK, SOCK_DGRAM, 0);"
24 .IB raw_socket " = socket(AF_APPLETALK, SOCK_RAW, " protocol ");"
27 .\"O Linux implements the Appletalk protocols described in
28 .\"O .IR "Inside Appletalk" .
29 .\"O Only the DDP layer and AARP are present in
31 .\"O They are designed to be used via the
35 .\"O This page documents the interface for those who wish or need to
36 .\"O use the DDP layer directly.
39 に記述されている Appletalk プロトコルを実装している。
40 カーネルにあるのは DDP 層と AARP だけである。これらは
42 プロトコルライブラリを通して利用されるように設計されている。
43 このページは DDP 層を直接利用したいユーザーのために、
46 .\"O The communication between Appletalk and the user program works using a
47 .\"O BSD-compatible socket interface.
48 .\"O For more information on sockets, see
50 Appletalk とユーザープログラムとの通信には、
51 BSD 互換のソケットインターフェースを利用する。
56 .\"O An AppleTalk socket is created by calling the
60 .\"O socket family argument.
61 .\"O Valid socket types are
71 .\"O is the Appletalk protocol to be received or sent.
75 .\"O .BR ATPROTO_DDP .
81 関数を呼び出すことによって生成される。指定できるソケットタイプは、
90 は送受信される Appletalk プロトコルである。
97 .\"O Raw sockets may be only opened by a process with effective user ID 0
98 .\"O or when the process has the
101 raw ソケットは実効ユーザー ID が 0 のプロセスか、
103 権限を持ったプロセスでないとオープンできない。
104 .\"O .SS "Address Format"
106 .\"O An Appletalk socket address is defined as a combination of a network number,
107 .\"O a node number, and a port number.
108 Appletalk ソケットアドレスはネットワーク番号・ノード番号・ポート番号の
114 unsigned short s_net;
115 unsigned char s_node;
118 struct sockaddr_atalk {
119 sa_family_t sat_family; /* address family */
120 unsigned char sat_port; /* port */
121 struct at_addr sat_addr; /* net/node */
127 .\"O is always set to
128 .\"O .BR AF_APPLETALK .
134 .\"O contains the port.
135 .\"O The port numbers below 129 are known as
136 .\"O .IR reserved ports .
137 .\"O Only processes with the effective user ID 0 or the
138 .\"O .B CAP_NET_BIND_SERVICE
141 .\"O to these sockets.
143 はポートを与える。ポート番号が 129 以下のポートは
144 「予約ポート (reserved port)」 と呼ばれる。実効ユーザー ID が 0 のプロセスか、
145 .B CAP_NET_BIND_SERVICE
146 権限を持つプロセスだけが、このようなソケットを
150 .\"O is the host address.
154 .\"O .I struct at_addr
155 .\"O contains the host network in network byte order.
159 .\"O wildcard and also implies \(lqthis network.\(rq
165 にはホストのネットワークをネットワークバイトオーダーで与える。値
167 はワイルドカードで、「このネットワーク」も暗黙のうちに含まれる。
171 .\"O .I struct at_addr
172 .\"O contains the host node number.
176 .\"O wildcard and also implies \(lqthis node.\(rq The value of
179 .\"O local broadcast address.
185 はワイルドカードで、「このノード」も暗黙のうちに含まれる。値
187 はローカルなブロードキャストアドレスである。
188 .\" FIXME this doesn't make sense [johnl]
189 .\"O .SS "Socket Options"
191 .\"O No protocol-specific socket options are supported.
192 プロトコル固有のソケットオプションはない。
193 .\"O .SS /proc interfaces
195 .\"O IP supports a set of
197 .\"O interfaces to configure some global AppleTalk parameters.
198 .\"O The parameters can be accessed by reading or writing files in the directory
199 .\"O .IR /proc/sys/net/atalk/ .
200 Appletalk のグローバルパラメータのいくつかは、
202 インタフェースを通して設定することができる。
204 .I /proc/sys/net/atalk/
205 ディレクトリ内のファイルの読み書きでアクセスできる。
208 .\"O The time interval (in seconds) before an AARP cache entry expires.
209 AARP キャッシュエントリを破棄するまでのタイムインターバル (秒単位)。
212 .\"O The time interval (in seconds) before an AARP cache entry is resolved.
213 AARP キャッシュエントリが解決されるまでのタイムインターバル (秒単位)。
215 .I aarp-retransmit-limit
216 .\"O The number of retransmissions of an AARP query before the node is declared
218 AARP クエリーの最大再送信回数。この回数を越えると、
219 そのノードは dead であるとみなされる。
222 .\"O The timer rate (in seconds) for the timer driving AARP.
223 タイマー動作する AARP のタイマーレート (秒単位)
225 .\"O The default values match the specification and should never need to be
227 デフォルトの値で仕様にマッチしているので、
231 .\"O All ioctls described in
237 .\" FIXME Add a section about multicasting
240 .\" FIXME document all errors. We should really fix the kernels to
241 .\" give more uniform error returns (ENOMEM vs ENOBUFS, EPERM vs
245 .\"O The user tried to execute an operation without the necessary permissions.
246 .\"O These include sending to a broadcast address without
247 .\"O having the broadcast flag set,
248 .\"O and trying to bind to a reserved port without effective user ID 0 or
249 .\"O .BR CAP_NET_BIND_SERVICE .
250 ユーザが行おうとした操作に必要な権限を持っていない。
251 broadcast フラグをセットせずにブロードキャストアドレスへ送信を行おうとした、
253 .B CAP_NET_BIND_SERVICE
254 権限のないプロセスで特権ポートをバインドしようとした、などが考えられる。
257 .\"O Tried to bind to an address already in use.
258 既に使用されているアドレスにバインドしようとした。
261 .\"O A nonexistent interface was requested or the requested source address was
263 存在しないインターフェースが要求された。または
264 要求されたソースアドレスがローカルなものでない。
267 .\"O Operation on a nonblocking socket would block.
268 非ブロッキングソケットに対してブロックする操作を行った。
271 .\"O A connection operation on a nonblocking socket is already in progress.
272 非ブロッキングソケットに対する接続操作が既に実行中である。
275 .\"O A connection was closed during an
281 .\"O No routing table entry matches the destination address.
282 行き先アドレスにマッチするエントリがルーティングテーブルにない。
285 .\"O Invalid argument passed.
290 .\"O was called on an already connected socket.
296 .\"O Datagram is bigger than the DDP MTU.
297 データグラムが DDP MTU より大きい。
300 .\"O Network device not available or not capable of sending IP.
301 ネットワークデバイスがない。あるいは IP を送ることができない。
305 .\"O was called on a socket where no packet arrived.
310 .\"O .BR ENOMEM " and " ENOBUFS
311 .BR ENOMEM " と " ENOBUFS
312 .\"O Not enough memory available.
316 .\"O A kernel subsystem was not configured.
317 カーネルのサブシステムが設定されていない。
319 .\"O .BR ENOPROTOOPT " and " EOPNOTSUPP
320 .BR ENOPROTOOPT " と " EOPNOTSUPP
321 .\"O Invalid socket option passed.
325 .\"O The operation is only defined on a connected socket, but the socket wasn't
327 行おうとした操作は接続済みのソケットに対してのみ定義されているものだが、
331 .\"O User doesn't have permission to set high priority,
332 .\"O make a configuration change,
333 .\"O or send signals to the requested process or group,
334 高い優先度に設定したり、設定を変更したり、
335 指定したプロセスやグループにシグナルを送るのに必要な権限を
339 .\"O The connection was unexpectedly closed or shut down by the other end.
340 接続が先方によって、通常以外のやり方でクローズまたはシャットダウンされた。
343 .\"O The socket was unconfigured, or an unknown socket type was requested.
344 ソケットが設定されていない。または未知のソケットタイプが要求された。
347 .\"O Appletalk is supported by Linux 2.0 or higher.
350 .\"O interfaces exist since Linux 2.2.
351 Appletalk は Linux 2.0 以降でサポートされている。
353 インタフェースは Linux 2.2 以降に存在する。
356 .\"O Be very careful with the
358 .\"O option \- it is not privileged in Linux.
359 .\"O It is easy to overload the network
360 .\"O with careless sending to broadcast addresses.
362 オプションを用いる時には慎重の上にも慎重になってほしい。
363 Linux ではこれに特権を必要としない。
364 不注意にブロードキャストアドレスに送信を行うと、
365 ネットワークの状態が簡単に変更されてしまう。
366 .\"O .SS Compatibility
368 .\"O The basic AppleTalk socket interface is compatible with
370 .\"O on BSD-derived systems.
371 .\"O Many BSD systems fail to check
373 .\"O when sending broadcast frames; this can lead to compatibility problems.
374 基本的な Appletalk ソケットインターフェースは
377 と互換性がある。多くの BSD システムでは、
378 ブロードキャストフレームを送信しようとしたときの
380 のチェックに失敗する。これは互換性の問題となるかもしれない。
384 .\"O socket mode is unique to Linux and exists to support the alternative CAP
385 .\"O package and AppleTalk monitoring tools more easily.
386 raw ソケットモードは Linux 独特のもので、もう一方の実装である CAP
387 パッケージや、 Appletalk モニタツールをより簡単に実装できるようになる。
390 .\"O There are too many inconsistent error values.
393 .\"O The ioctls used to configure routing tables, devices,
394 .\"O AARP tables and other devices are not yet described.
395 ルーティングテーブル・デバイス・ AARP テーブル・その他のデバイスを
396 設定するために用いられる ioctl がまだ記述されていない。
401 .BR capabilities (7),