2 * $Id: at.h,v 1.2 2001-06-29 14:14:47 rufustfirefly Exp $
4 * Copyright (c) 1990,1991 Regents of The University of Michigan.
6 * All Rights Reserved. See COPYRIGHT.
12 #ifdef 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 */
26 #endif /* ATPROTO_DDP */
28 #define ATPROTO_AARP 254
31 * Ethernet types, for DIX.
32 * These should really be in some global header file, but we can't
33 * count on them being there, and it's annoying to patch system files.
35 #define ETHERTYPE_AT 0x809B /* AppleTalk protocol */
36 #define ETHERTYPE_AARP 0x80F3 /* AppleTalk ARP */
41 * If ATPORT_FIRST <= Port < ATPORT_RESERVED,
42 * Port was created by a privileged process.
43 * If ATPORT_RESERVED <= Port < ATPORT_LAST,
44 * Port was not necessarily created by a
47 #define ATPORT_FIRST 1
48 #define ATPORT_RESERVED 128
49 #define ATPORT_LAST 254 /* 254 is reserved on ether/tokentalk networks */
62 #define ATADDR_ANYNET (u_short)0x0000
63 #define ATADDR_ANYNODE (u_char)0x00
64 #define ATADDR_ANYPORT (u_char)0x00
65 #define ATADDR_BCAST (u_char)0xff /* There is no BCAST for NET */
68 * Socket address, AppleTalk style. We keep magic information in the
69 * zero bytes. There are three types, NONE, CONFIG which has the phase
70 * and a net range, and IFACE which has the network address of an
71 * interface. IFACE may be filled in by the client, and is filled in
82 struct at_addr sat_addr;
86 # define SATHINT_NONE 0
87 # define SATHINT_CONFIG 1
88 # define SATHINT_IFACE 2
90 char su_zero[ 7 ]; /* XXX check size */
93 u_short sr_firstnet, sr_lastnet;
110 extern struct domain atalkdomain;
111 extern struct protosw atalksw[];
115 #endif /* __AT_HEADER__ */