2 * $Id: at.h,v 1.3.4.2 2003-11-30 15:07:50 srittau 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 */
14 #include <sys/socket.h>
15 #include <asm/types.h>
16 #include <linux/atalk.h>
18 #ifdef HAVE_ATALK_ADDR
19 #define at_addr atalk_addr
20 #define netrange atalk_netrange
21 #endif /* HAVE_ATALK_ADDR */
25 #include <sys/types.h>
26 #include <netinet/in.h> /* so that we can deal with sun's s_net #define */
29 #include <netat/appletalk.h>
30 #endif /* MACOSX_SERVER */
37 #endif /* ATPROTO_DDP */
39 #define ATPROTO_AARP 254
42 * Ethernet types, for DIX.
43 * These should really be in some global header file, but we can't
44 * count on them being there, and it's annoying to patch system files.
46 #define ETHERTYPE_AT 0x809B /* AppleTalk protocol */
47 #define ETHERTYPE_AARP 0x80F3 /* AppleTalk ARP */
52 * If ATPORT_FIRST <= Port < ATPORT_RESERVED,
53 * Port was created by a privileged process.
54 * If ATPORT_RESERVED <= Port < ATPORT_LAST,
55 * Port was not necessarily created by a
58 #define ATPORT_FIRST 1
59 #define ATPORT_RESERVED 128
60 #define ATPORT_LAST 254 /* 254 is reserved on ether/tokentalk networks */
73 #endif /* MACOSX_SERVER */
75 #define ATADDR_ANYNET (u_short)0x0000
76 #define ATADDR_ANYNODE (u_char)0x00
77 #define ATADDR_ANYPORT (u_char)0x00
78 #define ATADDR_BCAST (u_char)0xff /* There is no BCAST for NET */
81 * Socket address, AppleTalk style. We keep magic information in the
82 * zero bytes. There are three types, NONE, CONFIG which has the phase
83 * and a net range, and IFACE which has the network address of an
84 * interface. IFACE may be filled in by the client, and is filled in
96 struct at_addr sat_addr;
100 # define SATHINT_NONE 0
101 # define SATHINT_CONFIG 1
102 # define SATHINT_IFACE 2
104 char su_zero[ 7 ]; /* XXX check size */
107 u_short sr_firstnet, sr_lastnet;
109 u_short su_interface;
116 #endif /* MACOSX_SERVER */
125 extern struct domain atalkdomain;
126 extern struct protosw atalksw[];
130 #endif /* __AT_HEADER__ */