]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/ArpDxe/ArpImpl.h
[Change summary]:
[mirror_edk2.git] / MdeModulePkg / Universal / Network / ArpDxe / ArpImpl.h
index bc9128d33b13a40289139f324d1b51ef97b8c607..6fc950771f85a1b43b17cda6d1b87fb318bf12b5 100644 (file)
@@ -1,7 +1,7 @@
 /** @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
@@ -186,17 +186,19 @@ typedef struct {
 #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