\r
if (EntryLength != NULL) {\r
//\r
- // Return the entry length.\r
+ // Return the entry length, make sure its 8 bytes alignment.\r
//\r
- *EntryLength = sizeof (EFI_ARP_FIND_DATA) + Instance->ConfigData.SwAddressLength +\r
- ArpService->SnpMode.HwAddressSize;\r
+ *EntryLength = (((sizeof (EFI_ARP_FIND_DATA) + Instance->ConfigData.SwAddressLength +\r
+ ArpService->SnpMode.HwAddressSize) + 3) & ~(0x3));\r
}\r
\r
if (EntryCount != NULL) {\r