atalk.4 revision 1.3 1 1.1 wrstuden
2 1.3 fair .\" $NetBSD: atalk.4,v 1.3 1998/04/29 20:26:21 fair 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.1 wrstuden .Os NetBSD 1.3
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.1 wrstuden The AppleTalk Protocol Suite provides support for four kinds of
49 1.1 wrstuden physical media: LocalTalk (230kbps wire-or'd serial), Ethernet,
50 1.1 wrstuden 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.2 perry AppleTalk implimentataion supports only Ethernet.
59 1.1 wrstuden .\" and Token Ring?
60 1.1 wrstuden .\" If NetBSD supported it....
61 1.1 wrstuden .Pp
62 1.1 wrstuden AppleTalk packets are encapsulated on the ethernet using the EtherTalk
63 1.3 fair Link Access Protocol (ELAP).
64 1.3 fair Local network address resolution is
65 1.1 wrstuden handled using the AppleTalk Address Resolution Protocol (AARP).
66 1.1 wrstuden Neither of these protocols is exposed to user-mode applications.
67 1.1 wrstuden .Pp
68 1.1 wrstuden .Sh ADDRESSING
69 1.1 wrstuden AppleTalk addresses are three byte quantities, stored in network
70 1.3 fair byte order.
71 1.3 fair The include file
72 1.1 wrstuden .Aq Pa netatalk/at.h
73 1.1 wrstuden defines the AppleTalk address format.
74 1.1 wrstuden
75 1.1 wrstuden Sockets in the AppleTalk protocol family use the following address
76 1.1 wrstuden structure:
77 1.1 wrstuden .Bd -literal -offset indent
78 1.1 wrstuden struct sockaddr_at {
79 1.1 wrstuden u_int8_t sat_len;
80 1.1 wrstuden u_int8_t sat_family;
81 1.1 wrstuden u_int8_t sat_port;
82 1.1 wrstuden struct at_addr sat_addr;
83 1.1 wrstuden union {
84 1.1 wrstuden struct netrange r_netrange;
85 1.1 wrstuden char r_zero[8];
86 1.1 wrstuden } sat_range;
87 1.1 wrstuden };
88 1.1 wrstuden .Ed
89 1.1 wrstuden .Pp
90 1.1 wrstuden The port of a socket may be set with
91 1.1 wrstuden .Xr bind 2 .
92 1.1 wrstuden The node for
93 1.3 fair .Xr bind 2
94 1.1 wrstuden must always be
95 1.1 wrstuden .Dv ATADDR_ANYNODE :
96 1.1 wrstuden ``this node.'' The net
97 1.1 wrstuden .\"may
98 1.1 wrstuden must
99 1.1 wrstuden be
100 1.1 wrstuden .Dv ATADDR_ANYNET .
101 1.1 wrstuden .\"or
102 1.1 wrstuden .\".Dv ATADDR_LATENET .
103 1.1 wrstuden .Dv ATADDR_ANYNET
104 1.1 wrstuden coresponds to the machine's ``primary'' address (the first
105 1.1 wrstuden configured).
106 1.1 wrstuden .\".Dv ATADDR_LATENET
107 1.1 wrstuden .\"causes the address in outgoing packets to be determined when a packet
108 1.1 wrstuden .\"is sent, i.e. determined late.
109 1.1 wrstuden .\".Dv ATADDR_LATENET
110 1.3 fair .\"is equivalent to opening one socket for each network interface.
111 1.1 wrstuden The port of a socket and
112 1.1 wrstuden .\"either
113 1.1 wrstuden the primary address
114 1.1 wrstuden .\"or
115 1.1 wrstuden .\".Dv ATADDR_LATENET
116 1.1 wrstuden are returned with
117 1.1 wrstuden .Xr getsockname 2 .
118 1.1 wrstuden .Sh PROTOCOLS
119 1.1 wrstuden The AppleTalk protocol family is comprised of the
120 1.1 wrstuden .Tn DDP
121 1.1 wrstuden datagram delivery protocol,
122 1.1 wrstuden AppleTalk Data Stream Protocol
123 1.1 wrstuden .Pq Tn ADSP ,
124 1.1 wrstuden AppleTalk Echo Protocol
125 1.1 wrstuden .Pq Tn AEP ,
126 1.1 wrstuden AppleTalk Filing Protocol
127 1.1 wrstuden .Pq Tn AFP ,
128 1.1 wrstuden AppleTalk Session Protocol
129 1.1 wrstuden .Pq Tn ASP ,
130 1.1 wrstuden AppleTalk Transaction Protocol
131 1.1 wrstuden .Pq Tn ATP ,
132 1.1 wrstuden Name Binding Protocol
133 1.1 wrstuden .Pq Tn NBP ,
134 1.1 wrstuden Printer Access Protocol
135 1.1 wrstuden .Pq Tn PAP ,
136 1.1 wrstuden and Zone Information Protocol
137 1.1 wrstuden .Pq Tn ZIP .
138 1.1 wrstuden .Pp
139 1.1 wrstuden .Tn DDP
140 1.3 fair is implemented in the kernel as
141 1.1 wrstuden .Dv SOCK_DGRAM
142 1.1 wrstuden sockets in the
143 1.1 wrstuden .Dv AF_APPLETALK
144 1.3 fair address family.
145 1.1 wrstuden .Nx
146 1.1 wrstuden implements all other
147 1.1 wrstuden .Tn AppleTalk
148 1.1 wrstuden protocols using the
149 1.1 wrstuden .Tn Netatalk
150 1.1 wrstuden package.
151 1.1 wrstuden .Tn Netatalk
152 1.1 wrstuden implements all functions except for
153 1.1 wrstuden .Tn ADSP
154 1.1 wrstuden and an
155 1.1 wrstuden .Tn AFP
156 1.1 wrstuden client.
157 1.1 wrstuden .Tn AEP ,
158 1.1 wrstuden .Tn NBP ,
159 1.1 wrstuden and
160 1.1 wrstuden .Tn ZIP
161 1.3 fair services are provided by the
162 1.1 wrstuden .Tn atalkd
163 1.1 wrstuden daemon.
164 1.1 wrstuden .Tn ASP
165 1.1 wrstuden and
166 1.1 wrstuden .Tn ATP
167 1.1 wrstuden services are provided by a user library.
168 1.1 wrstuden .Tn PAP
169 1.1 wrstuden and
170 1.1 wrstuden .Tn AFP
171 1.1 wrstuden services are provided by user programs and daemons.
172 1.1 wrstuden .Pp
173 1.1 wrstuden .Sh SEE ALSO
174 1.1 wrstuden .\" .BR ddp (4P),
175 1.1 wrstuden .\" .BR atp (3N),
176 1.1 wrstuden .\" .BR asp (3N),
177 1.1 wrstuden .Xr bind 2 ,
178 1.1 wrstuden .Xr getsockname 2 ,
179 1.3 fair .Xr options 4 ,
180 1.1 wrstuden .Xr atalkd 8 .
181 1.1 wrstuden .Rs
182 1.1 wrstuden .%B Inside AppleTalk, second edition
183 1.1 wrstuden .%A Gursharan S. Sidhu
184 1.1 wrstuden .%A Richard F. Andrews
185 1.1 wrstuden .%A Alan B. Oppenheimer
186 1.1 wrstuden .Re
187