From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [205.139.110.120]) by mx.groups.io with SMTP id smtpd.web12.1983.1578044450381939903 for ; Fri, 03 Jan 2020 01:40:50 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=TNdoAnSL; spf=pass (domain: redhat.com, ip: 205.139.110.120, mailfrom: philmd@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1578044449; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QE2D8n0Oqf1rRA387Yx/mpU4Shq4tVfei3Ib+2zZuHA=; b=TNdoAnSLHQCEi2h6Uj1U3sJ1kSc3D2jYJq9ogaXbzvDtmMyux3nAc5ZPePLeKLY6C615e+ Q10VFVtYDC45MJ6xiwrh9iouyyJPIyGaTei2ioHt14DSf+r5J0NUDCKyYdjb3KCdHO9wUd i+4fU7onn4YjvLuWzyjMrEOQ610znb8= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-278-wDQSjePIPnGvGe6RUW-0kQ-1; Fri, 03 Jan 2020 04:40:45 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A6A1F185432C; Fri, 3 Jan 2020 09:40:44 +0000 (UTC) Received: from x1w.redhat.com (ovpn-116-190.ams2.redhat.com [10.36.116.190]) by smtp.corp.redhat.com (Postfix) with ESMTPS id F260760BF7; Fri, 3 Jan 2020 09:40:42 +0000 (UTC) From: =?UTF-8?B?UGhpbGlwcGUgTWF0aGlldS1EYXVkw6k=?= To: devel@edk2.groups.io Cc: Antoine Coeur , Jiaxin Wu , Siyuan Fu , Maciej Rabeda , Philippe Mathieu-Daude Subject: [PATCH v2 40/78] NetworkPkg/Ip6Dxe: Fix various typos Date: Fri, 3 Jan 2020 10:07:34 +0100 Message-Id: <20200103090812.10592-41-philmd@redhat.com> In-Reply-To: <20200103090812.10592-1-philmd@redhat.com> References: <20200103090812.10592-1-philmd@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-MC-Unique: wDQSjePIPnGvGe6RUW-0kQ-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: Antoine Coeur Fix various typos in comments and documentation. Cc: Jiaxin Wu Cc: Siyuan Fu Cc: Maciej Rabeda Signed-off-by: Antoine Coeur Reviewed-by: Philippe Mathieu-Daude Reviewed-by: Maciej Rabeda Signed-off-by: Philippe Mathieu-Daude --- NetworkPkg/Ip6Dxe/Ip6ConfigImpl.h | 4 ++-- NetworkPkg/Ip6Dxe/Ip6Driver.h | 8 ++++---- NetworkPkg/Ip6Dxe/Ip6If.h | 4 ++-- NetworkPkg/Ip6Dxe/Ip6Impl.h | 8 ++++---- NetworkPkg/Ip6Dxe/Ip6Input.h | 6 +++--- NetworkPkg/Ip6Dxe/Ip6Mld.h | 2 +- NetworkPkg/Ip6Dxe/Ip6Nd.h | 4 ++-- NetworkPkg/Ip6Dxe/Ip6Route.h | 10 +++++----- NetworkPkg/Ip6Dxe/Ip6Common.c | 2 +- NetworkPkg/Ip6Dxe/Ip6ConfigImpl.c | 10 +++++----- NetworkPkg/Ip6Dxe/Ip6ConfigNv.c | 6 +++--- NetworkPkg/Ip6Dxe/Ip6Driver.c | 12 ++++++------ NetworkPkg/Ip6Dxe/Ip6Icmp.c | 2 +- NetworkPkg/Ip6Dxe/Ip6If.c | 10 +++++----- NetworkPkg/Ip6Dxe/Ip6Impl.c | 10 +++++----- NetworkPkg/Ip6Dxe/Ip6Input.c | 20 ++++++++++---------- NetworkPkg/Ip6Dxe/Ip6Mld.c | 8 ++++---- NetworkPkg/Ip6Dxe/Ip6Nd.c | 12 ++++++------ NetworkPkg/Ip6Dxe/Ip6Output.c | 2 +- NetworkPkg/Ip6Dxe/Ip6Route.c | 6 +++--- 20 files changed, 73 insertions(+), 73 deletions(-) diff --git a/NetworkPkg/Ip6Dxe/Ip6ConfigImpl.h b/NetworkPkg/Ip6Dxe/Ip6Confi= gImpl.h index bfe3bbe53875..1c2eede2ab21 100644 --- a/NetworkPkg/Ip6Dxe/Ip6ConfigImpl.h +++ b/NetworkPkg/Ip6Dxe/Ip6ConfigImpl.h @@ -1,5 +1,5 @@ /** @file - Definitions for EFI IPv6 Configuartion Protocol implementation. + Definitions for EFI IPv6 Configuration Protocol implementation. =20 Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.
=20 @@ -210,7 +210,7 @@ struct _IP6_CONFIG_INSTANCE { /** Read the configuration data from variable storage according to the VarNa= me and gEfiIp6ConfigProtocolGuid. It checks the integrity of variable data. If = the - data is corrupted, it clears the variable data to ZERO. Othewise, it out= puts the + data is corrupted, it clears the variable data to ZERO. Otherwise, it ou= tputs the configuration data to IP6_CONFIG_INSTANCE. =20 @param[in] VarName The pointer to the variable name diff --git a/NetworkPkg/Ip6Dxe/Ip6Driver.h b/NetworkPkg/Ip6Dxe/Ip6Driver.h index b048dafdccc5..007f687c6e25 100644 --- a/NetworkPkg/Ip6Dxe/Ip6Driver.h +++ b/NetworkPkg/Ip6Dxe/Ip6Driver.h @@ -66,7 +66,7 @@ Ip6DriverEntryPoint ( ); =20 // -// Function prototypes for the Drivr Binding Protocol +// Function prototypes for the Driver Binding Protocol // =20 /** @@ -98,7 +98,7 @@ Ip6DriverBindingSupported ( @param[in] RemainingDevicePath Optional parameter used to pick a specif= ic child device to start. =20 - @retval EFI_SUCCES This driver is added to ControllerHandle= . + @retval EFI_SUCCESS This driver is added to ControllerHandle= . @retval EFI_ALREADY_STARTED This driver is already running on Contro= llerHandle. @retval other This driver does not support this device= . =20 @@ -147,7 +147,7 @@ Ip6DriverBindingStop ( is not NULL, then the I/O services are ad= ded to the existing child handle. =20 - @retval EFI_SUCCES The child handle was created with the I/O= services. + @retval EFI_SUCCESS The child handle was created with the I/O= services. @retval EFI_OUT_OF_RESOURCES There are not enough resources available = to create the child. @retval other The child handle was not created. @@ -166,7 +166,7 @@ Ip6ServiceBindingCreateChild ( @param[in] This Protocol instance pointer. @param[in] ChildHandle Handle of the child to destroy. =20 - @retval EFI_SUCCES The I/O services were removed from the ch= ild + @retval EFI_SUCCESS The I/O services were removed from the ch= ild handle. @retval EFI_UNSUPPORTED The child handle does not support the I/O= services that are being removed. diff --git a/NetworkPkg/Ip6Dxe/Ip6If.h b/NetworkPkg/Ip6Dxe/Ip6If.h index a8af4322eb93..ab43d8ea592a 100644 --- a/NetworkPkg/Ip6Dxe/Ip6If.h +++ b/NetworkPkg/Ip6Dxe/Ip6If.h @@ -1,5 +1,5 @@ /** @file - Definition for IP6 pesudo interface structure. + Definition for IP6 pseudo interface structure. =20 Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.
=20 @@ -203,7 +203,7 @@ Ip6OnFrameReceived ( =20 @retval EFI_ALREADY_STARTED There is already a pending receive request= . @retval EFI_OUT_OF_RESOURCES Failed to allocate resources to receive. - @retval EFI_SUCCESS The recieve request has been started. + @retval EFI_SUCCESS The receive request has been started. =20 **/ EFI_STATUS diff --git a/NetworkPkg/Ip6Dxe/Ip6Impl.h b/NetworkPkg/Ip6Dxe/Ip6Impl.h index d46ee600d5cc..8919e9448900 100644 --- a/NetworkPkg/Ip6Dxe/Ip6Impl.h +++ b/NetworkPkg/Ip6Dxe/Ip6Impl.h @@ -139,7 +139,7 @@ struct _IP6_PROTOCOL { =20 UINT8 PrefixLength; // PrefixLength of the configure= d station address. // - // User's transmit/receive tokens, and received/deliverd packets + // User's transmit/receive tokens, and received/delivered packets // NET_MAP RxTokens; NET_MAP TxTokens; // map between (User's Token, IP6_= TXTOKE_WRAP) @@ -412,7 +412,7 @@ EfiIp6GetModeData ( @retval EFI_DEVICE_ERROR An unexpected system or network error occ= urred. The EFI IPv6 Protocol driver instance was not opened. @retval EFI_UNSUPPORTED Default protocol specified through - Ip6ConfigData.DefaulProtocol isn't suppor= ted. + Ip6ConfigData.DefaultProtocol isn't suppo= rted. =20 **/ EFI_STATUS @@ -470,7 +470,7 @@ EfiIp6Groups ( the destination IPv6 address arithmetically. The gateway address must be= on the same subnet as the configured station address. =20 - The default route is added with Destination and PrefixLegth both set to = all zeros. The + The default route is added with Destination and PrefixLength both set to= all zeros. The default route matches all destination IPv6 addresses that do not match a= ny other routes. =20 All EFI IPv6 Protocol instances share a routing table. @@ -642,7 +642,7 @@ EfiIp6Transmit ( is signaled. =20 Current Udp implementation creates an IP child for each Udp child. - It initates a asynchronous receive immediately whether or not + It initiates a asynchronous receive immediately whether or not there is no mapping. Therefore, disable the returning EFI_NO_MAPPING for= now. To enable it, the following check must be performed: =20 diff --git a/NetworkPkg/Ip6Dxe/Ip6Input.h b/NetworkPkg/Ip6Dxe/Ip6Input.h index 66ddf35ea4a6..76a4edb54c3c 100644 --- a/NetworkPkg/Ip6Dxe/Ip6Input.h +++ b/NetworkPkg/Ip6Dxe/Ip6Input.h @@ -149,7 +149,7 @@ Ip6InstanceDeliverPacket ( @retval EFI_SUCCESS The packet was bypassed, and all buffers = remain the same. @retval EFI_SUCCESS The packet was protected. @retval EFI_ACCESS_DENIED The packet was discarded. - @retval EFI_OUT_OF_RESOURCES There are not suffcient resources to comp= lete the operation. + @retval EFI_OUT_OF_RESOURCES There are not sufficient resources to com= plete the operation. @retval EFI_BUFFER_TOO_SMALL The number of non-empty blocks is bigger = than the number of input data blocks when building= a fragment table. =20 @@ -192,11 +192,11 @@ Ip6CleanAssembleTable ( =20 /** Demultiple the packet. the packet delivery is processed in two - passes. The first pass will enque a shared copy of the packet + passes. The first pass will enqueue a shared copy of the packet to each IP6 child that accepts the packet. The second pass will deliver a non-shared copy of the packet to each IP6 child that has pending receive requests. Data is copied if more than one - child wants to consume the packet bacause each IP child need + child wants to consume the packet because each IP child need its own copy of the packet to make changes. =20 @param[in] IpSb The IP6 service instance that received the pac= ket. diff --git a/NetworkPkg/Ip6Dxe/Ip6Mld.h b/NetworkPkg/Ip6Dxe/Ip6Mld.h index d907a15c6e65..89dd6c21fb64 100644 --- a/NetworkPkg/Ip6Dxe/Ip6Mld.h +++ b/NetworkPkg/Ip6Dxe/Ip6Mld.h @@ -124,7 +124,7 @@ Ip6LeaveGroup ( =20 @retval EFI_ALREADY_STARTED Wants to join the group, but is already a = member of it. @retval EFI_OUT_OF_RESOURCES Failed to allocate some resources. - @retval EFI_DEVICE_ERROR Failed to set the group configuraton. + @retval EFI_DEVICE_ERROR Failed to set the group configuration. @retval EFI_SUCCESS Successfully updated the group setting. @retval EFI_NOT_FOUND Tried to leave a group of whom it isn't a = member. =20 diff --git a/NetworkPkg/Ip6Dxe/Ip6Nd.h b/NetworkPkg/Ip6Dxe/Ip6Nd.h index 891a32d7d3ca..560dfa343782 100644 --- a/NetworkPkg/Ip6Dxe/Ip6Nd.h +++ b/NetworkPkg/Ip6Dxe/Ip6Nd.h @@ -587,7 +587,7 @@ Ip6ProcessRouterAdvertise ( the IP head removed. =20 @retval EFI_INVALID_PARAMETER The parameter is invalid. - @retval EFI_OUT_OF_RESOURCES Insuffcient resources to complete the + @retval EFI_OUT_OF_RESOURCES Insufficient resources to complete the operation. @retval EFI_SUCCESS Successfully updated the route caches. =20 @@ -705,7 +705,7 @@ Ip6NdFasterTimerTicking ( =20 /** The heartbeat timer of ND module in 1 second. This time routine handles = following - things: 1) maitain default router list; 2) maintain prefix options; + things: 1) maintain default router list; 2) maintain prefix options; 3) maintain route caches. =20 @param[in] IpSb The IP6 service binding instance. diff --git a/NetworkPkg/Ip6Dxe/Ip6Route.h b/NetworkPkg/Ip6Dxe/Ip6Route.h index 9ddc1ab7bc53..af20dbb149b0 100644 --- a/NetworkPkg/Ip6Dxe/Ip6Route.h +++ b/NetworkPkg/Ip6Dxe/Ip6Route.h @@ -1,5 +1,5 @@ /** @file - EFI IP6 route table and route cache table defintions. + EFI IP6 route table and route cache table definitions. =20 Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.
=20 @@ -110,7 +110,7 @@ Ip6FreeRouteCacheEntry ( =20 /** Find a route cache with the destination and source address. This is - used by the ICMPv6 redirect messasge process. + used by the ICMPv6 redirect message process. =20 @param[in] RtTable The route table to search the cache for. @param[in] Dest The destination address. @@ -181,7 +181,7 @@ Ip6CleanRouteTable ( @param[in] GatewayAddress The next hop address. This is optional param= eter that may be NULL. =20 - @return NULL if it failed to allocate memeory. Otherwise, the newly crea= ted route entry. + @return NULL if it failed to allocate memory. Otherwise, the newly creat= ed route entry. =20 **/ IP6_ROUTE_ENTRY * @@ -201,7 +201,7 @@ Ip6CreateRouteEntry ( 2. The local route entries have precedence over the default route entry. =20 @param[in] RtTable The route table to search from. - @param[in] Destination The destionation address to search. If NULL, s= earch + @param[in] Destination The destination address to search. If NULL, se= arch the route table by NextHop. @param[in] NextHop The next hop address. If NULL, search the rout= e table by Destination. @@ -260,7 +260,7 @@ Ip6AddRoute ( =20 @retval EFI_SUCCESS Successfully removed the route entry. @retval EFI_NOT_FOUND There is no route entry in the table with = that - properity. + property. =20 **/ EFI_STATUS diff --git a/NetworkPkg/Ip6Dxe/Ip6Common.c b/NetworkPkg/Ip6Dxe/Ip6Common.c index 4ae04f258ffc..840fff0e72e5 100644 --- a/NetworkPkg/Ip6Dxe/Ip6Common.c +++ b/NetworkPkg/Ip6Dxe/Ip6Common.c @@ -214,7 +214,7 @@ Ip6CreateLinkLocalAddr ( } =20 // - // Get the interface id if it is manully configured. + // Get the interface id if it is manually configured. // Ip6Config =3D &IpSb->Ip6ConfigInstance.Ip6Config; DataSize =3D sizeof (EFI_IP6_CONFIG_INTERFACE_ID); diff --git a/NetworkPkg/Ip6Dxe/Ip6ConfigImpl.c b/NetworkPkg/Ip6Dxe/Ip6Confi= gImpl.c index 6efed37a4d04..eb2a80b64f15 100644 --- a/NetworkPkg/Ip6Dxe/Ip6ConfigImpl.c +++ b/NetworkPkg/Ip6Dxe/Ip6ConfigImpl.c @@ -101,7 +101,7 @@ Ip6ConfigOnPolicyChanged ( } =20 // - // All IPv6 children that use global unicast address as it's source ad= dress + // All IPv6 children that use global unicast address as its source add= ress // should be destroyed now. The survivers are those use the link-local= address // or the unspecified address as the source address. // TODO: Conduct a check here. @@ -335,7 +335,7 @@ Ip6ConfigSignalEvent ( /** Read the configuration data from variable storage according to the VarNa= me and gEfiIp6ConfigProtocolGuid. It checks the integrity of variable data. If = the - data is corrupted, it clears the variable data to ZERO. Othewise, it out= puts the + data is corrupted, it clears the variable data to ZERO. Otherwise, it ou= tputs the configuration data to IP6_CONFIG_INSTANCE. =20 @param[in] VarName The pointer to the variable name @@ -612,7 +612,7 @@ Ip6ConfigGetIfInfo ( } =20 /** - The work function for EfiIp6ConfigSetData() to set the alternative intef= ace ID + The work function for EfiIp6ConfigSetData() to set the alternative inter= face ID for the communication device managed by this IP6Config instance, if the = link local IPv6 addresses generated from the interface ID based on the default sour= ce the EFI IPv6 Protocol uses is a duplicate address. @@ -915,7 +915,7 @@ Ip6ManualAddrDadCallback ( under the current policy. @retval EFI_INVALID_PARAMETER One or more fields in Data is invalid. @retval EFI_OUT_OF_RESOURCES Fail to allocate resource to complete the = operation. - @retval EFI_NOT_READY An asynchrous process is invoked to set th= e specified + @retval EFI_NOT_READY An asynchronous process is invoked to set = the specified configuration data, and the process is not= finished. @retval EFI_ABORTED The manual addresses to be set equal curre= nt configuration. @@ -2034,7 +2034,7 @@ EfiIp6ConfigSetData ( } } else { // - // Another asynchornous process is on the way. + // Another asynchronous process is on the way. // Status =3D EFI_ACCESS_DENIED; } diff --git a/NetworkPkg/Ip6Dxe/Ip6ConfigNv.c b/NetworkPkg/Ip6Dxe/Ip6ConfigN= v.c index aac665d3d427..a0727d2666e9 100644 --- a/NetworkPkg/Ip6Dxe/Ip6ConfigNv.c +++ b/NetworkPkg/Ip6Dxe/Ip6ConfigNv.c @@ -407,7 +407,7 @@ Exit: =20 /** This function converts the different format of address list to string fo= rmat and - then generates the corresponding text opcode to illustarate the address = info in + then generates the corresponding text opcode to illustrate the address i= nfo in IP6 configuration page. Currently, the following formats are supported: EFI_IP6_ADDRESS_INFO AddressType: Ip6ConfigNvHostAddress; EFI_IPv6_ADDRESS AddressType: Ip6ConfigNvGatewayAddress and Ip6Confi= gNvDnsAddress; @@ -1470,7 +1470,7 @@ Exit: @param[out] Progress A pointer to a string filled in with the offset of the most recent '&' before the first failing name / value pair (or the - beginn ing of the string if the failure + beginning of the string if the failure is in the first name / value pair) or the terminating NULL if all was successful. @@ -1622,7 +1622,7 @@ Ip6GetCurrentSetting ( } =20 // - // Get gateway adderss list. + // Get gateway address list. // if (Data !=3D NULL) { FreePool (Data); diff --git a/NetworkPkg/Ip6Dxe/Ip6Driver.c b/NetworkPkg/Ip6Dxe/Ip6Driver.c index 63d8428dbced..7c13d6a3d4cc 100644 --- a/NetworkPkg/Ip6Dxe/Ip6Driver.c +++ b/NetworkPkg/Ip6Dxe/Ip6Driver.c @@ -498,7 +498,7 @@ ON_ERROR: @param[in] RemainingDevicePath Optional parameter used to pick a specif= ic child device to start. =20 - @retval EFI_SUCCES This driver is added to ControllerHandle= . + @retval EFI_SUCCESS This driver is added to ControllerHandle= . @retval EFI_ALREADY_STARTED This driver is already running on Contro= llerHandle. @retval other This driver does not support this device= . =20 @@ -547,7 +547,7 @@ Ip6DriverBindingStart ( Ip6Cfg =3D &IpSb->Ip6ConfigInstance.Ip6Config; =20 // - // Install the Ip6ServiceBinding Protocol onto ControlerHandle + // Install the Ip6ServiceBinding Protocol onto ControllerHandle // Status =3D gBS->InstallMultipleProtocolInterfaces ( &ControllerHandle, @@ -823,7 +823,7 @@ Exit: is not NULL, then the I/O services are ad= ded to the existing child handle. =20 - @retval EFI_SUCCES The child handle was created with the I/O= services. + @retval EFI_SUCCESS The child handle was created with the I/O= services. @retval EFI_OUT_OF_RESOURCES There are not enough resources available = to create the child. @retval other The child handle was not created. @@ -925,7 +925,7 @@ ON_ERROR: @param[in] This Protocol instance pointer. @param[in] ChildHandle Handle of the child to destroy. =20 - @retval EFI_SUCCES The I/O services were removed from the ch= ild + @retval EFI_SUCCESS The I/O services were removed from the ch= ild handle. @retval EFI_UNSUPPORTED The child handle does not support the I/O= services that are being removed. @@ -1005,14 +1005,14 @@ Ip6ServiceBindingDestroyChild ( // Uninstall the IP6 protocol first. Many thing happens during // this: // 1. The consumer of the IP6 protocol will be stopped if it - // opens the protocol BY_DRIVER. For eaxmple, if MNP driver is + // opens the protocol BY_DRIVER. For example, if MNP driver is // stopped, IP driver's stop function will be called, and uninstall // EFI_IP6_PROTOCOL will trigger the UDP's stop function. This // makes it possible to create the network stack bottom up, and // stop it top down. // 2. the upper layer will recycle the received packet. The recycle // event's TPL is higher than this function. The recycle events - // will be called back before preceeding. If any packets not recycled, + // will be called back before preceding. If any packets not recycled, // that means there is a resource leak. // gBS->RestoreTPL (OldTpl); diff --git a/NetworkPkg/Ip6Dxe/Ip6Icmp.c b/NetworkPkg/Ip6Dxe/Ip6Icmp.c index bf9b17d907ef..d43121e4cb9e 100644 --- a/NetworkPkg/Ip6Dxe/Ip6Icmp.c +++ b/NetworkPkg/Ip6Dxe/Ip6Icmp.c @@ -300,7 +300,7 @@ Ip6ProcessIcmpError ( } =20 // - // Notify the upper-layer process that an ICMPv6 eror message is receive= d. + // Notify the upper-layer process that an ICMPv6 error message is receiv= ed. // IP6_GET_CLIP_INFO (Packet)->Status =3D EFI_ICMP_ERROR; return Ip6Demultiplex (IpSb, Head, Packet); diff --git a/NetworkPkg/Ip6Dxe/Ip6If.c b/NetworkPkg/Ip6Dxe/Ip6If.c index 956c05c396aa..5b469710572c 100644 --- a/NetworkPkg/Ip6Dxe/Ip6If.c +++ b/NetworkPkg/Ip6Dxe/Ip6If.c @@ -1,5 +1,5 @@ /** @file - Implement IP6 pesudo interface. + Implement IP6 pseudo interface. =20 Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.
=20 @@ -160,7 +160,7 @@ Ip6SetAddress ( =20 =20 // - // Node should delay joining the solicited-node mulitcast address by a r= andom delay + // Node should delay joining the solicited-node multicast address by a r= andom delay // between 0 and MAX_RTR_SOLICITATION_DELAY (1 second). // Thus queue the address to be processed in Duplicate Address Detection= module // after the delay time (in milliseconds). @@ -497,7 +497,7 @@ Ip6OnFrameReceivedDpc ( } =20 // - // Wrap the frame in a net buffer then deliever it to IP input. + // Wrap the frame in a net buffer then deliver it to IP input. // IP will reassemble the packet, and deliver it to upper layer // Netfrag.Len =3D MnpRxData->DataLength; @@ -548,7 +548,7 @@ Ip6OnFrameReceived ( =20 @retval EFI_ALREADY_STARTED There is already a pending receive request= . @retval EFI_OUT_OF_RESOURCES Failed to allocate resource to receive. - @retval EFI_SUCCESS The recieve request has been started. + @retval EFI_SUCCESS The receive request has been started. =20 **/ EFI_STATUS @@ -575,7 +575,7 @@ Ip6ReceiveFrame ( } =20 /** - Callback funtion when frame transmission is finished. It will + Callback function when frame transmission is finished. It will call the frame owner's callback function to tell it the result. =20 @param[in] Context Context which points to the token. diff --git a/NetworkPkg/Ip6Dxe/Ip6Impl.c b/NetworkPkg/Ip6Dxe/Ip6Impl.c index 80862bfe9d09..826a5c252f1a 100644 --- a/NetworkPkg/Ip6Dxe/Ip6Impl.c +++ b/NetworkPkg/Ip6Dxe/Ip6Impl.c @@ -288,7 +288,7 @@ Ip6IsIllegalProtocol ( } =20 /** - Intiialize the IP6_PROTOCOL structure to the unconfigured states. + Initialize the IP6_PROTOCOL structure to the unconfigured states. =20 @param[in] IpSb The IP6 service instance. @param[in, out] IpInstance The IP6 child instance. @@ -604,7 +604,7 @@ Ip6ServiceConfigMnp ( @retval EFI_DEVICE_ERROR An unexpected system or network error occ= urred. The EFI IPv6 Protocol driver instance was not opened. @retval EFI_UNSUPPORTED Default protocol specified through - Ip6ConfigData.DefaulProtocol isn't suppor= ted. + Ip6ConfigData.DefaultProtocol isn't suppo= rted. =20 **/ EFI_STATUS @@ -787,7 +787,7 @@ ON_EXIT: the destination IPv6 address arithmetically. The gateway address must be= on the same subnet as the configured station address. =20 - The default route is added with Destination and PrefixLegth both set to = all zeros. The + The default route is added with Destination and PrefixLength both set to= all zeros. The default route matches all destination IPv6 addresses that do not match a= ny other routes. =20 All EFI IPv6 Protocol instances share a routing table. @@ -1001,7 +1001,7 @@ Exit: @param[in] Map The container of either user's transmit o= r receive token. @param[in] Item Current item to check against. - @param[in] Context The Token to check againist. + @param[in] Context The Token to check against. =20 @retval EFI_ACCESS_DENIED The token or event has already been enque= ued in IP @retval EFI_SUCCESS The current item isn't the same token/eve= nt as the @@ -1449,7 +1449,7 @@ Exit: is signaled. =20 Current Udp implementation creates an IP child for each Udp child. - It initates a asynchronous receive immediately no matter whether + It initiates a asynchronous receive immediately no matter whether there is no mapping or not. Therefore, disable the returning EFI_NO_MAPP= ING for now. To enable it, the following check must be performed: =20 diff --git a/NetworkPkg/Ip6Dxe/Ip6Input.c b/NetworkPkg/Ip6Dxe/Ip6Input.c index 57a52326e1bf..c42baa35b6b6 100644 --- a/NetworkPkg/Ip6Dxe/Ip6Input.c +++ b/NetworkPkg/Ip6Dxe/Ip6Input.c @@ -319,7 +319,7 @@ Ip6Reassemble ( } =20 // - // Backup the first fragment in case the reasembly of that packet fail= . + // Backup the first fragment in case the reassembly of that packet fai= l. // Duplicate =3D NetbufDuplicate (Packet, NULL, sizeof (EFI_IP6_HEADER)); if (Duplicate =3D=3D NULL) { @@ -371,7 +371,7 @@ Ip6Reassemble ( // // Deliver the whole packet if all the fragments received. // All fragments received if: - // 1. received the last one, so, the totoal length is know + // 1. received the last one, so, the total length is known // 2. received all the data. If the last fragment on the // queue ends at the total length, all data is received. // @@ -380,7 +380,7 @@ Ip6Reassemble ( RemoveEntryList (&Assemble->Link); =20 // - // If the packet is properly formated, the last fragment's End + // If the packet is properly formatted, the last fragment's End // equals to the packet's total length. Otherwise, the packet // is a fake, drop it now. // @@ -396,7 +396,7 @@ Ip6Reassemble ( // // This TmpPacket is used to hold the unfragmentable part, i.e., // the IPv6 header and the unfragmentable extension headers. Be noted = that - // the Fragment Header is exluded. + // the Fragment Header is excluded. // TmpPacket =3D NetbufGetFragment (Fragment, 0, This->HeadLen, 0); ASSERT (TmpPacket !=3D NULL); @@ -489,7 +489,7 @@ Ip6IpSecFree ( @retval EFI_SUCCESS The packet was bypassed, and all buffers = remain the same. @retval EFI_SUCCESS The packet was protected. @retval EFI_ACCESS_DENIED The packet was discarded. - @retval EFI_OUT_OF_RESOURCES There are not suffcient resources to comp= lete the operation. + @retval EFI_OUT_OF_RESOURCES There are not sufficient resources to com= plete the operation. @retval EFI_BUFFER_TOO_SMALL The number of non-empty blocks is bigger = than the number of input data blocks when building= a fragment table. =20 @@ -718,7 +718,7 @@ ON_EXIT: @param[in, out] Packet The received IP6 packet to be processed. @param[in] Flag The link layer flag for the packet receive= d, such as multicast. - @param[out] Payload The pointer to the payload of the recieved= packet. + @param[out] Payload The pointer to the payload of the received= packet. it starts from the first byte of the exten= sion header. @param[out] LastHead The pointer of NextHeader of the last exte= nsion header processed by IP6. @@ -1070,7 +1070,7 @@ Ip6AcceptFrame ( =20 // // Packet may have been changed. The ownership of the packet - // is transfered to the packet process logic. + // is transferred to the packet process logic. // Head =3D Packet->Ip.Ip6; IP6_GET_CLIP_INFO (Packet)->Status =3D EFI_SUCCESS; @@ -1283,7 +1283,7 @@ Ip6InstanceFrameAcceptable ( Proto =3D NULL; =20 // - // Dirty trick for the Tiano UEFI network stack implmentation. If + // Dirty trick for the Tiano UEFI network stack implementation. If // ReceiveTimeout =3D=3D -1, the receive of the packet for this instance // is disabled. The UEFI spec don't have such captibility. We add // this to improve the performance because IP will make a copy of @@ -1428,7 +1428,7 @@ Ip6InstanceEnquePacket ( } =20 // - // Enque a shared copy of the packet. + // Enqueue a shared copy of the packet. // Clone =3D NetbufClone (Packet); =20 @@ -1661,7 +1661,7 @@ Ip6Demultiplex ( INTN Enqueued; =20 // - // Two pass delivery: first, enque a shared copy of the packet + // Two pass delivery: first, enqueue a shared copy of the packet // to each instance that accept the packet. // Enqueued =3D 0; diff --git a/NetworkPkg/Ip6Dxe/Ip6Mld.c b/NetworkPkg/Ip6Dxe/Ip6Mld.c index b7a882b25975..ba12089dee25 100644 --- a/NetworkPkg/Ip6Dxe/Ip6Mld.c +++ b/NetworkPkg/Ip6Dxe/Ip6Mld.c @@ -383,7 +383,7 @@ ERROR: =20 @retval EFI_OUT_OF_RESOURCES There are not sufficient resources to = complete the operation. - @retval EFI_SUCESS The address is added to the group addr= ess array. + @retval EFI_SUCCESS The address is added to the group addr= ess array. =20 **/ EFI_STATUS @@ -496,8 +496,8 @@ Ip6JoinGroup ( } =20 // - // Repeat the report once or twcie after short delays [Unsolicited Repor= t Interval] (default:10s) - // Simulate this operation as a Multicast-Address-Specific Query was rec= eived for that addresss. + // Repeat the report once or twice after short delays [Unsolicited Repor= t Interval] (default:10s) + // Simulate this operation as a Multicast-Address-Specific Query was rec= eived for that address. // Group =3D Ip6CreateMldEntry (IpSb, Address, IP6_UNSOLICITED_REPORT_INTER= VAL); if (Group =3D=3D NULL) { @@ -604,7 +604,7 @@ Ip6LeaveGroup ( =20 @retval EFI_ALREADY_STARTED Wants to join the group, but is already a = member of it @retval EFI_OUT_OF_RESOURCES Failed to allocate sufficient resources. - @retval EFI_DEVICE_ERROR Failed to set the group configuraton. + @retval EFI_DEVICE_ERROR Failed to set the group configuration. @retval EFI_SUCCESS Successfully updated the group setting. @retval EFI_NOT_FOUND Try to leave the group which it isn't a me= mber. =20 diff --git a/NetworkPkg/Ip6Dxe/Ip6Nd.c b/NetworkPkg/Ip6Dxe/Ip6Nd.c index 67d7022a7673..4288ef02dd46 100644 --- a/NetworkPkg/Ip6Dxe/Ip6Nd.c +++ b/NetworkPkg/Ip6Dxe/Ip6Nd.c @@ -1645,7 +1645,7 @@ Ip6ProcessNeighborSolicit ( // // Sends a Neighbor Advertisement as response. // Set the Router flag to zero since the node is a host. - // If the source address of the solicitation is unspeicifed, and target = address + // If the source address of the solicitation is unspecified, and target = address // is one of the maintained address, reply a unsolicited multicast adver= tisement. // if (IsDAD && IsMaintained) { @@ -2087,7 +2087,7 @@ Ip6ProcessRouterAdvertise ( } =20 // - // If an valid router advertisment is received, stops router solicitatio= n. + // If an valid router advertisement is received, stops router solicitati= on. // IpSb->RouterAdvertiseReceived =3D TRUE; =20 @@ -2251,7 +2251,7 @@ Ip6ProcessRouterAdvertise ( // if (!Ip6IsOneOfSetAddress (IpSb, &StatelessAddress, NULL, NULL))= { // - // And also not in the DAD process, check its uniqeness firstl= y. + // And also not in the DAD process, check its uniqueness first= ly. // if (Ip6FindDADEntry (IpSb, &StatelessAddress, NULL) =3D=3D NUL= L) { Status =3D Ip6SetAddress ( @@ -2303,7 +2303,7 @@ Ip6ProcessRouterAdvertise ( =20 } else if (PrefixList->ValidLifetime <=3D 7200) { // - // If RemainingLifetime is less than or equls to 2 hours, igno= re the + // If RemainingLifetime is less than or equals to 2 hours, ign= ore the // Prefix Information option with regards to the valid lifetim= e. // TODO: If this option has been authenticated, set the valid = lifetime. // @@ -2365,7 +2365,7 @@ Exit: the IP head removed. =20 @retval EFI_INVALID_PARAMETER The parameter is invalid. - @retval EFI_OUT_OF_RESOURCES Insuffcient resources to complete the + @retval EFI_OUT_OF_RESOURCES Insufficient resources to complete the operation. @retval EFI_SUCCESS Successfully updated the route caches. =20 @@ -3069,7 +3069,7 @@ Ip6NdFasterTimerTicking ( =20 /** The heartbeat timer of ND module in 1 second. This time routine handles = following - things: 1) maitain default router list; 2) maintain prefix options; + things: 1) maintain default router list; 2) maintain prefix options; 3) maintain route caches. =20 @param[in] IpSb The IP6 service binding instance. diff --git a/NetworkPkg/Ip6Dxe/Ip6Output.c b/NetworkPkg/Ip6Dxe/Ip6Output.c index 6ab4459bab9c..2a2eae4b854f 100644 --- a/NetworkPkg/Ip6Dxe/Ip6Output.c +++ b/NetworkPkg/Ip6Dxe/Ip6Output.c @@ -870,7 +870,7 @@ Ip6Output ( =20 for (Index =3D 0, Offset =3D 0, PacketLen =3D Mtu; Index < Num; Index+= +) { // - // Get fragment from the Packet, append UnFragnmentLen spare buffer + // Get fragment from the Packet, append UnFragmentLen spare buffer // before the fragmented data, the corresponding data is filled in l= ater. // Fragment =3D NetbufGetFragment (Packet, Offset, PacketLen, UnFragmen= tLen); diff --git a/NetworkPkg/Ip6Dxe/Ip6Route.c b/NetworkPkg/Ip6Dxe/Ip6Route.c index c8d79cd6dbcc..c24361d2957c 100644 --- a/NetworkPkg/Ip6Dxe/Ip6Route.c +++ b/NetworkPkg/Ip6Dxe/Ip6Route.c @@ -44,7 +44,7 @@ Ip6RouteCacheHash ( @param[in] GatewayAddress The next hop address. This is an optional pa= rameter that may be NULL. =20 - @return NULL if failed to allocate memeory; otherwise, the newly created= route entry. + @return NULL if failed to allocate memory; otherwise, the newly created = route entry. =20 **/ IP6_ROUTE_ENTRY * @@ -105,7 +105,7 @@ Ip6FreeRouteEntry ( 2. The local route entries have precedence over the default route entry. =20 @param[in] RtTable The route table to search from. - @param[in] Destination The destionation address to search. If NULL, s= earch + @param[in] Destination The destination address to search. If NULL, se= arch the route table by NextHop. @param[in] NextHop The next hop address. If NULL, search the rout= e table by Destination. @@ -210,7 +210,7 @@ Ip6FreeRouteCacheEntry ( =20 /** Find a route cache with the destination and source address. This is - used by the ICMPv6 redirect messasge process. + used by the ICMPv6 redirect message process. =20 @param[in] RtTable The route table to search the cache for. @param[in] Dest The destination address. --=20 2.21.0