atalk.4 revision 1.6 1 1.1 wrstuden
2 1.6 kristerw .\" $NetBSD: atalk.4,v 1.6 1999/10/16 20:17:29 kristerw Exp $
3 1.1 wrstuden .\"
4 1.1 wrstuden .\" This file is derived from the atalk.4 man page in the Netatlk 1.4b2
5 1.1 wrstuden .\" distribution. That distribution is covered by the following copyright:
6 1.1 wrstuden .\"
7 1.1 wrstuden .\" Copyright (c) 1990,1996 Regents of The University of Michigan.
8 1.1 wrstuden .\" All Rights Reserved.
9 1.1 wrstuden .\"
10 1.1 wrstuden .\" Permission to use, copy, modify, and distribute this software and
11 1.1 wrstuden .\" its documentation for any purpose and without fee is hereby granted,
12 1.1 wrstuden .\" provided that the above copyright notice appears in all copies and
13 1.1 wrstuden .\" that both that copyright notice and this permission notice appear
14 1.1 wrstuden .\" in supporting documentation, and that the name of The University
15 1.1 wrstuden .\" of Michigan not be used in advertising or publicity pertaining to
16 1.1 wrstuden .\" distribution of the software without specific, written prior
17 1.1 wrstuden .\" permission. This software is supplied as is without expressed or
18 1.1 wrstuden .\" implied warranties of any kind.
19 1.1 wrstuden .\"
20 1.1 wrstuden .\" This product includes software developed by the University of
21 1.1 wrstuden .\" California, Berkeley and its contributors.
22 1.1 wrstuden .\"
23 1.1 wrstuden .\" Research Systems Unix Group
24 1.1 wrstuden .\" The University of Michigan
25 1.1 wrstuden .\" c/o Wesley Craig
26 1.1 wrstuden .\" 535 W. William Street
27 1.1 wrstuden .\" Ann Arbor, Michigan
28 1.1 wrstuden .\" +1-313-764-2278
29 1.1 wrstuden .\" netatalk (a] umich.edu
30 1.3 fair .\"
31 1.1 wrstuden .Dd November 14, 1997
32 1.1 wrstuden .Dt ATALK 4
33 1.4 garbled .Os
34 1.1 wrstuden .Sh NAME
35 1.1 wrstuden .Nm atalk
36 1.1 wrstuden .Nd AppleTalk Protocol Family
37 1.1 wrstuden .Sh SYNOPSIS
38 1.1 wrstuden .Fd #include <sys/types.h>
39 1.1 wrstuden .Fd #include <netatalk/at.h>
40 1.1 wrstuden .Sh DESCRIPTION
41 1.3 fair The
42 1.1 wrstuden .Tn AppleTalk
43 1.1 wrstuden Protocol Family provides presentation layer support for the AppleTalk
44 1.1 wrstuden Datagram Delivery Protocol (DDP), using the SOCK_DGRAM socket type.
45 1.1 wrstuden In addition, access to in-kernel AppleTalk routing tables and network
46 1.1 wrstuden interface configurations is provided.
47 1.1 wrstuden .Pp
48 1.5 matt The AppleTalk Protocol Suite provides support for five kinds of
49 1.1 wrstuden physical media: LocalTalk (230kbps wire-or'd serial), Ethernet,
50 1.5 matt FDDI, Token Ring, and asynchronous serial connections (using either
51 1.1 wrstuden AppleTalk Remote Access
52 1.1 wrstuden .Pq Tn ARA
53 1.1 wrstuden or
54 1.1 wrstuden .Tn PPP
55 1.3 fair ).
56 1.3 fair Currently,
57 1.2 perry .Nx Ns 's
58 1.5 matt AppleTalk implementataion supports Ethernet, FDDI, and Token Ring.
59 1.1 wrstuden .Pp
60 1.1 wrstuden AppleTalk packets are encapsulated on the ethernet using the EtherTalk
61 1.3 fair Link Access Protocol (ELAP).
62 1.3 fair Local network address resolution is
63 1.1 wrstuden handled using the AppleTalk Address Resolution Protocol (AARP).
64 1.1 wrstuden Neither of these protocols is exposed to user-mode applications.
65 1.1 wrstuden .Pp
66 1.1 wrstuden .Sh ADDRESSING
67 1.1 wrstuden AppleTalk addresses are three byte quantities, stored in network
68 1.3 fair byte order.
69 1.3 fair The include file
70 1.1 wrstuden .Aq Pa netatalk/at.h
71 1.1 wrstuden defines the AppleTalk address format.
72 1.1 wrstuden
73 1.1 wrstuden Sockets in the AppleTalk protocol family use the following address
74 1.1 wrstuden structure:
75 1.1 wrstuden .Bd -literal -offset indent
76 1.1 wrstuden struct sockaddr_at {
77 1.1 wrstuden u_int8_t sat_len;
78 1.1 wrstuden u_int8_t sat_family;
79 1.1 wrstuden u_int8_t sat_port;
80 1.1 wrstuden struct at_addr sat_addr;
81 1.1 wrstuden union {
82 1.1 wrstuden struct netrange r_netrange;
83 1.1 wrstuden char r_zero[8];
84 1.1 wrstuden } sat_range;
85 1.1 wrstuden };
86 1.1 wrstuden .Ed
87 1.1 wrstuden .Pp
88 1.1 wrstuden The port of a socket may be set with
89 1.1 wrstuden .Xr bind 2 .
90 1.1 wrstuden The node for
91 1.3 fair .Xr bind 2
92 1.1 wrstuden must always be
93 1.1 wrstuden .Dv ATADDR_ANYNODE :
94 1.1 wrstuden ``this node.'' The net
95 1.1 wrstuden .\"may
96 1.1 wrstuden must
97 1.1 wrstuden be
98 1.1 wrstuden .Dv ATADDR_ANYNET .
99 1.1 wrstuden .\"or
100 1.1 wrstuden .\".Dv ATADDR_LATENET .
101 1.1 wrstuden .Dv ATADDR_ANYNET
102 1.6 kristerw corresponds to the machine's ``primary'' address (the first
103 1.1 wrstuden configured).
104 1.1 wrstuden .\".Dv ATADDR_LATENET
105 1.1 wrstuden .\"causes the address in outgoing packets to be determined when a packet
106 1.1 wrstuden .\"is sent, i.e. determined late.
107 1.1 wrstuden .\".Dv ATADDR_LATENET
108 1.3 fair .\"is equivalent to opening one socket for each network interface.
109 1.1 wrstuden The port of a socket and
110 1.1 wrstuden .\"either
111 1.1 wrstuden the primary address
112 1.1 wrstuden .\"or
113 1.1 wrstuden .\".Dv ATADDR_LATENET
114 1.1 wrstuden are returned with
115 1.1 wrstuden .Xr getsockname 2 .
116 1.1 wrstuden .Sh PROTOCOLS
117 1.1 wrstuden The AppleTalk protocol family is comprised of the
118 1.1 wrstuden .Tn DDP
119 1.1 wrstuden datagram delivery protocol,
120 1.1 wrstuden AppleTalk Data Stream Protocol
121 1.1 wrstuden .Pq Tn ADSP ,
122 1.1 wrstuden AppleTalk Echo Protocol
123 1.1 wrstuden .Pq Tn AEP ,
124 1.1 wrstuden AppleTalk Filing Protocol
125 1.1 wrstuden .Pq Tn AFP ,
126 1.1 wrstuden AppleTalk Session Protocol
127 1.1 wrstuden .Pq Tn ASP ,
128 1.1 wrstuden AppleTalk Transaction Protocol
129 1.1 wrstuden .Pq Tn ATP ,
130 1.1 wrstuden Name Binding Protocol
131 1.1 wrstuden .Pq Tn NBP ,
132 1.1 wrstuden Printer Access Protocol
133 1.1 wrstuden .Pq Tn PAP ,
134 1.1 wrstuden and Zone Information Protocol
135 1.1 wrstuden .Pq Tn ZIP .
136 1.1 wrstuden .Pp
137 1.1 wrstuden .Tn DDP
138 1.3 fair is implemented in the kernel as
139 1.1 wrstuden .Dv SOCK_DGRAM
140 1.1 wrstuden sockets in the
141 1.1 wrstuden .Dv AF_APPLETALK
142 1.3 fair address family.
143 1.1 wrstuden .Nx
144 1.1 wrstuden implements all other
145 1.1 wrstuden .Tn AppleTalk
146 1.1 wrstuden protocols using the
147 1.1 wrstuden .Tn Netatalk
148 1.1 wrstuden package.
149 1.1 wrstuden .Tn Netatalk
150 1.1 wrstuden implements all functions except for
151 1.1 wrstuden .Tn ADSP
152 1.1 wrstuden and an
153 1.1 wrstuden .Tn AFP
154 1.1 wrstuden client.
155 1.1 wrstuden .Tn AEP ,
156 1.1 wrstuden .Tn NBP ,
157 1.1 wrstuden and
158 1.1 wrstuden .Tn ZIP
159 1.3 fair services are provided by the
160 1.1 wrstuden .Tn atalkd
161 1.1 wrstuden daemon.
162 1.1 wrstuden .Tn ASP
163 1.1 wrstuden and
164 1.1 wrstuden .Tn ATP
165 1.1 wrstuden services are provided by a user library.
166 1.1 wrstuden .Tn PAP
167 1.1 wrstuden and
168 1.1 wrstuden .Tn AFP
169 1.1 wrstuden services are provided by user programs and daemons.
170 1.1 wrstuden .Pp
171 1.1 wrstuden .Sh SEE ALSO
172 1.1 wrstuden .\" .BR ddp (4P),
173 1.1 wrstuden .\" .BR atp (3N),
174 1.1 wrstuden .\" .BR asp (3N),
175 1.1 wrstuden .Xr bind 2 ,
176 1.1 wrstuden .Xr getsockname 2 ,
177 1.3 fair .Xr options 4 ,
178 1.1 wrstuden .Xr atalkd 8 .
179 1.1 wrstuden .Rs
180 1.1 wrstuden .%B Inside AppleTalk, second edition
181 1.1 wrstuden .%A Gursharan S. Sidhu
182 1.1 wrstuden .%A Richard F. Andrews
183 1.1 wrstuden .%A Alan B. Oppenheimer
184 1.1 wrstuden .Re
185