]> git.proxmox.com Git - mirror_edk2.git/commitdiff
NetworkPkg/Ip6Dxe: Fix various typos
authorAntoine Coeur <coeur@gmx.fr>
Fri, 7 Feb 2020 01:07:53 +0000 (02:07 +0100)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 10 Feb 2020 22:30:07 +0000 (22:30 +0000)
Fix various typos in comments and documentation.

Cc: Jiaxin Wu <jiaxin.wu@intel.com>
Cc: Siyuan Fu <siyuan.fu@intel.com>
Cc: Maciej Rabeda <maciej.rabeda@intel.com>
Signed-off-by: Antoine Coeur <coeur@gmx.fr>
Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
Reviewed-by: Maciej Rabeda <maciej.rabeda@intel.com>
Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
Message-Id: <20200207010831.9046-41-philmd@redhat.com>

20 files changed:
NetworkPkg/Ip6Dxe/Ip6Common.c
NetworkPkg/Ip6Dxe/Ip6ConfigImpl.c
NetworkPkg/Ip6Dxe/Ip6ConfigImpl.h
NetworkPkg/Ip6Dxe/Ip6ConfigNv.c
NetworkPkg/Ip6Dxe/Ip6Driver.c
NetworkPkg/Ip6Dxe/Ip6Driver.h
NetworkPkg/Ip6Dxe/Ip6Icmp.c
NetworkPkg/Ip6Dxe/Ip6If.c
NetworkPkg/Ip6Dxe/Ip6If.h
NetworkPkg/Ip6Dxe/Ip6Impl.c
NetworkPkg/Ip6Dxe/Ip6Impl.h
NetworkPkg/Ip6Dxe/Ip6Input.c
NetworkPkg/Ip6Dxe/Ip6Input.h
NetworkPkg/Ip6Dxe/Ip6Mld.c
NetworkPkg/Ip6Dxe/Ip6Mld.h
NetworkPkg/Ip6Dxe/Ip6Nd.c
NetworkPkg/Ip6Dxe/Ip6Nd.h
NetworkPkg/Ip6Dxe/Ip6Output.c
NetworkPkg/Ip6Dxe/Ip6Route.c
NetworkPkg/Ip6Dxe/Ip6Route.h

index 4ae04f258ffc747d4827824a9186aaea7d8d05d9..840fff0e72e5c25f3173100c43a063a9e413a0f7 100644 (file)
@@ -214,7 +214,7 @@ Ip6CreateLinkLocalAddr (
   }\r
 \r
   //\r
-  // Get the interface id if it is manully configured.\r
+  // Get the interface id if it is manually configured.\r
   //\r
   Ip6Config = &IpSb->Ip6ConfigInstance.Ip6Config;\r
   DataSize  = sizeof (EFI_IP6_CONFIG_INTERFACE_ID);\r
index 6efed37a4d040ea40755d3573b070605cf5a29da..eb2a80b64f1502df7e28eae4b3144afbffa58596 100644 (file)
@@ -101,7 +101,7 @@ Ip6ConfigOnPolicyChanged (
     }\r
 \r
     //\r
-    // All IPv6 children that use global unicast address as it's source address\r
+    // All IPv6 children that use global unicast address as its source address\r
     // should be destroyed now. The survivers are those use the link-local address\r
     // or the unspecified address as the source address.\r
     // TODO: Conduct a check here.\r
@@ -335,7 +335,7 @@ Ip6ConfigSignalEvent (
 /**\r
   Read the configuration data from variable storage according to the VarName and\r
   gEfiIp6ConfigProtocolGuid. It checks the integrity of variable data. If the\r
-  data is corrupted, it clears the variable data to ZERO. Othewise, it outputs the\r
+  data is corrupted, it clears the variable data to ZERO. Otherwise, it outputs the\r
   configuration data to IP6_CONFIG_INSTANCE.\r
 \r
   @param[in]      VarName  The pointer to the variable name\r
@@ -612,7 +612,7 @@ Ip6ConfigGetIfInfo (
 }\r
 \r
 /**\r
-  The work function for EfiIp6ConfigSetData() to set the alternative inteface ID\r
+  The work function for EfiIp6ConfigSetData() to set the alternative interface ID\r
   for the communication device managed by this IP6Config instance, if the link local\r
   IPv6 addresses generated from the interface ID based on the default source the\r
   EFI IPv6 Protocol uses is a duplicate address.\r
@@ -915,7 +915,7 @@ Ip6ManualAddrDadCallback (
                                 under the current policy.\r
   @retval EFI_INVALID_PARAMETER One or more fields in Data is invalid.\r
   @retval EFI_OUT_OF_RESOURCES  Fail to allocate resource to complete the operation.\r
-  @retval EFI_NOT_READY         An asynchrous process is invoked to set the specified\r
+  @retval EFI_NOT_READY         An asynchronous process is invoked to set the specified\r
                                 configuration data, and the process is not finished.\r
   @retval EFI_ABORTED           The manual addresses to be set equal current\r
                                 configuration.\r
@@ -2034,7 +2034,7 @@ EfiIp6ConfigSetData (
     }\r
   } else {\r
     //\r
-    // Another asynchornous process is on the way.\r
+    // Another asynchronous process is on the way.\r
     //\r
     Status = EFI_ACCESS_DENIED;\r
   }\r
index bfe3bbe5387557e3e688c21f0eb5674d37daadd4..1c2eede2ab21ad052a4af51470cdb57e5db62c20 100644 (file)
@@ -1,5 +1,5 @@
 /** @file\r
-  Definitions for EFI IPv6 Configuartion Protocol implementation.\r
+  Definitions for EFI IPv6 Configuration Protocol implementation.\r
 \r
   Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
 \r
@@ -210,7 +210,7 @@ struct _IP6_CONFIG_INSTANCE {
 /**\r
   Read the configuration data from variable storage according to the VarName and\r
   gEfiIp6ConfigProtocolGuid. It checks the integrity of variable data. If the\r
-  data is corrupted, it clears the variable data to ZERO. Othewise, it outputs the\r
+  data is corrupted, it clears the variable data to ZERO. Otherwise, it outputs the\r
   configuration data to IP6_CONFIG_INSTANCE.\r
 \r
   @param[in]      VarName  The pointer to the variable name\r
index aac665d3d427a8967e9a166648052bfba2d4943c..a0727d2666e9121e9abfa75e449d4718c693c5f4 100644 (file)
@@ -407,7 +407,7 @@ Exit:
 \r
 /**\r
   This function converts the different format of address list to string format and\r
-  then generates the corresponding text opcode to illustarate the address info in\r
+  then generates the corresponding text opcode to illustrate the address info in\r
   IP6 configuration page. Currently, the following formats are supported:\r
   EFI_IP6_ADDRESS_INFO AddressType: Ip6ConfigNvHostAddress;\r
   EFI_IPv6_ADDRESS     AddressType: Ip6ConfigNvGatewayAddress and Ip6ConfigNvDnsAddress;\r
@@ -1470,7 +1470,7 @@ Exit:
   @param[out] Progress       A pointer to a string filled in with the\r
                              offset of the most recent '&' before the\r
                              first failing name / value pair (or the\r
-                             beginn ing of the string if the failure\r
+                             beginning of the string if the failure\r
                              is in the first name / value pair) or\r
                              the terminating NULL if all was\r
                              successful.\r
@@ -1622,7 +1622,7 @@ Ip6GetCurrentSetting (
   }\r
 \r
   //\r
-  // Get gateway adderss list.\r
+  // Get gateway address list.\r
   //\r
   if (Data != NULL) {\r
     FreePool (Data);\r
index 63d8428dbced0daa9f9dde91f98e4ba6e86a2ee4..7c13d6a3d4cc9d1b1fc2041180e7a62e3dbc88c7 100644 (file)
@@ -498,7 +498,7 @@ ON_ERROR:
   @param[in]  RemainingDevicePath Optional parameter used to pick a specific child\r
                                   device to start.\r
 \r
-  @retval EFI_SUCCES              This driver is added to ControllerHandle.\r
+  @retval EFI_SUCCESS             This driver is added to ControllerHandle.\r
   @retval EFI_ALREADY_STARTED     This driver is already running on ControllerHandle.\r
   @retval other                   This driver does not support this device.\r
 \r
@@ -547,7 +547,7 @@ Ip6DriverBindingStart (
   Ip6Cfg  = &IpSb->Ip6ConfigInstance.Ip6Config;\r
 \r
   //\r
-  // Install the Ip6ServiceBinding Protocol onto ControlerHandle\r
+  // Install the Ip6ServiceBinding Protocol onto ControllerHandle\r
   //\r
   Status = gBS->InstallMultipleProtocolInterfaces (\r
                   &ControllerHandle,\r
@@ -823,7 +823,7 @@ Exit:
                                  is not NULL, then the I/O services are added to\r
                                  the existing child handle.\r
 \r
-  @retval EFI_SUCCES             The child handle was created with the I/O services.\r
+  @retval EFI_SUCCESS            The child handle was created with the I/O services.\r
   @retval EFI_OUT_OF_RESOURCES   There are not enough resources available to create\r
                                  the child.\r
   @retval other                  The child handle was not created.\r
@@ -925,7 +925,7 @@ ON_ERROR:
   @param[in]  This               Protocol instance pointer.\r
   @param[in]  ChildHandle        Handle of the child to destroy.\r
 \r
-  @retval EFI_SUCCES             The I/O services were removed from the child\r
+  @retval EFI_SUCCESS            The I/O services were removed from the child\r
                                  handle.\r
   @retval EFI_UNSUPPORTED        The child handle does not support the I/O services\r
                                   that are being removed.\r
@@ -1005,14 +1005,14 @@ Ip6ServiceBindingDestroyChild (
   // Uninstall the IP6 protocol first. Many thing happens during\r
   // this:\r
   // 1. The consumer of the IP6 protocol will be stopped if it\r
-  // opens the protocol BY_DRIVER. For eaxmple, if MNP driver is\r
+  // opens the protocol BY_DRIVER. For example, if MNP driver is\r
   // stopped, IP driver's stop function will be called, and uninstall\r
   // EFI_IP6_PROTOCOL will trigger the UDP's stop function. This\r
   // makes it possible to create the network stack bottom up, and\r
   // stop it top down.\r
   // 2. the upper layer will recycle the received packet. The recycle\r
   // event's TPL is higher than this function. The recycle events\r
-  // will be called back before preceeding. If any packets not recycled,\r
+  // will be called back before preceding. If any packets not recycled,\r
   // that means there is a resource leak.\r
   //\r
   gBS->RestoreTPL (OldTpl);\r
index b048dafdccc51065ba9f01097561460d6cd60e47..007f687c6e25be8890ea9d032e686542f8159b02 100644 (file)
@@ -66,7 +66,7 @@ Ip6DriverEntryPoint (
   );\r
 \r
 //\r
-// Function prototypes for the Drivr Binding Protocol\r
+// Function prototypes for the Driver Binding Protocol\r
 //\r
 \r
 /**\r
@@ -98,7 +98,7 @@ Ip6DriverBindingSupported (
   @param[in]  RemainingDevicePath Optional parameter used to pick a specific child\r
                                   device to start.\r
 \r
-  @retval EFI_SUCCES              This driver is added to ControllerHandle.\r
+  @retval EFI_SUCCESS             This driver is added to ControllerHandle.\r
   @retval EFI_ALREADY_STARTED     This driver is already running on ControllerHandle.\r
   @retval other                   This driver does not support this device.\r
 \r
@@ -147,7 +147,7 @@ Ip6DriverBindingStop (
                                  is not NULL, then the I/O services are added to\r
                                  the existing child handle.\r
 \r
-  @retval EFI_SUCCES             The child handle was created with the I/O services.\r
+  @retval EFI_SUCCESS            The child handle was created with the I/O services.\r
   @retval EFI_OUT_OF_RESOURCES   There are not enough resources available to create\r
                                  the child.\r
   @retval other                  The child handle was not created.\r
@@ -166,7 +166,7 @@ Ip6ServiceBindingCreateChild (
   @param[in]  This               Protocol instance pointer.\r
   @param[in]  ChildHandle        Handle of the child to destroy.\r
 \r
-  @retval EFI_SUCCES             The I/O services were removed from the child\r
+  @retval EFI_SUCCESS            The I/O services were removed from the child\r
                                  handle.\r
   @retval EFI_UNSUPPORTED        The child handle does not support the I/O services\r
                                   that are being removed.\r
index bf9b17d907ef1521bc592aa219dd42925943418f..d43121e4cb9ee2df5fcc0d7d8fead1ad93fc22ad 100644 (file)
@@ -300,7 +300,7 @@ Ip6ProcessIcmpError (
   }\r
 \r
   //\r
-  // Notify the upper-layer process that an ICMPv6 eror message is received.\r
+  // Notify the upper-layer process that an ICMPv6 error message is received.\r
   //\r
   IP6_GET_CLIP_INFO (Packet)->Status = EFI_ICMP_ERROR;\r
   return Ip6Demultiplex (IpSb, Head, Packet);\r
index 956c05c396aac5bb3b57c6b5f97d163d061c22bf..5b469710572cd9f3a24262f2c1ba655805b1fab6 100644 (file)
@@ -1,5 +1,5 @@
 /** @file\r
-  Implement IP6 pesudo interface.\r
+  Implement IP6 pseudo interface.\r
 \r
   Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
 \r
@@ -160,7 +160,7 @@ Ip6SetAddress (
 \r
 \r
   //\r
-  // Node should delay joining the solicited-node mulitcast address by a random delay\r
+  // Node should delay joining the solicited-node multicast address by a random delay\r
   // between 0 and MAX_RTR_SOLICITATION_DELAY (1 second).\r
   // Thus queue the address to be processed in Duplicate Address Detection module\r
   // after the delay time (in milliseconds).\r
@@ -497,7 +497,7 @@ Ip6OnFrameReceivedDpc (
   }\r
 \r
   //\r
-  // Wrap the frame in a net buffer then deliever it to IP input.\r
+  // Wrap the frame in a net buffer then deliver it to IP input.\r
   // IP will reassemble the packet, and deliver it to upper layer\r
   //\r
   Netfrag.Len  = MnpRxData->DataLength;\r
@@ -548,7 +548,7 @@ Ip6OnFrameReceived (
 \r
   @retval EFI_ALREADY_STARTED   There is already a pending receive request.\r
   @retval EFI_OUT_OF_RESOURCES  Failed to allocate resource to receive.\r
-  @retval EFI_SUCCESS           The recieve request has been started.\r
+  @retval EFI_SUCCESS           The receive request has been started.\r
 \r
 **/\r
 EFI_STATUS\r
@@ -575,7 +575,7 @@ Ip6ReceiveFrame (
 }\r
 \r
 /**\r
-  Callback funtion when frame transmission is finished. It will\r
+  Callback function when frame transmission is finished. It will\r
   call the frame owner's callback function to tell it the result.\r
 \r
   @param[in]  Context        Context which points to the token.\r
index a8af4322eb93d9ebb920086035999616662bcf7d..ab43d8ea592a5cadd2807130338c55d3e7cb5c65 100644 (file)
@@ -1,5 +1,5 @@
 /** @file\r
-  Definition for IP6 pesudo interface structure.\r
+  Definition for IP6 pseudo interface structure.\r
 \r
   Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>\r
 \r
@@ -203,7 +203,7 @@ Ip6OnFrameReceived (
 \r
   @retval EFI_ALREADY_STARTED   There is already a pending receive request.\r
   @retval EFI_OUT_OF_RESOURCES  Failed to allocate resources to receive.\r
-  @retval EFI_SUCCESS           The recieve request has been started.\r
+  @retval EFI_SUCCESS           The receive request has been started.\r
 \r
 **/\r
 EFI_STATUS\r
index 80862bfe9d09c961e92087a28c0eed9d87772032..826a5c252f1ade7ade948a108abf109eadd719e0 100644 (file)
@@ -288,7 +288,7 @@ Ip6IsIllegalProtocol (
 }\r
 \r
 /**\r
-  Intiialize the IP6_PROTOCOL structure to the unconfigured states.\r
+  Initialize the IP6_PROTOCOL structure to the unconfigured states.\r
 \r
   @param[in]       IpSb                   The IP6 service instance.\r
   @param[in, out]  IpInstance             The IP6 child instance.\r
@@ -604,7 +604,7 @@ Ip6ServiceConfigMnp (
   @retval EFI_DEVICE_ERROR       An unexpected system or network error occurred. The EFI IPv6\r
                                  Protocol driver instance was not opened.\r
   @retval EFI_UNSUPPORTED        Default protocol specified through\r
-                                 Ip6ConfigData.DefaulProtocol isn't supported.\r
+                                 Ip6ConfigData.DefaultProtocol isn't supported.\r
 \r
 **/\r
 EFI_STATUS\r
@@ -787,7 +787,7 @@ ON_EXIT:
   the destination IPv6 address arithmetically. The gateway address must be on the same subnet as the\r
   configured station address.\r
 \r
-  The default route is added with Destination and PrefixLegth both set to all zeros. The\r
+  The default route is added with Destination and PrefixLength both set to all zeros. The\r
   default route matches all destination IPv6 addresses that do not match any other routes.\r
 \r
   All EFI IPv6 Protocol instances share a routing table.\r
@@ -1001,7 +1001,7 @@ Exit:
   @param[in]  Map                The container of either user's transmit or receive\r
                                  token.\r
   @param[in]  Item               Current item to check against.\r
-  @param[in]  Context            The Token to check againist.\r
+  @param[in]  Context            The Token to check against.\r
 \r
   @retval EFI_ACCESS_DENIED      The token or event has already been enqueued in IP\r
   @retval EFI_SUCCESS            The current item isn't the same token/event as the\r
@@ -1449,7 +1449,7 @@ Exit:
   is signaled.\r
 \r
   Current Udp implementation creates an IP child for each Udp child.\r
-  It initates a asynchronous receive immediately no matter whether\r
+  It initiates a asynchronous receive immediately no matter whether\r
   there is no mapping or not. Therefore, disable the returning EFI_NO_MAPPING for now.\r
   To enable it, the following check must be performed:\r
 \r
index d46ee600d5cc2fe6ffacbf96810dbace3b1bde5f..8919e9448900f89789434447a6bdec8266655c17 100644 (file)
@@ -139,7 +139,7 @@ struct _IP6_PROTOCOL {
 \r
   UINT8                     PrefixLength; // PrefixLength of the configured station address.\r
   //\r
-  // User's transmit/receive tokens, and received/deliverd packets\r
+  // User's transmit/receive tokens, and received/delivered packets\r
   //\r
   NET_MAP                   RxTokens;\r
   NET_MAP                   TxTokens;   // map between (User's Token, IP6_TXTOKE_WRAP)\r
@@ -412,7 +412,7 @@ EfiIp6GetModeData (
   @retval EFI_DEVICE_ERROR       An unexpected system or network error occurred. The EFI IPv6\r
                                  Protocol driver instance was not opened.\r
   @retval EFI_UNSUPPORTED        Default protocol specified through\r
-                                 Ip6ConfigData.DefaulProtocol isn't supported.\r
+                                 Ip6ConfigData.DefaultProtocol isn't supported.\r
 \r
 **/\r
 EFI_STATUS\r
@@ -470,7 +470,7 @@ EfiIp6Groups (
   the destination IPv6 address arithmetically. The gateway address must be on the same subnet as the\r
   configured station address.\r
 \r
-  The default route is added with Destination and PrefixLegth both set to all zeros. The\r
+  The default route is added with Destination and PrefixLength both set to all zeros. The\r
   default route matches all destination IPv6 addresses that do not match any other routes.\r
 \r
   All EFI IPv6 Protocol instances share a routing table.\r
@@ -642,7 +642,7 @@ EfiIp6Transmit (
   is signaled.\r
 \r
   Current Udp implementation creates an IP child for each Udp child.\r
-  It initates a asynchronous receive immediately whether or not\r
+  It initiates a asynchronous receive immediately whether or not\r
   there is no mapping. Therefore, disable the returning EFI_NO_MAPPING for now.\r
   To enable it, the following check must be performed:\r
 \r
index 57a52326e1bf89fba4d2ab7edfa02060f4875108..c42baa35b6b6641f281ddbd6f36bea6b316a005f 100644 (file)
@@ -319,7 +319,7 @@ Ip6Reassemble (
     }\r
 \r
     //\r
-    // Backup the first fragment in case the reasembly of that packet fail.\r
+    // Backup the first fragment in case the reassembly of that packet fail.\r
     //\r
     Duplicate = NetbufDuplicate (Packet, NULL, sizeof (EFI_IP6_HEADER));\r
     if (Duplicate == NULL) {\r
@@ -371,7 +371,7 @@ Ip6Reassemble (
   //\r
   // Deliver the whole packet if all the fragments received.\r
   // All fragments received if:\r
-  //  1. received the last one, so, the totoal length is know\r
+  //  1. received the last one, so, the total length is known\r
   //  2. received all the data. If the last fragment on the\r
   //     queue ends at the total length, all data is received.\r
   //\r
@@ -380,7 +380,7 @@ Ip6Reassemble (
     RemoveEntryList (&Assemble->Link);\r
 \r
     //\r
-    // If the packet is properly formated, the last fragment's End\r
+    // If the packet is properly formatted, the last fragment's End\r
     // equals to the packet's total length. Otherwise, the packet\r
     // is a fake, drop it now.\r
     //\r
@@ -396,7 +396,7 @@ Ip6Reassemble (
     //\r
     // This TmpPacket is used to hold the unfragmentable part, i.e.,\r
     // the IPv6 header and the unfragmentable extension headers. Be noted that\r
-    // the Fragment Header is exluded.\r
+    // the Fragment Header is excluded.\r
     //\r
     TmpPacket = NetbufGetFragment (Fragment, 0, This->HeadLen, 0);\r
     ASSERT (TmpPacket != NULL);\r
@@ -489,7 +489,7 @@ Ip6IpSecFree (
   @retval EFI_SUCCESS            The packet was bypassed, and all buffers remain the same.\r
   @retval EFI_SUCCESS            The packet was protected.\r
   @retval EFI_ACCESS_DENIED      The packet was discarded.\r
-  @retval EFI_OUT_OF_RESOURCES   There are not suffcient resources to complete the operation.\r
+  @retval EFI_OUT_OF_RESOURCES   There are not sufficient resources to complete the operation.\r
   @retval EFI_BUFFER_TOO_SMALL   The number of non-empty blocks is bigger than the\r
                                  number of input data blocks when building a fragment table.\r
 \r
@@ -718,7 +718,7 @@ ON_EXIT:
   @param[in, out] Packet        The received IP6 packet to be processed.\r
   @param[in]      Flag          The link layer flag for the packet received, such\r
                                 as multicast.\r
-  @param[out]     Payload       The pointer to the payload of the recieved packet.\r
+  @param[out]     Payload       The pointer to the payload of the received packet.\r
                                 it starts from the first byte of the extension header.\r
   @param[out]     LastHead      The pointer of NextHeader of the last extension\r
                                 header processed by IP6.\r
@@ -1070,7 +1070,7 @@ Ip6AcceptFrame (
 \r
   //\r
   // Packet may have been changed. The ownership of the packet\r
-  // is transfered to the packet process logic.\r
+  // is transferred to the packet process logic.\r
   //\r
   Head  = Packet->Ip.Ip6;\r
   IP6_GET_CLIP_INFO (Packet)->Status = EFI_SUCCESS;\r
@@ -1283,7 +1283,7 @@ Ip6InstanceFrameAcceptable (
   Proto  = NULL;\r
 \r
   //\r
-  // Dirty trick for the Tiano UEFI network stack implmentation. If\r
+  // Dirty trick for the Tiano UEFI network stack implementation. If\r
   // ReceiveTimeout == -1, the receive of the packet for this instance\r
   // is disabled. The UEFI spec don't have such captibility. We add\r
   // this to improve the performance because IP will make a copy of\r
@@ -1428,7 +1428,7 @@ Ip6InstanceEnquePacket (
   }\r
 \r
   //\r
-  // Enque a shared copy of the packet.\r
+  // Enqueue a shared copy of the packet.\r
   //\r
   Clone = NetbufClone (Packet);\r
 \r
@@ -1661,7 +1661,7 @@ Ip6Demultiplex (
   INTN                      Enqueued;\r
 \r
   //\r
-  // Two pass delivery: first, enque a shared copy of the packet\r
+  // Two pass delivery: first, enqueue a shared copy of the packet\r
   // to each instance that accept the packet.\r
   //\r
   Enqueued = 0;\r
index 66ddf35ea4a640c3c348a42d8415b11622b3cca6..76a4edb54c3cc67f7144c11863f37e9ce8482927 100644 (file)
@@ -149,7 +149,7 @@ Ip6InstanceDeliverPacket (
   @retval EFI_SUCCESS            The packet was bypassed, and all buffers remain the same.\r
   @retval EFI_SUCCESS            The packet was protected.\r
   @retval EFI_ACCESS_DENIED      The packet was discarded.\r
-  @retval EFI_OUT_OF_RESOURCES   There are not suffcient resources to complete the operation.\r
+  @retval EFI_OUT_OF_RESOURCES   There are not sufficient resources to complete the operation.\r
   @retval EFI_BUFFER_TOO_SMALL   The number of non-empty blocks is bigger than the\r
                                  number of input data blocks when building a fragment table.\r
 \r
@@ -192,11 +192,11 @@ Ip6CleanAssembleTable (
 \r
 /**\r
   Demultiple the packet. the packet delivery is processed in two\r
-  passes. The first pass will enque a shared copy of the packet\r
+  passes. The first pass will enqueue a shared copy of the packet\r
   to each IP6 child that accepts the packet. The second pass will\r
   deliver a non-shared copy of the packet to each IP6 child that\r
   has pending receive requests. Data is copied if more than one\r
-  child wants to consume the packet bacause each IP child need\r
+  child wants to consume the packet because each IP child need\r
   its own copy of the packet to make changes.\r
 \r
   @param[in]  IpSb          The IP6 service instance that received the packet.\r
index b7a882b25975d06b1deec38e6767707f34e12168..ba12089dee25f4750a9f13ff56ae355b25fc952e 100644 (file)
@@ -383,7 +383,7 @@ ERROR:
 \r
   @retval EFI_OUT_OF_RESOURCES      There are not sufficient resources to complete\r
                                     the operation.\r
-  @retval EFI_SUCESS                The address is added to the group address array.\r
+  @retval EFI_SUCCESS               The address is added to the group address array.\r
 \r
 **/\r
 EFI_STATUS\r
@@ -496,8 +496,8 @@ Ip6JoinGroup (
   }\r
 \r
   //\r
-  // Repeat the report once or twcie after short delays [Unsolicited Report Interval] (default:10s)\r
-  // Simulate this operation as a Multicast-Address-Specific Query was received for that addresss.\r
+  // Repeat the report once or twice after short delays [Unsolicited Report Interval] (default:10s)\r
+  // Simulate this operation as a Multicast-Address-Specific Query was received for that address.\r
   //\r
   Group = Ip6CreateMldEntry (IpSb, Address, IP6_UNSOLICITED_REPORT_INTERVAL);\r
   if (Group == NULL) {\r
@@ -604,7 +604,7 @@ Ip6LeaveGroup (
 \r
   @retval EFI_ALREADY_STARTED   Wants to join the group, but is already a member of it\r
   @retval EFI_OUT_OF_RESOURCES  Failed to allocate sufficient resources.\r
-  @retval EFI_DEVICE_ERROR      Failed to set the group configuraton.\r
+  @retval EFI_DEVICE_ERROR      Failed to set the group configuration.\r
   @retval EFI_SUCCESS           Successfully updated the group setting.\r
   @retval EFI_NOT_FOUND         Try to leave the group which it isn't a member.\r
 \r
index d907a15c6e6556c8c67d50f5f0ea8806cf5ed9c9..89dd6c21fb64fe97fd44958ddedc2699b081388b 100644 (file)
@@ -124,7 +124,7 @@ Ip6LeaveGroup (
 \r
   @retval EFI_ALREADY_STARTED   Wants to join the group, but is already a member of it.\r
   @retval EFI_OUT_OF_RESOURCES  Failed to allocate some resources.\r
-  @retval EFI_DEVICE_ERROR      Failed to set the group configuraton.\r
+  @retval EFI_DEVICE_ERROR      Failed to set the group configuration.\r
   @retval EFI_SUCCESS           Successfully updated the group setting.\r
   @retval EFI_NOT_FOUND         Tried to leave a group of whom it isn't a member.\r
 \r
index 67d7022a7673c15ca8bb5bc840e204fb2a589bfc..4288ef02dd46df6d1be7f79fd1197b87f91d97b9 100644 (file)
@@ -1645,7 +1645,7 @@ Ip6ProcessNeighborSolicit (
   //\r
   // Sends a Neighbor Advertisement as response.\r
   // Set the Router flag to zero since the node is a host.\r
-  // If the source address of the solicitation is unspeicifed, and target address\r
+  // If the source address of the solicitation is unspecified, and target address\r
   // is one of the maintained address, reply a unsolicited multicast advertisement.\r
   //\r
   if (IsDAD && IsMaintained) {\r
@@ -2087,7 +2087,7 @@ Ip6ProcessRouterAdvertise (
   }\r
 \r
   //\r
-  // If an valid router advertisment is received, stops router solicitation.\r
+  // If an valid router advertisement is received, stops router solicitation.\r
   //\r
   IpSb->RouterAdvertiseReceived = TRUE;\r
 \r
@@ -2251,7 +2251,7 @@ Ip6ProcessRouterAdvertise (
           //\r
           if (!Ip6IsOneOfSetAddress (IpSb, &StatelessAddress, NULL, NULL)) {\r
             //\r
-            // And also not in the DAD process, check its uniqeness firstly.\r
+            // And also not in the DAD process, check its uniqueness firstly.\r
             //\r
             if (Ip6FindDADEntry (IpSb, &StatelessAddress, NULL) == NULL) {\r
               Status = Ip6SetAddress (\r
@@ -2303,7 +2303,7 @@ Ip6ProcessRouterAdvertise (
 \r
           } else if (PrefixList->ValidLifetime <= 7200) {\r
             //\r
-            // If RemainingLifetime is less than or equls to 2 hours, ignore the\r
+            // If RemainingLifetime is less than or equals to 2 hours, ignore the\r
             // Prefix Information option with regards to the valid lifetime.\r
             // TODO: If this option has been authenticated, set the valid lifetime.\r
             //\r
@@ -2365,7 +2365,7 @@ Exit:
                                  the IP head removed.\r
 \r
   @retval EFI_INVALID_PARAMETER  The parameter is invalid.\r
-  @retval EFI_OUT_OF_RESOURCES   Insuffcient resources to complete the\r
+  @retval EFI_OUT_OF_RESOURCES   Insufficient resources to complete the\r
                                  operation.\r
   @retval EFI_SUCCESS            Successfully updated the route caches.\r
 \r
@@ -3069,7 +3069,7 @@ Ip6NdFasterTimerTicking (
 \r
 /**\r
   The heartbeat timer of ND module in 1 second. This time routine handles following\r
-  things: 1) maitain default router list; 2) maintain prefix options;\r
+  things: 1) maintain default router list; 2) maintain prefix options;\r
   3) maintain route caches.\r
 \r
   @param[in]  IpSb              The IP6 service binding instance.\r
index 891a32d7d3cac9dc3d98fb84b0fac7c9ebe1c08b..560dfa343782e38a2c2d83e13b2e99f10d017ffe 100644 (file)
@@ -587,7 +587,7 @@ Ip6ProcessRouterAdvertise (
                                  the IP head removed.\r
 \r
   @retval EFI_INVALID_PARAMETER  The parameter is invalid.\r
-  @retval EFI_OUT_OF_RESOURCES   Insuffcient resources to complete the\r
+  @retval EFI_OUT_OF_RESOURCES   Insufficient resources to complete the\r
                                  operation.\r
   @retval EFI_SUCCESS            Successfully updated the route caches.\r
 \r
@@ -705,7 +705,7 @@ Ip6NdFasterTimerTicking (
 \r
 /**\r
   The heartbeat timer of ND module in 1 second. This time routine handles following\r
-  things: 1) maitain default router list; 2) maintain prefix options;\r
+  things: 1) maintain default router list; 2) maintain prefix options;\r
   3) maintain route caches.\r
 \r
   @param[in]  IpSb              The IP6 service binding instance.\r
index 6ab4459bab9c34436985036e1fc24fe7ed3819fd..2a2eae4b854f4f58934941c212a14440664af419 100644 (file)
@@ -870,7 +870,7 @@ Ip6Output (
 \r
     for (Index = 0, Offset = 0, PacketLen = Mtu; Index < Num; Index++) {\r
       //\r
-      // Get fragment from the Packet, append UnFragnmentLen spare buffer\r
+      // Get fragment from the Packet, append UnFragmentLen spare buffer\r
       // before the fragmented data, the corresponding data is filled in later.\r
       //\r
       Fragment = NetbufGetFragment (Packet, Offset, PacketLen, UnFragmentLen);\r
index c8d79cd6dbcc3de1e6d89cc498e5e351d4dee0a7..c24361d2957c31505c1c72d12ca4b7ee8fb31e2e 100644 (file)
@@ -44,7 +44,7 @@ Ip6RouteCacheHash (
   @param[in]  GatewayAddress  The next hop address. This is an optional parameter\r
                               that may be NULL.\r
 \r
-  @return NULL if failed to allocate memeory; otherwise, the newly created route entry.\r
+  @return NULL if failed to allocate memory; otherwise, the newly created route entry.\r
 \r
 **/\r
 IP6_ROUTE_ENTRY *\r
@@ -105,7 +105,7 @@ Ip6FreeRouteEntry (
   2. The local route entries have precedence over the default route entry.\r
 \r
   @param[in]  RtTable       The route table to search from.\r
-  @param[in]  Destination   The destionation address to search. If NULL, search\r
+  @param[in]  Destination   The destination address to search. If NULL, search\r
                             the route table by NextHop.\r
   @param[in]  NextHop       The next hop address. If NULL, search the route table\r
                             by Destination.\r
@@ -210,7 +210,7 @@ Ip6FreeRouteCacheEntry (
 \r
 /**\r
   Find a route cache with the destination and source address. This is\r
-  used by the ICMPv6 redirect messasge process.\r
+  used by the ICMPv6 redirect message process.\r
 \r
   @param[in]  RtTable       The route table to search the cache for.\r
   @param[in]  Dest          The destination address.\r
index 9ddc1ab7bc5344f2596e4ef2553a6910e5ed8384..af20dbb149b03fcc0f2410048a0ba93ac8797118 100644 (file)
@@ -1,5 +1,5 @@
 /** @file\r
-  EFI IP6 route table and route cache table defintions.\r
+  EFI IP6 route table and route cache table definitions.\r
 \r
   Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>\r
 \r
@@ -110,7 +110,7 @@ Ip6FreeRouteCacheEntry (
 \r
 /**\r
   Find a route cache with the destination and source address. This is\r
-  used by the ICMPv6 redirect messasge process.\r
+  used by the ICMPv6 redirect message process.\r
 \r
   @param[in]  RtTable       The route table to search the cache for.\r
   @param[in]  Dest          The destination address.\r
@@ -181,7 +181,7 @@ Ip6CleanRouteTable (
   @param[in]  GatewayAddress  The next hop address. This is optional parameter\r
                               that may be NULL.\r
 \r
-  @return NULL if it failed to allocate memeory. Otherwise, the newly created route entry.\r
+  @return NULL if it failed to allocate memory. Otherwise, the newly created route entry.\r
 \r
 **/\r
 IP6_ROUTE_ENTRY *\r
@@ -201,7 +201,7 @@ Ip6CreateRouteEntry (
   2. The local route entries have precedence over the default route entry.\r
 \r
   @param[in]  RtTable       The route table to search from.\r
-  @param[in]  Destination   The destionation address to search. If NULL, search\r
+  @param[in]  Destination   The destination address to search. If NULL, search\r
                             the route table by NextHop.\r
   @param[in]  NextHop       The next hop address. If NULL, search the route table\r
                             by Destination.\r
@@ -260,7 +260,7 @@ Ip6AddRoute (
 \r
   @retval EFI_SUCCESS           Successfully removed the route entry.\r
   @retval EFI_NOT_FOUND         There is no route entry in the table with that\r
-                                properity.\r
+                                property.\r
 \r
 **/\r
 EFI_STATUS\r