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 2021-03-22 "Linux" "Linux Programmer's Manual"
14 ddp \- Linux AppleTalk protocol implementation
17 .B #include <sys/socket.h>
18 .B #include <netatalk/at.h>
20 .IB ddp_socket " = socket(AF_APPLETALK, SOCK_DGRAM, 0);"
21 .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/ .
129 .I aarp\-expiry\-time
130 The time interval (in seconds) before an AARP cache entry expires.
132 .I aarp\-resolve\-time
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
152 The user tried to execute an operation without the necessary permissions.
153 These include sending to a broadcast address without
154 having the broadcast flag set,
155 and trying to bind to a reserved port without effective user ID 0 or
156 .BR CAP_NET_BIND_SERVICE .
159 Tried to bind to an address already in use.
162 A nonexistent interface was requested or the requested source address was
166 Operation on a nonblocking socket would block.
169 A connection operation on a nonblocking socket is already in progress.
172 A connection was closed during an
176 No routing table entry matches the destination address.
179 Invalid argument passed.
183 was called on an already connected socket.
186 Datagram is bigger than the DDP MTU.
189 Network device not available or not capable of sending IP.
193 was called on a socket where no packet arrived.
195 .BR ENOMEM " and " ENOBUFS
196 Not enough memory available.
199 A kernel subsystem was not configured.
201 .BR ENOPROTOOPT " and " EOPNOTSUPP
202 Invalid socket option passed.
205 The operation is defined only on a connected socket, but the socket wasn't
209 User doesn't have permission to set high priority,
210 make a configuration change,
211 or send signals to the requested process or group.
214 The connection was unexpectedly closed or shut down by the other end.
217 The socket was unconfigured, or an unknown socket type was requested.
219 AppleTalk is supported by Linux 2.0 or higher.
222 interfaces exist since Linux 2.2.
224 Be very careful with the
226 option; it is not privileged in Linux.
227 It is easy to overload the network
228 with careless sending to broadcast addresses.
230 The basic AppleTalk socket interface is compatible with
232 on BSD-derived systems.
233 Many BSD systems fail to check
235 when sending broadcast frames; this can lead to compatibility problems.
239 socket mode is unique to Linux and exists to support the alternative CAP
240 package and AppleTalk monitoring tools more easily.
242 There are too many inconsistent error values.
244 The ioctls used to configure routing tables, devices,
245 AARP tables, and other devices are not yet described.
249 .BR capabilities (7),