1atalk(4)                           Netatalk                           atalk(4)
2
3
4

NAME

6       atalk - AppleTalk protocol family
7

SYNOPSIS

9       #include <sys/types.h>
10       #include <netatalk/at.h>
11
12

DESCRIPTION

14       The  AppleTalk  protocol  family  is  a collection of protocols layered
15       above the Datagram Delivery Protocol (DDP), and using AppleTalk address
16       format. The AppleTalk family may provide SOCK_STREAM (ADSP), SOCK_DGRAM
17       (DDP), SOCK_RDM (ATP), and SOCK_SEQPACKET (ASP). Currently, only DDP is
18       implemented  in  the  kernel; ATP and ASP are implemented in user level
19       libraries; and ADSP is planned.
20

ADDRESSING

22       AppleTalk addresses are three byte quantities, stored in  network  byte
23       order.  The  include file <netatalk/at.h> defines the AppleTalk address
24       format.
25
26       Sockets in the AppleTalk protocol  family  use  the  following  address
27       structure:
28
29       struct sockaddr_at {
30           short sat_family;
31           u_char sat_port;
32           struct at_addr sat_addr;
33           char sat_zero[ 8 ];
34       };
35
36       The  port  of a socket may be set with bind(2).  The node for bind must
37       always be ATADDR_ANYNODE: ``this node.'' The net may  be  ATADDR_ANYNET
38       or  ATADDR_LATENET.   ATADDR_ANYNET  coresponds to the machine's ``pri‐
39       mary'' address  (the  first  configured).   ATADDR_LATENET  causes  the
40       address  in  outgoing  packets  to be determined when a packet is sent,
41       i.e. determined late.  ATADDR_LATENET  is  equivalent  to  opening  one
42       socket  for each network interface. The port of a socket and either the
43       primary address or ATADDR_LATENET are returned with getsockname(2).
44

SEE ALSO

46       bind(2), getsockname(2), atalkd(8).
47
48
49
50
512.0.3                             17 Dec 1991                         atalk(4)
Impressum