diff options
Diffstat (limited to 'include/linux/atalk.h')
-rw-r--r-- | include/linux/atalk.h | 43 |
1 files changed, 1 insertions, 42 deletions
diff --git a/include/linux/atalk.h b/include/linux/atalk.h index f57c36881c48..73fd8b7e9534 100644 --- a/include/linux/atalk.h +++ b/include/linux/atalk.h | |||
@@ -1,49 +1,9 @@ | |||
1 | #ifndef __LINUX_ATALK_H__ | 1 | #ifndef __LINUX_ATALK_H__ |
2 | #define __LINUX_ATALK_H__ | 2 | #define __LINUX_ATALK_H__ |
3 | 3 | ||
4 | #include <linux/types.h> | ||
5 | #include <asm/byteorder.h> | ||
6 | #include <linux/socket.h> | ||
7 | |||
8 | /* | ||
9 | * AppleTalk networking structures | ||
10 | * | ||
11 | * The following are directly referenced from the University Of Michigan | ||
12 | * netatalk for compatibility reasons. | ||
13 | */ | ||
14 | #define ATPORT_FIRST 1 | ||
15 | #define ATPORT_RESERVED 128 | ||
16 | #define ATPORT_LAST 254 /* 254 is only legal on localtalk */ | ||
17 | #define ATADDR_ANYNET (__u16)0 | ||
18 | #define ATADDR_ANYNODE (__u8)0 | ||
19 | #define ATADDR_ANYPORT (__u8)0 | ||
20 | #define ATADDR_BCAST (__u8)255 | ||
21 | #define DDP_MAXSZ 587 | ||
22 | #define DDP_MAXHOPS 15 /* 4 bits of hop counter */ | ||
23 | |||
24 | #define SIOCATALKDIFADDR (SIOCPROTOPRIVATE + 0) | ||
25 | |||
26 | struct atalk_addr { | ||
27 | __be16 s_net; | ||
28 | __u8 s_node; | ||
29 | }; | ||
30 | |||
31 | struct sockaddr_at { | ||
32 | __kernel_sa_family_t sat_family; | ||
33 | __u8 sat_port; | ||
34 | struct atalk_addr sat_addr; | ||
35 | char sat_zero[8]; | ||
36 | }; | ||
37 | |||
38 | struct atalk_netrange { | ||
39 | __u8 nr_phase; | ||
40 | __be16 nr_firstnet; | ||
41 | __be16 nr_lastnet; | ||
42 | }; | ||
43 | |||
44 | #ifdef __KERNEL__ | ||
45 | 4 | ||
46 | #include <net/sock.h> | 5 | #include <net/sock.h> |
6 | #include <uapi/linux/atalk.h> | ||
47 | 7 | ||
48 | struct atalk_route { | 8 | struct atalk_route { |
49 | struct net_device *dev; | 9 | struct net_device *dev; |
@@ -205,5 +165,4 @@ extern void atalk_proc_exit(void); | |||
205 | #define atalk_proc_exit() do { } while(0) | 165 | #define atalk_proc_exit() do { } while(0) |
206 | #endif /* CONFIG_PROC_FS */ | 166 | #endif /* CONFIG_PROC_FS */ |
207 | 167 | ||
208 | #endif /* __KERNEL__ */ | ||
209 | #endif /* __LINUX_ATALK_H__ */ | 168 | #endif /* __LINUX_ATALK_H__ */ |