ddp(7) Miscellaneous Information Manual ddp(7) ddp - AppleTalk Linux #include #include ddp_socket = socket(AF_APPLETALK, SOCK_DGRAM, 0); raw_socket = socket(AF_APPLETALK, SOCK_RAW, protocol); Linux AppleTalk, Inside AppleTalk. DDP AARP. , netatalk. , DDP . AppleTalk , BSD. socket(7). AppleTalk socket(2), AF_APPLETALK. SOCK_DGRAM ( ddp) SOCK_RAW ( raw). protocol - AppleTalk. SOCK_RAW ATPROTO_DDP. , , , CAP_NET_RAW. AppleTalk , . struct at_addr { unsigned short s_net; unsigned char s_node; }; struct sockaddr_atalk { sa_family_t sat_family; /* address family */ unsigned char sat_port; /* port */ struct at_addr sat_addr; /* net/node */ }; sat_family is always set to AF_APPLETALK. sat_port contains the port. The port numbers below 129 are known as reserved ports. Only processes with the effective user ID 0 or the CAP_NET_BIND_SERVICE capability may bind(2) to these sockets. sat_addr is the host address. The net member of struct at_addr contains the host network in network byte order. The value of AT_ANYNET is a wildcard and also implies "this network." The node member of struct at_addr contains the host node number. The value of AT_ANYNODE is a wildcard and also implies "this node." The value of ATADDR_BCAST is a link local broadcast address. . /proc IP /proc Appletalk. /proc/sys/net/atalk/. aarp-expiry-time ( ) AARP. aarp-resolve-time ( ) AARP. aarp-retransmit-limit AARP , . aarp-tick-time AARP . . ioctl ioctl, socket(7), DDP. EACCES , . , , CAP_NET_BIND_SERVICE. EADDRINUSE . EADDRNOTAVAIL . EAGAIN . EALREADY . ECONNABORTED accept(2). EHOSTUNREACH , . EINVAL . EISCONN connect(2) , . EMSGSIZE DDP MTU. ENODEV IP. ENOENT SIOCGSTAMP, . ENOMEM ENOBUFS . ENOPKG . ENOPROTOOPT EOPNOTSUPP . ENOTCONN , , . EPERM , , . EPIPE (shut down) . ESOCKTNOSUPPORT . AppleTalk Linux 2.0 . /proc Linux 2.2. SO_BROADCAST: Linux . . Appletalk netatalk BSD- . BSD SO_BROADCAST : . Linux CAP AppleTalk. . ioctl , , AARP . . recvmsg(2), sendmsg(2), capabilities(7), socket(7) Yuri Kozlov ; GNU 3 , . . , , . Linux man-pages 6.06 31 2023 . ddp(7)