/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _UAPI__LINUX_ATALK_H__ #define _UAPI__LINUX_ATALK_H__ #include #include #include /* * AppleTalk networking structures * * The following are directly referenced from the University Of Michigan * netatalk for compatibility reasons. */ #define ATPORT_FIRST 1 #define ATPORT_RESERVED 128 #define ATPORT_LAST 254 /* 254 is only legal on localtalk */ #define ATADDR_ANYNET (uint16_t)0 #define ATADDR_ANYNODE (uint8_t)0 #define ATADDR_ANYPORT (uint8_t)0 #define ATADDR_BCAST (uint8_t)255 #define DDP_MAXSZ 587 #define DDP_MAXHOPS 15 /* 4 bits of hop counter */ #define SIOCATALKDIFADDR (SIOCPROTOPRIVATE + 0) struct atalk_addr { uint16_t s_net; uint8_t s_node; }; struct sockaddr_at { __kernel_sa_family_t sat_family; uint8_t sat_port; struct atalk_addr sat_addr; char sat_zero[8]; }; struct atalk_netrange { uint8_t nr_phase; uint16_t nr_firstnet; uint16_t nr_lastnet; }; #endif /* _UAPI__LINUX_ATALK_H__ */