2 * Copyright (c) 1990,1991 Regents of The University of Michigan.
4 * All Rights Reserved. See COPYRIGHT.
12 #endif /* HAVE_CONFIG_H */
16 #if defined(linux) /* pull in the linux header */
17 #include <sys/socket.h>
18 #include <asm/types.h>
19 #include <linux/atalk.h>
21 #ifdef HAVE_ATALK_ADDR
22 #define at_addr atalk_addr
23 #define netrange atalk_netrange
24 #endif /* HAVE_ATALK_ADDR */
28 #include <sys/types.h>
29 #include <netinet/in.h> /* so that we can deal with sun's s_net #define */
32 #include <netat/appletalk.h>
33 #endif /* MACOSX_SERVER */
40 #endif /* ATPROTO_DDP */
42 #define ATPROTO_AARP 254
45 * Ethernet types, for DIX.
46 * These should really be in some global header file, but we can't
47 * count on them being there, and it's annoying to patch system files.
50 #define ETHERTYPE_AT 0x809B /* AppleTalk protocol */
52 #ifndef ETHERTYPE_AARP
53 #define ETHERTYPE_AARP 0x80F3 /* AppleTalk ARP */
59 * If ATPORT_FIRST <= Port < ATPORT_RESERVED,
60 * Port was created by a privileged process.
61 * If ATPORT_RESERVED <= Port < ATPORT_LAST,
62 * Port was not necessarily created by a
65 #define ATPORT_FIRST 1
66 #define ATPORT_RESERVED 128
67 #define ATPORT_LAST 254 /* 254 is reserved on ether/tokentalk networks */
80 #endif /* MACOSX_SERVER */
82 #define ATADDR_ANYNET (u_short)0x0000
83 #define ATADDR_ANYNODE (u_char)0x00
84 #define ATADDR_ANYPORT (u_char)0x00
85 #define ATADDR_BCAST (u_char)0xff /* There is no BCAST for NET */
88 * Socket address, AppleTalk style. We keep magic information in the
89 * zero bytes. There are three types, NONE, CONFIG which has the phase
90 * and a net range, and IFACE which has the network address of an
91 * interface. IFACE may be filled in by the client, and is filled in
103 struct at_addr sat_addr;
107 # define SATHINT_NONE 0
108 # define SATHINT_CONFIG 1
109 # define SATHINT_IFACE 2
111 char su_zero[ 7 ]; /* XXX check size */
114 u_short sr_firstnet, sr_lastnet;
116 u_short su_interface;
123 #endif /* MACOSX_SERVER */
132 extern struct domain atalkdomain;
133 extern struct protosw atalksw[];
138 #endif /* __AT_HEADER__ */