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