2 * Copyright (c) 1990,1991 Regents of The University of Michigan.
4 * All Rights Reserved. See COPYRIGHT.
10 #ifdef linux /* pull in the linux header */
11 #include <sys/socket.h>
12 #include <asm/types.h>
13 #include <linux/atalk.h>
16 #include <sys/types.h>
17 #include <netinet/in.h> /* so that we can deal with sun's s_net #define */
26 #define ATPROTO_AARP 254
29 * Ethernet types, for DIX.
30 * These should really be in some global header file, but we can't
31 * count on them being there, and it's annoying to patch system files.
33 #define ETHERTYPE_AT 0x809B /* AppleTalk protocol */
34 #define ETHERTYPE_AARP 0x80F3 /* AppleTalk ARP */
39 * If ATPORT_FIRST <= Port < ATPORT_RESERVED,
40 * Port was created by a privileged process.
41 * If ATPORT_RESERVED <= Port < ATPORT_LAST,
42 * Port was not necessarily created by a
45 #define ATPORT_FIRST 1
46 #define ATPORT_RESERVED 128
47 #define ATPORT_LAST 254 /* 254 is reserved on ether/tokentalk networks */
60 #define ATADDR_ANYNET (u_short)0x0000
61 #define ATADDR_ANYNODE (u_char)0x00
62 #define ATADDR_ANYPORT (u_char)0x00
63 #define ATADDR_BCAST (u_char)0xff /* There is no BCAST for NET */
66 * Socket address, AppleTalk style. We keep magic information in the
67 * zero bytes. There are three types, NONE, CONFIG which has the phase
68 * and a net range, and IFACE which has the network address of an
69 * interface. IFACE may be filled in by the client, and is filled in
80 struct at_addr sat_addr;
84 # define SATHINT_NONE 0
85 # define SATHINT_CONFIG 1
86 # define SATHINT_IFACE 2
88 char su_zero[ 7 ]; /* XXX check size */
91 u_short sr_firstnet, sr_lastnet;
108 extern struct domain atalkdomain;
109 extern struct protosw atalksw[];