ATALK(4F)ATALK(4F)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 the kernel; ATP and ASP are implemented in user level libraries; and ADSP is planned.
ADDRESSING
AppleTalk addresses are three byte quantities, stored in network byte order. The include file <netatalk/at.h> defines the AppleTalk address
format.
Sockets in 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 may be set with bind(2). The node for bind must always be ATADDR_ANYNODE: ``this node.'' The net may be ATADDR_ANYNET
or ATADDR_LATENET. ATADDR_ANYNET coresponds to the machine's ``primary'' address (the first configured). ATADDR_LATENET causes the
address in outgoing packets to be determined when a packet is sent, i.e. determined late. ATADDR_LATENET is equivalent to opening one
socket for each network interface. The port of a socket and either the primary address or ATADDR_LATENET are returned with getsockname(2).
SEE ALSO bind(2), getsockname(2), atalkd(8).
netatalk 1.2 17 Dec 1991 ATALK(4F)
Check Out this Related Man Page
ATALK(4) BSD Kernel Interfaces Manual ATALK(4)NAME
atalk -- AppleTalk Protocol Family
SYNOPSIS
#include <sys/types.h>
#include <netatalk/at.h>
DESCRIPTION
The AppleTalk Protocol Family provides presentation layer support for the AppleTalk Datagram Delivery Protocol (DDP), using the SOCK_DGRAM
socket type. In addition, access to in-kernel AppleTalk routing tables and network interface configurations is provided.
The AppleTalk Protocol Suite provides support for five kinds of physical media: LocalTalk (230kbps wire-or'd serial), Ethernet, FDDI, Token
Ring, and asynchronous serial connections (using either AppleTalk Remote Access (ARA) or PPP ). Currently, NetBSD's AppleTalk implementation
supports Ethernet, FDDI, and Token Ring.
AppleTalk packets are encapsulated on the Ethernet using the EtherTalk Link Access Protocol (ELAP). Local network address resolution is han-
dled using the AppleTalk Address Resolution Protocol (AARP). Neither of these protocols is exposed to user-mode applications.
ADDRESSING
AppleTalk addresses are three byte quantities, stored in network byte order. The include file <netatalk/at.h> defines the AppleTalk address
format.
Sockets in the AppleTalk protocol family use the following address structure:
struct sockaddr_at {
uint8_t sat_len;
sa_family_t sat_family;
uint8_t sat_port;
struct at_addr sat_addr;
union {
struct netrange r_netrange;
char r_zero[8];
} sat_range;
};
The port of a socket may be set with bind(2). The node for bind(2) must always be ATADDR_ANYNODE: ``this node''. The net must be
ATADDR_ANYNET. ATADDR_ANYNET corresponds to the machine's ``primary'' address (the first configured). The port of a socket and the primary
address are returned with getsockname(2).
PROTOCOLS
The AppleTalk protocol family comprises the DDP datagram delivery protocol, AppleTalk Data Stream Protocol (ADSP), AppleTalk Echo Protocol
(AEP), AppleTalk Filing Protocol (AFP), AppleTalk Session Protocol (ASP), AppleTalk Transaction Protocol (ATP), Name Binding Protocol (NBP),
Printer Access Protocol (PAP), and Zone Information Protocol (ZIP).
DDP is implemented in the kernel as SOCK_DGRAM sockets in the AF_APPLETALK address family. NetBSD implements all other AppleTalk protocols
using the Netatalk package. Netatalk implements all functions except for ADSP and an AFP client. AEP, NBP, and ZIP services are provided by
the atalkd daemon. ASP and ATP services are provided by a user library. PAP and AFP services are provided by user programs and daemons.
SEE ALSO bind(2), getsockname(2), options(4)
Gursharan S. Sidhu, Richard F. Andrews, and Alan B. Oppenheimer, Inside AppleTalk, second edition.
BSD November 14, 1997 BSD