1 .\" This man page is Copyright (C) 1998 Alan Cox.
3 .\" %%%LICENSE_START(VERBATIM_ONE_PARA)
4 .\" Permission is granted to distribute possibly modified copies
5 .\" of this page provided the header is included verbatim,
6 .\" and in case of nontrivial modification author and date
7 .\" of the modification is added to the header.
10 .\" $Id: ddp.7,v 1.3 1999/05/13 11:33:22 freitag Exp $
12 .TH DDP 7 2008-11-20 "Linux" "Linux Programmer's Manual"
14 ddp \- Linux AppleTalk protocol implementation
16 .B #include <sys/socket.h>
18 .B #include <netatalk/at.h>
20 .IB ddp_socket " = socket(AF_APPLETALK, SOCK_DGRAM, 0);"
22 .IB raw_socket " = socket(AF_APPLETALK, SOCK_RAW, " protocol ");"
24 Linux implements the AppleTalk protocols described in
25 .IR "Inside AppleTalk" .
26 Only the DDP layer and AARP are present in
28 They are designed to be used via the
32 This page documents the interface for those who wish or need to
33 use the DDP layer directly.
35 The communication between AppleTalk and the user program works using a
36 BSD-compatible socket interface.
37 For more information on sockets, see
40 An AppleTalk socket is created by calling the
44 socket family argument.
45 Valid socket types are
55 is the AppleTalk protocol to be received or sent.
61 Raw sockets may be opened only by a process with effective user ID 0
62 or when the process has the
66 An AppleTalk socket address is defined as a combination of a network number,
67 a node number, and a port number.
76 struct sockaddr_atalk {
77 sa_family_t sat_family; /* address family */
78 unsigned char sat_port; /* port */
79 struct at_addr sat_addr; /* net/node */
89 The port numbers below 129 are known as
90 .IR "reserved ports" .
91 Only processes with the effective user ID 0 or the
92 .B CAP_NET_BIND_SERVICE
102 contains the host network in network byte order.
106 wildcard and also implies \(lqthis network.\(rq
111 contains the host node number.
115 wildcard and also implies \(lqthis node.\(rq The value of
118 local broadcast address.
119 .\" FIXME . this doesn't make sense [johnl]
121 No protocol-specific socket options are supported.
125 interfaces to configure some global AppleTalk parameters.
126 The parameters can be accessed by reading or writing files in the directory
127 .IR /proc/sys/net/atalk/ .
130 The time interval (in seconds) before an AARP cache entry expires.
133 The time interval (in seconds) before an AARP cache entry is resolved.
135 .I aarp-retransmit-limit
136 The number of retransmissions of an AARP query before the node is declared
140 The timer rate (in seconds) for the timer driving AARP.
142 The default values match the specification and should never need to be
145 All ioctls described in
148 .\" FIXME . Add a section about multicasting
150 .\" FIXME . document all errors. We should really fix the kernels to
151 .\" give more uniform error returns (ENOMEM vs ENOBUFS, EPERM vs
155 The user tried to execute an operation without the necessary permissions.
156 These include sending to a broadcast address without
157 having the broadcast flag set,
158 and trying to bind to a reserved port without effective user ID 0 or
159 .BR CAP_NET_BIND_SERVICE .
162 Tried to bind to an address already in use.
165 A nonexistent interface was requested or the requested source address was
169 Operation on a nonblocking socket would block.
172 A connection operation on a nonblocking socket is already in progress.
175 A connection was closed during an
179 No routing table entry matches the destination address.
182 Invalid argument passed.
186 was called on an already connected socket.
189 Datagram is bigger than the DDP MTU.
192 Network device not available or not capable of sending IP.
196 was called on a socket where no packet arrived.
198 .BR ENOMEM " and " ENOBUFS
199 Not enough memory available.
202 A kernel subsystem was not configured.
204 .BR ENOPROTOOPT " and " EOPNOTSUPP
205 Invalid socket option passed.
208 The operation is defined only on a connected socket, but the socket wasn't
212 User doesn't have permission to set high priority,
213 make a configuration change,
214 or send signals to the requested process or group.
217 The connection was unexpectedly closed or shut down by the other end.
220 The socket was unconfigured, or an unknown socket type was requested.
222 AppleTalk is supported by Linux 2.0 or higher.
225 interfaces exist since Linux 2.2.
227 Be very careful with the
229 option \- it is not privileged in Linux.
230 It is easy to overload the network
231 with careless sending to broadcast addresses.
233 The basic AppleTalk socket interface is compatible with
235 on BSD-derived systems.
236 Many BSD systems fail to check
238 when sending broadcast frames; this can lead to compatibility problems.
242 socket mode is unique to Linux and exists to support the alternative CAP
243 package and AppleTalk monitoring tools more easily.
245 There are too many inconsistent error values.
247 The ioctls used to configure routing tables, devices,
248 AARP tables and other devices are not yet described.
252 .BR capabilities (7),