netatalk 4.5.0
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
15 union 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;
21 } ap_node;
22};
23
24 struct ether_aarp {
25 struct arphdr eaa_hdr;
26 unsigned char aarp_sha[6];
27 union aapa aarp_spu;
28 unsigned char aarp_tha[6];
29 union aapa aarp_tpu;
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
43 struct aarptab {
44 struct at_addr aat_ataddr;
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
58 struct aarptab *aarptnew();
59 int aarpprobe();
60#endif /* KERNEL */
61
62#endif /* _AARP_H */
aarptnew
struct aarptab * aarptnew(struct at_addr *addr)
Definition aarp.c:538
aarpprobe
void aarpprobe(struct arpcom *ac)
Definition aarp.c:579
aapa::ap_node
Definition aarp.h:17
aapa::ap_node::an_node
unsigned char an_node
Definition aarp.h:20
aapa::ap_node::an_net
unsigned char an_net[2]
Definition aarp.h:19
aapa::ap_node::an_zero
unsigned char an_zero
Definition aarp.h:18
aarptab
Definition aarp.h:43
aarptab::aat_ataddr
struct at_addr aat_ataddr
Definition aarp.h:44
aarptab::aat_hold
struct mbuf * aat_hold
Definition aarp.h:48
aarptab::aat_flags
unsigned char aat_flags
Definition aarp.h:47
aarptab::aat_timer
unsigned char aat_timer
Definition aarp.h:46
aarptab::aat_enaddr
unsigned char aat_enaddr[6]
Definition aarp.h:45
at_addr
Definition at.h:68
ether_aarp
Definition aarp.h:24
ether_aarp::aarp_spu
union aapa aarp_spu
Definition aarp.h:27
ether_aarp::aarp_sha
unsigned char aarp_sha[6]
Definition aarp.h:26
ether_aarp::aarp_tpu
union aapa aarp_tpu
Definition aarp.h:29
ether_aarp::aarp_tha
unsigned char aarp_tha[6]
Definition aarp.h:28
ether_aarp::eaa_hdr
struct arphdr eaa_hdr
Definition aarp.h:25
aapa
Definition aarp.h:15
aapa::ap_pa
unsigned char ap_pa[4]
Definition aarp.h:16
aapa::ap_node
struct aapa::ap_node ap_node