2 * $Id: at.h,v 1.6 2008-12-18 17:31:31 morgana Exp $
4 * Copyright (c) 1990,1991 Regents of The University of Michigan.
6 * All Rights Reserved. See COPYRIGHT.
12 #if defined(linux) /* pull in the linux header */
13 #include <sys/socket.h>
14 #include <asm/types.h>
15 #include <linux/atalk.h>
17 #ifdef HAVE_ATALK_ADDR
18 #define at_addr atalk_addr
19 #define netrange atalk_netrange
20 #endif /* HAVE_ATALK_ADDR */
24 #include <sys/types.h>
25 #include <netinet/in.h> /* so that we can deal with sun's s_net #define */
28 #include <netat/appletalk.h>
29 #endif /* MACOSX_SERVER */
36 #endif /* ATPROTO_DDP */
38 #define ATPROTO_AARP 254
41 * Ethernet types, for DIX.
42 * These should really be in some global header file, but we can't
43 * count on them being there, and it's annoying to patch system files.
46 #define ETHERTYPE_AT 0x809B /* AppleTalk protocol */
48 #ifndef ETHERTYPE_AARP
49 #define ETHERTYPE_AARP 0x80F3 /* AppleTalk ARP */
55 * If ATPORT_FIRST <= Port < ATPORT_RESERVED,
56 * Port was created by a privileged process.
57 * If ATPORT_RESERVED <= Port < ATPORT_LAST,
58 * Port was not necessarily created by a
61 #define ATPORT_FIRST 1
62 #define ATPORT_RESERVED 128
63 #define ATPORT_LAST 254 /* 254 is reserved on ether/tokentalk networks */
76 #endif /* MACOSX_SERVER */
78 #define ATADDR_ANYNET (u_short)0x0000
79 #define ATADDR_ANYNODE (u_char)0x00
80 #define ATADDR_ANYPORT (u_char)0x00
81 #define ATADDR_BCAST (u_char)0xff /* There is no BCAST for NET */
84 * Socket address, AppleTalk style. We keep magic information in the
85 * zero bytes. There are three types, NONE, CONFIG which has the phase
86 * and a net range, and IFACE which has the network address of an
87 * interface. IFACE may be filled in by the client, and is filled in
99 struct at_addr sat_addr;
103 # define SATHINT_NONE 0
104 # define SATHINT_CONFIG 1
105 # define SATHINT_IFACE 2
107 char su_zero[ 7 ]; /* XXX check size */
110 u_short sr_firstnet, sr_lastnet;
112 u_short su_interface;
119 #endif /* MACOSX_SERVER */
128 extern struct domain atalkdomain;
129 extern struct protosw atalksw[];
133 #endif /* __AT_HEADER__ */