/** @file\r
EFI Address Resolution Protocol (ARP) Protocol interface header file.\r
\r
-Copyright (c) 2006 - 2008, Intel Corporation.<BR>\r
+Copyright (c) 2006 - 2009, Intel Corporation.<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at<BR>\r
#define ARP_MAX_PROTOCOL_ADDRESS_LEN sizeof(EFI_IP_ADDRESS)\r
#define ARP_MAX_HARDWARE_ADDRESS_LEN sizeof(EFI_MAC_ADDRESS)\r
\r
+typedef union {\r
+ UINT8 ProtoAddress[ARP_MAX_PROTOCOL_ADDRESS_LEN];\r
+ UINT8 HwAddress[ARP_MAX_HARDWARE_ADDRESS_LEN];\r
+} NET_ARP_ADDRESS_UNION;\r
+\r
//\r
// ARP address structure in an ARP packet.\r
//\r
typedef struct {\r
- UINT16 Type;\r
- UINT8 Length;\r
- UINT8 *AddressPtr;\r
- union {\r
- UINT8 ProtoAddress[ARP_MAX_PROTOCOL_ADDRESS_LEN];\r
- UINT8 HwAddress[ARP_MAX_HARDWARE_ADDRESS_LEN];\r
- } Buffer;\r
+ UINT16 Type;\r
+ UINT8 Length;\r
+ UINT8 *AddressPtr;\r
+ NET_ARP_ADDRESS_UNION Buffer;\r
} NET_ARP_ADDRESS;\r
\r
//\r