/** @file\r
Functions implementation related with DHCPv4 for UefiPxeBc Driver.\r
\r
- Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.<BR>\r
\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
Index++;\r
OptList[Index] = GET_NEXT_DHCP_OPTION (OptList[Index - 1]);\r
\r
- if (EFI_ERROR (PxeBcGetSystemGuid ((EFI_GUID *) OptEnt.Uuid->Guid))) {\r
+ if (EFI_ERROR (NetLibGetSystemGuid ((EFI_GUID *) OptEnt.Uuid->Guid))) {\r
//\r
// Zero the Guid to indicate NOT programable if failed to get system Guid.\r
//\r
\r
@retval EFI_SUCCESS Handled the DHCPv4 offer packet successfully.\r
@retval EFI_NO_RESPONSE No response to the following request packet.\r
+ @retval EFI_NOT_FOUND No boot filename received.\r
\r
**/\r
EFI_STATUS\r
//\r
// Othewise, the bootfile name must be included in DhcpOnly offer.\r
//\r
- ASSERT (Options[PXEBC_DHCP4_TAG_INDEX_BOOTFILE] != NULL);\r
+ if (Options[PXEBC_DHCP4_TAG_INDEX_BOOTFILE] == NULL) {\r
+ Status = EFI_NOT_FOUND;\r
+ }\r
}\r
}\r
\r
//\r
// Send the system Guid instead of the MAC address as the hardware address if required.\r
//\r
- if (EFI_ERROR (PxeBcGetSystemGuid ((EFI_GUID *) Packet->Dhcp4.Header.ClientHwAddr))) {\r
+ if (EFI_ERROR (NetLibGetSystemGuid ((EFI_GUID *) Packet->Dhcp4.Header.ClientHwAddr))) {\r
//\r
// Zero the Guid to indicate NOT programable if failed to get system Guid.\r
//\r
}\r
\r
if (Mode->SendGUID) {\r
- if (EFI_ERROR (PxeBcGetSystemGuid ((EFI_GUID *) Token.Packet->Dhcp4.Header.ClientHwAddr))) {\r
+ if (EFI_ERROR (NetLibGetSystemGuid ((EFI_GUID *) Token.Packet->Dhcp4.Header.ClientHwAddr))) {\r
//\r
// Zero the Guid to indicate NOT programable if failed to get system Guid.\r
//\r
break;\r
}\r
if ((SrvList[SrvIndex].Type == Type) &&\r
- EFI_IP4_EQUAL (&Response->Dhcp4.Header.ServerAddr, &Private->ServerIp)) {\r
+ EFI_IP4_EQUAL (&Response->Dhcp4.Header.ServerAddr, &SrvList[SrvIndex].IpAddr)) {\r
break;\r
}\r
SrvIndex++;\r
AsciiPrint ("\n Station IP address is ");\r
\r
PxeBcShowIp4Addr (&Private->StationIp.v4);\r
+ AsciiPrint ("\n");\r
\r
ON_EXIT:\r
if (EFI_ERROR (Status)) {\r