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.3 1999/05/13 11:33:22 freitag Exp $
7 .TH DDP 7 1999-05-01 "Linux Man Page" "Linux Programmer's Manual"
9 ddp \- Linux AppleTalk protocol implementation
11 .B #include <sys/socket.h>
13 .B #include <netatalk/at.h>
15 .IB ddp_socket " = socket(PF_APPLETALK, SOCK_DGRAM, 0);"
17 .IB raw_socket " = socket(PF_APPLETALK, SOCK_RAW, " protocol ");"
19 Linux implements the Appletalk protocols described in
20 .IR "Inside Appletalk" .
21 Only the DDP layer and AARP are present in
22 the kernel. They are designed to be used via the
25 libraries. This page documents the interface for those who wish or need to
26 use the DDP layer directly.
28 The communication between Appletalk and the user program works using a
29 BSD-compatible socket interface. For more information on sockets, see
32 An AppleTalk socket is created by calling the
36 socket family argument. Valid socket types are
46 is the Appletalk protocol to be received or sent. For
51 Raw sockets may be only opened by a process with effective user id 0 or when the process has the
55 An Appletalk socket address is defined as a combination of a network number,
56 a node number, and a port number.
66 struct sockaddr_atalk {
67 sa_family_t sat_family; /* address family */
68 u_char sat_port; /* port */
69 struct at_addr sat_addr; /* net/node */
79 contains the port. The port numbers below 129 are known as
81 Only processes with the effective user id 0 or the
82 .B CAP_NET_BIND_SERVICE
92 contains the host network in network byte order. The value of
95 wildcard and also implies \(lqthis network.\(rq
100 contains the host node number. The value of
103 wildcard and also implies \(lqthis node.\(rq The value of
106 local broadcast address.
107 .\" XXX this doesn't make sense [johnl]
109 No protocol-specific socket options are supported.
111 IP supports a sysctl interface to configure some global AppleTalk parameters.
112 The sysctls can be accessed by reading or writing the
113 .B /proc/sys/net/atalk/*
119 The time interval (in seconds) before an AARP cache entry expires.
122 The time interval (in seconds) before an AARP cache entry is resolved.
124 .B aarp-retransmit-limit
125 The number of retransmissions of an AARP query before the node is declared
129 The timer rate (in seconds) for the timer driving AARP.
131 The default values match the specification and should never need to be
135 All ioctls described in
139 .\" XXX Add a chapter about multicasting
142 Be very careful with the
144 option \- it is not privileged in Linux. It is easy to overload the network
145 with careless sending to broadcast addresses.
147 Appletalk is supported by Linux 2.0 or higher. The
152 .\" XXX document all errors. We should really fix the kernels to give more uniform
153 .\" error returns (ENOMEM vs ENOBUFS, EPERM vs EACCES etc.)
156 The operation is only defined on a connected socket, but the socket wasn't
160 Invalid argument passed.
163 Datagram is bigger than the DDP MTU.
166 The user tried to execute an operation without the necessary permissions. These
167 include sending to a broadcast address without having the broadcast flag set,
168 and trying to bind to a reserved port without effective user id 0 or
169 .BR CAP_NET_BIND_SERVICE .
172 Tried to bind to an address already in use.
174 .BR ENOMEM " and " ENOBUFS
175 Not enough memory available.
177 .BR ENOPROTOOPT " and " EOPNOTSUPP
178 Invalid socket option passed.
181 User doesn't have permission to set high priority, make a configuration change,
182 or send signals to the requested process or group,
185 A non-existent interface was requested or the requested source address was
189 Operation on a nonblocking socket would block.
192 The socket was unconfigured, or an unknown socket type was requested.
196 was called on an already connected socket.
199 A connection operation on a non-blocking socket is already in progress.
202 A connection was closed during an
206 The connection was unexpectedly closed or shut down by the other end.
210 was called on a socket where no packet arrived.
213 No routing table entry matches the destination address.
216 Network device not available or not capable of sending IP.
219 A kernel subsystem was not configured.
221 The basic AppleTalk socket interface is compatible with
223 on BSD-derived systems. Many BSD systems fail to check
225 when sending broadcast frames; this can lead to compatibility problems.
229 socket mode is unique to Linux and exists to support the alternative CAP
230 package and AppleTalk monitoring tools more easily.
232 There are too many inconsistent error values.
234 The ioctls used to configure routing tables, devices, AARP tables and other
235 devices are not yet described.
239 .BR capabilities (7),