Enable = EFI_SIMPLE_NETWORK_RECEIVE_BROADCAST;\r
\r
for (Index = 0; Index < Filter->IpCnt; ++Index) {\r
- PxebcMode->IpFilter.IpList[Index] = Filter->IpList[Index];\r
+ CopyMem (&PxebcMode->IpFilter.IpList[Index], &Filter->IpList[Index], sizeof (EFI_IP_ADDRESS));\r
\r
if (IS_MULTICAST (&Filter->IpList[Index])) {\r
EFI_IP_ADDRESS *TmpIp;\r
//\r
if (!Index2)\r
{\r
- TmpIp = (EFI_IP_ADDRESS *) &AllSystemsGroup;\r
+ TmpIp = (EFI_IP_ADDRESS *) &AllSystemsGroup;\r
--Index;\r
} else {\r
TmpIp = (EFI_IP_ADDRESS *) &Filter->IpList[Index];\r
goto RELEASE_LOCK;\r
}\r
\r
- PxebcMode->StationIp = *StationIpPtr;\r
- PxebcMode->SubnetMask = *SubnetMaskPtr;\r
+ CopyMem (&PxebcMode->StationIp, StationIpPtr, sizeof (EFI_IP_ADDRESS));\r
+ CopyMem (&PxebcMode->SubnetMask, SubnetMaskPtr, sizeof (EFI_IP_ADDRESS));\r
Private->GoodStationIp = TRUE;\r
\r
RELEASE_LOCK:\r
);\r
\r
if (EFI_ERROR (Status)) {\r
- Status = gBS->OpenProtocol (\r
- Controller,\r
- &gEfiNetworkInterfaceIdentifierProtocolGuid,\r
- (VOID **) &Private->NiiPtr,\r
- This->DriverBindingHandle,\r
- Controller,\r
- EFI_OPEN_PROTOCOL_GET_PROTOCOL\r
- );\r
-\r
- if (EFI_ERROR (Status)) {\r
- goto PxeBcError;\r
- }\r
+ goto PxeBcError;\r
}\r
+ \r
//\r
// Get the Snp interface\r
//\r
//\r
// Initialize EFI library\r
//\r
- Status = EfiLibInstallAllDriverProtocols (\r
- ImageHandle,\r
- SystemTable,\r
- &mPxeBcDriverBinding,\r
- NULL,\r
- COMPONENT_NAME,\r
- NULL,\r
- NULL\r
- );\r
+ Status = EfiLibInstallDriverBindingComponentName2 (\r
+ ImageHandle,\r
+ SystemTable,\r
+ &mPxeBcDriverBinding,\r
+ NULL,\r
+ &gPxeBcComponentName,\r
+ &gPxeBcComponentName2\r
+ );\r
\r
InitArpHeader ();\r
OptionsStrucInit ();\r