netatalk  4.4.0dev
Free and Open Source Apple Filing Protocol (AFP) Server
Loading...
Searching...
No Matches
aarp.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 1990,1991 Regents of The University of Michigan.
3 * All Rights Reserved.
4 *
5 * This structure is used for both phase 1 and 2. Under phase 1
6 * the net is not filled in. It is in phase 2. In both cases, the
7 * hardware address length is (for some unknown reason) 4. If
8 * anyone at Apple could program their way out of paper bag, it
9 * would be 1 and 3 respectively for phase 1 and 2.
10 */
11
12#ifndef _AARP_H
13#define _AARP_H 1
14
15union aapa {
16 unsigned char ap_pa[4];
17 struct ap_node {
18 unsigned char an_zero;
19 unsigned char an_net[2];
20 unsigned char an_node;
22};
23
24struct ether_aarp {
25 struct arphdr eaa_hdr;
26 unsigned char aarp_sha[6];
28 unsigned char aarp_tha[6];
30};
31#define aarp_hrd eaa_hdr.ar_hrd
32#define aarp_pro eaa_hdr.ar_pro
33#define aarp_hln eaa_hdr.ar_hln
34#define aarp_pln eaa_hdr.ar_pln
35#define aarp_op eaa_hdr.ar_op
36#define aarp_spa aarp_spu.ap_node.an_node
37#define aarp_tpa aarp_tpu.ap_node.an_node
38#define aarp_spnet aarp_spu.ap_node.an_net
39#define aarp_tpnet aarp_tpu.ap_node.an_net
40#define aarp_spnode aarp_spu.ap_node.an_node
41#define aarp_tpnode aarp_tpu.ap_node.an_node
42
43struct aarptab {
45 unsigned char aat_enaddr[6];
46 unsigned char aat_timer;
47 unsigned char aat_flags;
48 struct mbuf *aat_hold;
49};
50
51#define AARPHRD_ETHER 0x0001
52
53#define AARPOP_REQUEST 0x01
54#define AARPOP_RESPONSE 0x02
55#define AARPOP_PROBE 0x03
56
57#ifdef KERNEL
58struct aarptab *aarptnew();
59int aarpprobe();
60#endif /* KERNEL */
61
62#endif /* _AARP_H */
struct aarptab * aarptnew(struct at_addr *addr)
Definition aarp.c:538
void aarpprobe(struct arpcom *ac)
Definition aarp.c:579
Definition aarp.h:17
unsigned char an_node
Definition aarp.h:20
unsigned char an_net[2]
Definition aarp.h:19
unsigned char an_zero
Definition aarp.h:18
Definition aarp.h:43
struct at_addr aat_ataddr
Definition aarp.h:44
struct mbuf * aat_hold
Definition aarp.h:48
unsigned char aat_flags
Definition aarp.h:47
unsigned char aat_timer
Definition aarp.h:46
unsigned char aat_enaddr[6]
Definition aarp.h:45
Definition at.h:68
Definition aarp.h:24
union aapa aarp_spu
Definition aarp.h:27
unsigned char aarp_sha[6]
Definition aarp.h:26
union aapa aarp_tpu
Definition aarp.h:29
unsigned char aarp_tha[6]
Definition aarp.h:28
struct arphdr eaa_hdr
Definition aarp.h:25
Definition aarp.h:15
unsigned char ap_pa[4]
Definition aarp.h:16
struct aapa::ap_node ap_node