(C) Copyright 2014 Hewlett-Packard Development Company, L.P.<BR>\r
Copyright (c) 2009 - 2018, 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
- which accompanies this distribution. The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php.\r
-\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+ SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
\r
@param[in] OptTag The required option tag.\r
\r
@retval NULL Failed to parse the required option.\r
- @retval Others The postion of the required option in buffer.\r
+ @retval Others The position of the required option in buffer.\r
\r
**/\r
EFI_DHCP6_PACKET_OPTION *\r
return EFI_SUCCESS;\r
}\r
\r
-\r
-/**\r
- Free all the nodes in the list for boot file.\r
-\r
- @param[in] Head The pointer to the head of list.\r
-\r
-**/\r
-VOID\r
-PxeBcFreeBootFileOption (\r
- IN LIST_ENTRY *Head\r
- )\r
-{\r
- LIST_ENTRY *Entry;\r
- LIST_ENTRY *NextEntry;\r
- PXEBC_DHCP6_OPTION_NODE *Node;\r
-\r
- NET_LIST_FOR_EACH_SAFE (Entry, NextEntry, Head) {\r
- Node = NET_LIST_USER_STRUCT (Entry, PXEBC_DHCP6_OPTION_NODE, Link);\r
- RemoveEntryList (Entry);\r
- FreePool (Node);\r
- }\r
-}\r
-\r
/**\r
Retrieve the boot server address using the EFI_DNS6_PROTOCOL.\r
\r
\r
@retval EFI_ABORTED User cancel operation.\r
@retval EFI_SUCCESS Selected the boot menu successfully.\r
- @retval EFI_NOT_READY Read the input key from the keybroad has not finish.\r
+ @retval EFI_NOT_READY Read the input key from the keyboard has not finish.\r
\r
**/\r
EFI_STATUS\r
\r
//\r
// The offer with assigned client address is NOT a proxy offer.\r
- // An ia_na option, embeded with valid ia_addr option and a status_code of success.\r
+ // An ia_na option, embedded with valid ia_addr option and a status_code of success.\r
//\r
Option = Options[PXEBC_DHCP6_IDX_IA_NA];\r
if (Option != NULL) {\r
}\r
} else {\r
//\r
- // Othewise, the bootfilename must be included in DhcpOnly offer.\r
+ // Otherwise, the bootfilename must be included in DhcpOnly offer.\r
//\r
ASSERT (Cache6->OptList[PXEBC_DHCP6_IDX_BOOT_FILE_URL] != NULL);\r
}\r
\r
@retval EFI_SUCCESS Found a valid gateway address successfully.\r
@retval EFI_TIMEOUT The operation is time out.\r
- @retval Other Unexpect error happened.\r
+ @retval Other Unexpected error happened.\r
\r
**/\r
EFI_STATUS\r
@param[in] Private The pointer to PXEBC_PRIVATE_DATA.\r
@param[in] Address The pointer to the ready address.\r
\r
- @retval EFI_SUCCESS Registered the address succesfully.\r
+ @retval EFI_SUCCESS Registered the address successfully.\r
@retval Others Failed to register the address.\r
\r
**/\r
\r
@param[in] Private The pointer to PXEBC_PRIVATE_DATA.\r
\r
- @retval EFI_SUCCESS Switch the IP policy succesfully.\r
- @retval Others Unexpect error happened.\r
+ @retval EFI_SUCCESS Switch the IP policy successfully.\r
+ @retval Others Unexpected error happened.\r
\r
**/\r
EFI_STATUS\r
Callback = Private->PxeBcCallback;\r
\r
//\r
- // Callback to user when any traffic ocurred if has.\r
+ // Callback to user when any traffic occurred if has.\r
//\r
if (Dhcp6Event != Dhcp6SelectAdvertise && Callback != NULL) {\r
Received = (BOOLEAN) (Dhcp6Event == Dhcp6RcvdAdvertise || Dhcp6Event == Dhcp6RcvdReply);\r