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