atalk(4) Netatalk atalk(4) NAME atalk - AppleTalk protocol family SYNOPSIS #include <sys/types.h> #include <netatalk/at.h> DESCRIPTION The AppleTalk protocol family is a collection of protocols layered above the Datagram Delivery Protocol (DDP), and using AppleTalk address format. The AppleTalk family may provide SOCK_STREAM (ADSP), SOCK_DGRAM (DDP), SOCK_RDM (ATP), and SOCK_SEQPACKET (ASP). Currently, only DDP is implemented in(1,8) the kernel; ATP and ASP are implemented in(1,8) user level libraries; and ADSP is planned. ADDRESSING AppleTalk addresses are three byte quantities, stored in(1,8) network byte order. The include file(1,n) <netatalk/at.h> defines the AppleTalk address format. Sockets in(1,8) the AppleTalk protocol family use the following address structure: struct sockaddr_at { short sat_family; u_char sat_port; struct at_addr sat_addr; char sat_zero[ 8 ]; }; The port of a socket(2,7,n) may be set(7,n,1 builtins) with bind(2,n,1 builtins)(2). The node for bind(2,n,1 builtins) must always be ATADDR_ANYNODE: ``this node.'' The net may be ATADDR_ANYNET or ATADDR_LATENET. ATADDR_ANYNET coresponds to the machine's ``pri- mary'' address (the first configured). ATADDR_LATENET causes the address in(1,8) outgoing packets to be determined when a packet is sent, i.e. determined late. ATADDR_LATENET is equivalent to opening one socket(2,7,n) for each network interface. The port of a socket(2,7,n) and either the primary address or ATADDR_LATENET are returned with getsockname(2). SEE ALSO bind(2,n,1 builtins)(2), getsockname(2), atalkd(8). 2.0.3 17 Dec 1991 atalk(4)