2 * Copyright (c) 1990,1991 Regents of The University of Michigan.
8 #ifndef _NETATALK_AARP_H_
10 * This structure is used for both phase 1 and 2. Under phase 1
11 * the net is not filled in. It is in phase 2. In both cases, the
12 * hardware address length is (for some unknown reason) 4. If
13 * anyone at Apple could program their way out of paper bag, it
14 * would be 1 and 3 respectively for phase 1 and 2.
26 struct arphdr eaa_hdr;
32 #define aarp_hrd eaa_hdr.ar_hrd
33 #define aarp_pro eaa_hdr.ar_pro
34 #define aarp_hln eaa_hdr.ar_hln
35 #define aarp_pln eaa_hdr.ar_pln
36 #define aarp_op eaa_hdr.ar_op
37 #define aarp_spa aarp_spu.ap_node.an_node
38 #define aarp_tpa aarp_tpu.ap_node.an_node
39 #define aarp_spnet aarp_spu.ap_node.an_net
40 #define aarp_tpnet aarp_tpu.ap_node.an_net
41 #define aarp_spnode aarp_spu.ap_node.an_node
42 #define aarp_tpnode aarp_tpu.ap_node.an_node
45 struct at_addr aat_ataddr;
46 u_char aat_enaddr[ 6 ];
49 struct mbuf *aat_hold;
52 #define AARPHRD_ETHER 0x0001
54 #define AARPOP_REQUEST 0x01
55 #define AARPOP_RESPONSE 0x02
56 #define AARPOP_PROBE 0x03
59 struct aarptab *aarptnew(struct at_addr *);
62 #endif /* _NETATALK_AARP_H_ */