return TRUE;\r
}\r
\r
-static VOID *BCNotifyReg;\r
-\r
-\r
/**\r
Start and initialize the BaseCode protocol, Simple Network protocol and UNDI.\r
\r
return StatCode;\r
}\r
\r
-const IPV4_ADDR AllSystemsGroup = { 224, 0, 0, 1 };\r
+const IPV4_ADDR AllSystemsGroup = {{224, 0, 0, 1}};\r
\r
\r
/**\r
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
// 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