Signed-off-by: hhuan13
Reviewed-by: xdu2
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12192
6f19259b-4bc3-4df7-8a09-
765794883524
AsciiPrint ("\n PXE-E22: Client received ICMP error from server.\n");\r
} else if (Status == EFI_TFTP_ERROR) {\r
AsciiPrint ("\n PXE-E23: Client received TFTP error from server.\n");\r
AsciiPrint ("\n PXE-E22: Client received ICMP error from server.\n");\r
} else if (Status == EFI_TFTP_ERROR) {\r
AsciiPrint ("\n PXE-E23: Client received TFTP error from server.\n");\r
+ } else if (Status == EFI_NOT_FOUND) {\r
+ AsciiPrint ("\n PXE-E53: No boot filename received.\n");\r
} else if (Status != EFI_BUFFER_TOO_SMALL) {\r
AsciiPrint ("\n PXE-E99: Unexpected network error.\n");\r
}\r
} else if (Status != EFI_BUFFER_TOO_SMALL) {\r
AsciiPrint ("\n PXE-E99: Unexpected network error.\n");\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
\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
// Othewise, the bootfile name must be included in DhcpOnly offer.\r
//\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
Mode->IcmpErrorReceived = FALSE;\r
Private->Function = EFI_PXE_BASE_CODE_FUNCTION_DHCP;\r
Private->IsOfferSorted = SortOffers;\r
Mode->IcmpErrorReceived = FALSE;\r
Private->Function = EFI_PXE_BASE_CODE_FUNCTION_DHCP;\r
Private->IsOfferSorted = SortOffers;\r
+ Private->SolicitTimes = 0;\r
+ Private->ElapsedTime = 0;\r
\r
if (!Mode->Started) {\r
return EFI_NOT_STARTED;\r
\r
if (!Mode->Started) {\r
return EFI_NOT_STARTED;\r