diff options
author | rwatson <rwatson@FreeBSD.org> | 2007-01-12 12:25:12 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2007-01-12 12:25:12 +0000 |
commit | ccc086813d94233b2bd97bad22ddd8017def360d (patch) | |
tree | 35b7120e9b012289025f559777f7cc8b50fd0981 /sys/netatalk/aarp.h | |
parent | 1f2d2eae20d4255721304f2882fe92f6cc0689d4 (diff) | |
download | FreeBSD-src-ccc086813d94233b2bd97bad22ddd8017def360d.zip FreeBSD-src-ccc086813d94233b2bd97bad22ddd8017def360d.tar.gz |
Re-style aarp with style(9): normal plethora of white space, brace,
etc, changes.
Remove a small amount of #if !defined(__FreeBSD__) code.
Add missing include guard for _NETATALK_AARP_H_.
Remove unneeded (and conflicting) extern prototype for aarptfree().
Diffstat (limited to 'sys/netatalk/aarp.h')
-rw-r--r-- | sys/netatalk/aarp.h | 64 |
1 files changed, 33 insertions, 31 deletions
diff --git a/sys/netatalk/aarp.h b/sys/netatalk/aarp.h index 5b98984..b57d3c9 100644 --- a/sys/netatalk/aarp.h +++ b/sys/netatalk/aarp.h @@ -27,6 +27,8 @@ */ #ifndef _NETATALK_AARP_H_ +#define _NETATALK_AARP_H_ + /* * This structure is used for both phase 1 and 2. Under phase 1 * the net is not filled in. It is in phase 2. In both cases, the @@ -35,46 +37,46 @@ * would be 1 and 3 respectively for phase 1 and 2. */ union aapa { - u_char ap_pa[4]; - struct ap_node { - u_char an_zero; - u_char an_net[2]; - u_char an_node; - } ap_node; + u_char ap_pa[4]; + struct ap_node { + u_char an_zero; + u_char an_net[2]; + u_char an_node; + } ap_node; }; struct ether_aarp { - struct arphdr eaa_hdr; - u_char aarp_sha[6]; - union aapa aarp_spu; - u_char aarp_tha[6]; - union aapa aarp_tpu; + struct arphdr eaa_hdr; + u_char aarp_sha[6]; + union aapa aarp_spu; + u_char aarp_tha[6]; + union aapa aarp_tpu; }; -#define aarp_hrd eaa_hdr.ar_hrd -#define aarp_pro eaa_hdr.ar_pro -#define aarp_hln eaa_hdr.ar_hln -#define aarp_pln eaa_hdr.ar_pln -#define aarp_op eaa_hdr.ar_op -#define aarp_spa aarp_spu.ap_node.an_node -#define aarp_tpa aarp_tpu.ap_node.an_node -#define aarp_spnet aarp_spu.ap_node.an_net -#define aarp_tpnet aarp_tpu.ap_node.an_net -#define aarp_spnode aarp_spu.ap_node.an_node -#define aarp_tpnode aarp_tpu.ap_node.an_node +#define aarp_hrd eaa_hdr.ar_hrd +#define aarp_pro eaa_hdr.ar_pro +#define aarp_hln eaa_hdr.ar_hln +#define aarp_pln eaa_hdr.ar_pln +#define aarp_op eaa_hdr.ar_op +#define aarp_spa aarp_spu.ap_node.an_node +#define aarp_tpa aarp_tpu.ap_node.an_node +#define aarp_spnet aarp_spu.ap_node.an_net +#define aarp_tpnet aarp_tpu.ap_node.an_net +#define aarp_spnode aarp_spu.ap_node.an_node +#define aarp_tpnode aarp_tpu.ap_node.an_node struct aarptab { - struct at_addr aat_ataddr; - u_char aat_enaddr[ 6 ]; - u_char aat_timer; - u_char aat_flags; - struct mbuf *aat_hold; + struct at_addr aat_ataddr; + u_char aat_enaddr[6]; + u_char aat_timer; + u_char aat_flags; + struct mbuf *aat_hold; }; -#define AARPHRD_ETHER 0x0001 +#define AARPHRD_ETHER 0x0001 -#define AARPOP_REQUEST 0x01 -#define AARPOP_RESPONSE 0x02 -#define AARPOP_PROBE 0x03 +#define AARPOP_REQUEST 0x01 +#define AARPOP_RESPONSE 0x02 +#define AARPOP_PROBE 0x03 #ifdef _KERNEL struct aarptab *aarptnew(struct at_addr *); |