2 * $Id: at.h,v 1.3 2001-11-25 21:55:10 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 */
13 #include <sys/socket.h>
14 #include <asm/types.h>
15 #include <linux/atalk.h>
18 #include <sys/types.h>
19 #include <netinet/in.h> /* so that we can deal with sun's s_net #define */
22 #include <netat/appletalk.h>
23 #endif /* MACOSX_SERVER */
30 #endif /* ATPROTO_DDP */
32 #define ATPROTO_AARP 254
35 * Ethernet types, for DIX.
36 * These should really be in some global header file, but we can't
37 * count on them being there, and it's annoying to patch system files.
39 #define ETHERTYPE_AT 0x809B /* AppleTalk protocol */
40 #define ETHERTYPE_AARP 0x80F3 /* AppleTalk ARP */
45 * If ATPORT_FIRST <= Port < ATPORT_RESERVED,
46 * Port was created by a privileged process.
47 * If ATPORT_RESERVED <= Port < ATPORT_LAST,
48 * Port was not necessarily created by a
51 #define ATPORT_FIRST 1
52 #define ATPORT_RESERVED 128
53 #define ATPORT_LAST 254 /* 254 is reserved on ether/tokentalk networks */
66 #endif /* MACOSX_SERVER */
68 #define ATADDR_ANYNET (u_short)0x0000
69 #define ATADDR_ANYNODE (u_char)0x00
70 #define ATADDR_ANYPORT (u_char)0x00
71 #define ATADDR_BCAST (u_char)0xff /* There is no BCAST for NET */
74 * Socket address, AppleTalk style. We keep magic information in the
75 * zero bytes. There are three types, NONE, CONFIG which has the phase
76 * and a net range, and IFACE which has the network address of an
77 * interface. IFACE may be filled in by the client, and is filled in
89 struct at_addr sat_addr;
93 # define SATHINT_NONE 0
94 # define SATHINT_CONFIG 1
95 # define SATHINT_IFACE 2
97 char su_zero[ 7 ]; /* XXX check size */
100 u_short sr_firstnet, sr_lastnet;
102 u_short su_interface;
109 #endif /* MACOSX_SERVER */
118 extern struct domain atalkdomain;
119 extern struct protosw atalksw[];
123 #endif /* __AT_HEADER__ */