1 /* 2 * This file is auto-generated. Modifications will be lost. 3 * 4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ 5 * for more information. 6 */ 7 #ifndef _UAPI__LINUX_ATALK_H__ 8 #define _UAPI__LINUX_ATALK_H__ 9 #include <linux/types.h> 10 #include <asm/byteorder.h> 11 #include <linux/socket.h> 12 #define ATPORT_FIRST 1 13 #define ATPORT_RESERVED 128 14 #define ATPORT_LAST 254 15 #define ATADDR_ANYNET (__u16) 0 16 #define ATADDR_ANYNODE (__u8) 0 17 #define ATADDR_ANYPORT (__u8) 0 18 #define ATADDR_BCAST (__u8) 255 19 #define DDP_MAXSZ 587 20 #define DDP_MAXHOPS 15 21 #define SIOCATALKDIFADDR (SIOCPROTOPRIVATE + 0) 22 struct atalk_addr { 23 __be16 s_net; 24 __u8 s_node; 25 }; 26 struct sockaddr_at { 27 __kernel_sa_family_t sat_family; 28 __u8 sat_port; 29 struct atalk_addr sat_addr; 30 char sat_zero[8]; 31 }; 32 struct atalk_netrange { 33 __u8 nr_phase; 34 __be16 nr_firstnet; 35 __be16 nr_lastnet; 36 }; 37 #endif 38