source: svn/trunk/newcon3bcm2_21bu/toolchain/mips-linux-uclibc/include/linux/atalk.h @ 2

Last change on this file since 2 was 2, checked in by jglee, 11 years ago

first commit

  • Property svn:executable set to *
File size: 871 bytes
Line 
1#ifndef __LINUX_ATALK_H__
2#define __LINUX_ATALK_H__
3
4/*
5 * AppleTalk networking structures
6 *
7 * The following are directly referenced from the University Of Michigan
8 * netatalk for compatibility reasons.
9 */
10#define ATPORT_FIRST    1
11#define ATPORT_RESERVED 128
12#define ATPORT_LAST     254             /* 254 is only legal on localtalk */ 
13#define ATADDR_ANYNET   (__u16)0
14#define ATADDR_ANYNODE  (__u8)0
15#define ATADDR_ANYPORT  (__u8)0
16#define ATADDR_BCAST    (__u8)255
17#define DDP_MAXSZ       587
18#define DDP_MAXHOPS     15              /* 4 bits of hop counter */
19
20#define SIOCATALKDIFADDR       (SIOCPROTOPRIVATE + 0)
21
22struct atalk_addr {
23        __u16   s_net;
24        __u8    s_node;
25};
26
27struct sockaddr_at {
28        sa_family_t       sat_family;
29        __u8              sat_port;
30        struct atalk_addr sat_addr;
31        char              sat_zero[8];
32};
33
34struct atalk_netrange {
35        __u8    nr_phase;
36        __u16   nr_firstnet;
37        __u16   nr_lastnet;
38};
39
40#endif /* __LINUX_ATALK_H__ */
Note: See TracBrowser for help on using the repository browser.