1
2 #ifndef _UAPI__LINUX_ATALK_H__
3 #define _UAPI__LINUX_ATALK_H__
4
5 #include <linux/types.h>
6 #include <asm/byteorder.h>
7 #include <linux/socket.h>
8
9
10
11
12
13
14
15 #define ATPORT_FIRST 1
16 #define ATPORT_RESERVED 128
17 #define ATPORT_LAST 254
18 #define ATADDR_ANYNET (__u16)0
19 #define ATADDR_ANYNODE (__u8)0
20 #define ATADDR_ANYPORT (__u8)0
21 #define ATADDR_BCAST (__u8)255
22 #define DDP_MAXSZ 587
23 #define DDP_MAXHOPS 15
24
25 #define SIOCATALKDIFADDR (SIOCPROTOPRIVATE + 0)
26
27 struct atalk_addr {
28 __be16 s_net;
29 __u8 s_node;
30 };
31
32 struct sockaddr_at {
33 __kernel_sa_family_t sat_family;
34 __u8 sat_port;
35 struct atalk_addr sat_addr;
36 char sat_zero[8];
37 };
38
39 struct atalk_netrange {
40 __u8 nr_phase;
41 __be16 nr_firstnet;
42 __be16 nr_lastnet;
43 };
44
45 #endif