]> git.proxmox.com Git - mirror_edk2.git/blobdiff - NetworkPkg/UefiPxeBcDxe/PxeBcDhcp6.c
NetworkPkg/UefiPxeBcDxe: Fix various typos
[mirror_edk2.git] / NetworkPkg / UefiPxeBcDxe / PxeBcDhcp6.c
index c06b0242bb44390111dd8eff9955833b0a521f9c..8d71143b79f3ea3d8663e93990f9ec567caa8aaf 100644 (file)
@@ -4,13 +4,7 @@
   (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
@@ -31,7 +25,7 @@ EFI_IPv6_ADDRESS   mAllDhcpRelayAndServersAddress = {{0xFF, 2, 0, 0, 0, 0, 0, 0,
   @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
@@ -202,29 +196,6 @@ PxeBcCacheDhcp6Packet (
   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
@@ -399,7 +370,7 @@ Exit:
 \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
@@ -703,7 +674,7 @@ PxeBcParseDhcp6Packet (
 \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
@@ -1460,7 +1431,7 @@ PxeBcHandleDhcp6Offer (
       }\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
@@ -1509,7 +1480,7 @@ PxeBcUnregisterIp6Address (
 \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
@@ -1623,7 +1594,7 @@ ON_EXIT:
   @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
@@ -1803,8 +1774,8 @@ ON_EXIT:
 \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
@@ -1944,7 +1915,7 @@ PxeBcDhcp6CallBack (
   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