From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.81]) by mx.groups.io with SMTP id smtpd.web10.8257.1575389899475346492 for ; Tue, 03 Dec 2019 08:18:19 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=H+Degqfn; spf=pass (domain: redhat.com, ip: 207.211.31.81, mailfrom: philmd@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1575389898; 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=1NzjmEcmrbM+vK9Ce6C2GV9NQpzK2V/z5NHCm5XNSNY=; b=H+DegqfnyzyVYEd/JSRqZ1yiBKvO6XOEmp0mUP//SdKdyl4KDRcHSzhwfuKz82HdQpGz7V itZtOfW6HnKMS6AHgjRpbgp66WhqQyvrPta8mtRx12xQyP/CpNCWpQJflzi5R3qgEtRlm6 CIxYqqP7fYWvgJOGCz420Ty82hxeSmE= 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-195-1g-LvuwDNACwhPUWWwewlw-1; Tue, 03 Dec 2019 11:18:17 -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 BAB4810054E3; Tue, 3 Dec 2019 16:18:15 +0000 (UTC) Received: from x1w.redhat.com (ovpn-204-86.brq.redhat.com [10.40.204.86]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C7BE860C63; Tue, 3 Dec 2019 16:18:10 +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 34/79] NetworkPkg/Dhcp6Dxe: Fix various typos Date: Tue, 3 Dec 2019 17:15:17 +0100 Message-Id: <20191203161602.15969-35-philmd@redhat.com> In-Reply-To: <20191203161602.15969-1-philmd@redhat.com> References: <20191203161602.15969-1-philmd@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-MC-Unique: 1g-LvuwDNACwhPUWWwewlw-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 Reviewed-by: Philippe Mathieu-Daude Signed-off-by: Philippe Mathieu-Daude --- NetworkPkg/Dhcp6Dxe/Dhcp6Driver.h | 4 +-- NetworkPkg/Dhcp6Dxe/Dhcp6Utility.h | 12 ++++----- NetworkPkg/Dhcp6Dxe/Dhcp6Driver.c | 12 ++++----- NetworkPkg/Dhcp6Dxe/Dhcp6Impl.c | 12 ++++----- NetworkPkg/Dhcp6Dxe/Dhcp6Io.c | 26 ++++++++++---------- NetworkPkg/Dhcp6Dxe/Dhcp6Utility.c | 16 ++++++------ 6 files changed, 41 insertions(+), 41 deletions(-) diff --git a/NetworkPkg/Dhcp6Dxe/Dhcp6Driver.h b/NetworkPkg/Dhcp6Dxe/Dhcp6D= river.h index a609eddf2474..1b8744b9b8d2 100644 --- a/NetworkPkg/Dhcp6Dxe/Dhcp6Driver.h +++ b/NetworkPkg/Dhcp6Dxe/Dhcp6Driver.h @@ -108,7 +108,7 @@ Dhcp6DriverBindingStop ( then a new handle is created. If it is a pointer to = an existing UEFI handle, then the protocol is added to the existing UEFI hand= le. =20 - @retval EFI_SUCCES The protocol was added to ChildHandle. + @retval EFI_SUCCESS The protocol was added to ChildHandle. @retval EFI_INVALID_PARAMETER ChildHandle is NULL. @retval EFI_OUT_OF_RESOURCES There are not enough resources available t= o create the child. @@ -132,7 +132,7 @@ Dhcp6ServiceBindingCreateChild ( @param This Pointer to the EFI_SERVICE_BINDING_PROTOCOL instance= . @param ChildHandle Handle of the child to destroy. =20 - @retval EFI_SUCCES The protocol was removed from ChildHandle. + @retval EFI_SUCCESS The protocol was removed from ChildHandle. @retval EFI_UNSUPPORTED ChildHandle does not support the protocol = that is being removed. @retval EFI_INVALID_PARAMETER Child handle is NULL. @retval EFI_ACCESS_DENIED The protocol could not be removed from the= ChildHandle diff --git a/NetworkPkg/Dhcp6Dxe/Dhcp6Utility.h b/NetworkPkg/Dhcp6Dxe/Dhcp6= Utility.h index 6a302adf2944..2f18eb360957 100644 --- a/NetworkPkg/Dhcp6Dxe/Dhcp6Utility.h +++ b/NetworkPkg/Dhcp6Dxe/Dhcp6Utility.h @@ -71,7 +71,7 @@ Dhcp6CleanupModeData ( =20 @param[in] Base The base value of the time. @param[in] IsFirstRt If TRUE, it is the first time to calculate exp= ire time. - @param[in] NeedSigned If TRUE, the the signed factor is needed. + @param[in] NeedSigned If TRUE, the signed factor is needed. =20 @return Expire The calculated result for the new expire time. =20 @@ -165,7 +165,7 @@ Dhcp6OnTransmitted ( =20 @param[in, out] Buf The pointer to buffer. @param[in] OptType The option type. - @param[in] OptLen The lenght of option content.s + @param[in] OptLen The length of option content.s @param[in] Data The pointer to the option content. =20 @return Buf The position to append the next option. @@ -270,7 +270,7 @@ Dhcp6SeekIaOption ( /** Parse the address option and update the address info. =20 - @param[in] CurrentIa The pointer to the Ia Address in control b= lcok. + @param[in] CurrentIa The pointer to the Ia Address in control b= lock. @param[in] IaInnerOpt The pointer to the buffer. @param[in] IaInnerLen The length to parse. @param[out] AddrNum The number of addresses. @@ -287,7 +287,7 @@ Dhcp6ParseAddrOption ( ); =20 /** - Create a control blcok for the Ia according to the corresponding options= . + Create a control block for the Ia according to the corresponding options= . =20 @param[in] Instance The pointer to DHCP6 Instance. @param[in] IaInnerOpt The pointer to the inner options in th= e Ia option. @@ -327,7 +327,7 @@ Dhcp6CacheIa ( =20 =20 /** - Append CacheIa to the currrent IA. Meanwhile, clear CacheIa.ValidLifetim= e to 0. + Append CacheIa to the current IA. Meanwhile, clear CacheIa.ValidLifetime= to 0. =20 @param[in] Instance The pointer to DHCP6 instance. =20 @@ -338,7 +338,7 @@ Dhcp6AppendCacheIa ( ); =20 /** - Calculate the Dhcp6 get mapping timeout by adding additinal delay to the= IP6 DAD transmits count. + Calculate the Dhcp6 get mapping timeout by adding additional delay to th= e IP6 DAD transmits count. =20 @param[in] Ip6Cfg The pointer to Ip6 config protocol. @param[out] TimeOut The time out value in 100ns units. diff --git a/NetworkPkg/Dhcp6Dxe/Dhcp6Driver.c b/NetworkPkg/Dhcp6Dxe/Dhcp6D= river.c index 2ffdba73a563..f0b236835f86 100644 --- a/NetworkPkg/Dhcp6Dxe/Dhcp6Driver.c +++ b/NetworkPkg/Dhcp6Dxe/Dhcp6Driver.c @@ -1,6 +1,6 @@ /** @file Driver Binding functions and Service Binding functions - implementationfor for Dhcp6 Driver. + implementation for Dhcp6 Driver. =20 Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.
=20 @@ -300,7 +300,7 @@ Dhcp6CreateInstance ( =20 // // There is a timer for each Dhcp6 instance, which is used to track the - // lease time of Ia and the retransmisson time of all sent packets. + // lease time of Ia and the retransmission time of all sent packets. // Status =3D gBS->CreateEvent ( EVT_NOTIFY_SIGNAL | EVT_TIMER, @@ -445,7 +445,7 @@ Dhcp6DriverBindingStart ( DHCP6_SERVICE *Service; =20 // - // Check the Dhcp6 serivce whether already started. + // Check the Dhcp6 service whether already started. // Status =3D gBS->OpenProtocol ( ControllerHandle, @@ -551,7 +551,7 @@ Dhcp6DriverBindingStop ( Service =3D DHCP6_SERVICE_FROM_THIS (ServiceBinding); if (!IsListEmpty (&Service->Child)) { // - // Destroy all the children instances before destory the service. + // Destroy all the children instances before destroy the service. // List =3D &Service->Child; Status =3D NetDestroyLinkList ( @@ -603,7 +603,7 @@ ON_EXIT: then a new handle is created. If it is a poi= nter to an existing UEFI handle, then the protocol is added to t= he existing UEFI handle. =20 - @retval EFI_SUCCES The protocol was added to ChildHandle. + @retval EFI_SUCCESS The protocol was added to ChildHandle. @retval EFI_INVALID_PARAMETER ChildHandle is NULL. @retval other The child handle was not created. =20 @@ -715,7 +715,7 @@ ON_ERROR: @param[in] This Pointer to the EFI_SERVICE_BINDING_PROTOCOL inst= ance. @param[in] ChildHandle Handle of the child to destroy =20 - @retval EFI_SUCCES The protocol was removed from ChildHandle. + @retval EFI_SUCCESS The protocol was removed from ChildHandle. @retval EFI_UNSUPPORTED ChildHandle does not support the protocol = that is being removed. @retval EFI_INVALID_PARAMETER Child handle is NULL. @retval EFI_ACCESS_DENIED The protocol could not be removed from the= ChildHandle diff --git a/NetworkPkg/Dhcp6Dxe/Dhcp6Impl.c b/NetworkPkg/Dhcp6Dxe/Dhcp6Imp= l.c index 44c340ed0c6a..bb4c1d12a987 100644 --- a/NetworkPkg/Dhcp6Dxe/Dhcp6Impl.c +++ b/NetworkPkg/Dhcp6Dxe/Dhcp6Impl.c @@ -96,7 +96,7 @@ EfiDhcp6Start ( OldTpl =3D gBS->RaiseTPL (TPL_CALLBACK); =20 // - // Check Media Satus. + // Check Media Status. // MediaStatus =3D EFI_SUCCESS; NetLibDetectMediaWaitTimeout (Service->Controller, DHCP_CHECK_MEDIA_WAIT= ING_TIME, &MediaStatus); @@ -220,7 +220,7 @@ EfiDhcp6Stop ( } =20 // - // Poll udp out of the net tpl if synchoronus call. + // Poll udp out of the net tpl if synchronous call. // if (Instance->Config->IaInfoEvent =3D=3D NULL) { ASSERT (Udp6 !=3D NULL); @@ -694,7 +694,7 @@ EfiDhcp6InfoRequest ( } =20 // - // Poll udp out of the net tpl if synchoronus call. + // Poll udp out of the net tpl if synchronous call. // if (TimeoutEvent =3D=3D NULL) { =20 @@ -823,7 +823,7 @@ EfiDhcp6RenewRebind ( gBS->RestoreTPL (OldTpl); =20 // - // Poll udp out of the net tpl if synchoronus call. + // Poll udp out of the net tpl if synchronous call. // if (Instance->Config->IaInfoEvent =3D=3D NULL) { =20 @@ -958,7 +958,7 @@ EfiDhcp6Decline ( gBS->RestoreTPL (OldTpl); =20 // - // Poll udp out of the net tpl if synchoronus call. + // Poll udp out of the net tpl if synchronous call. // if (Instance->Config->IaInfoEvent =3D=3D NULL) { =20 @@ -1099,7 +1099,7 @@ EfiDhcp6Release ( gBS->RestoreTPL (OldTpl); =20 // - // Poll udp out of the net tpl if synchoronus call. + // Poll udp out of the net tpl if synchronous call. // if (Instance->Config->IaInfoEvent =3D=3D NULL) { while (Instance->UdpSts =3D=3D EFI_ALREADY_STARTED) { diff --git a/NetworkPkg/Dhcp6Dxe/Dhcp6Io.c b/NetworkPkg/Dhcp6Dxe/Dhcp6Io.c index 4f8393cb36ce..7ce618058ae7 100644 --- a/NetworkPkg/Dhcp6Dxe/Dhcp6Io.c +++ b/NetworkPkg/Dhcp6Dxe/Dhcp6Io.c @@ -58,7 +58,7 @@ Dhcp6EnqueueRetry ( TxCb->Elapsed =3D Elapsed; =20 // - // Calculate the retransmission according to the the message type. + // Calculate the retransmission according to the message type. // switch (Packet->Dhcp6.Header.MessageType) { case Dhcp6MsgSolicit: @@ -548,13 +548,13 @@ Dhcp6UpdateIaInfo ( =20 ASSERT (Instance->Config !=3D NULL); // - // If the reply was received in reponse to a solicit with rapid commit o= ption, + // If the reply was received in response to a solicit with rapid commit = option, // request, renew or rebind message, the client updates the information = it has // recorded about IAs from the IA options contained in the reply message= : // 1. record the T1 and T2 times // 2. add any new addresses in the IA // 3. discard any addresses from the IA, that have a valid lifetime of= 0 - // 4. update lifetimes for any addresses that alread recorded + // 4. update lifetimes for any addresses that already recorded // 5. leave unchanged any information about addresses // // See details in the section-18.1.8 of rfc-3315. @@ -941,7 +941,7 @@ Dhcp6SendSolicitMsg ( } =20 // - // Create the Dhcp6 packet and initialize commone fields. + // Create the Dhcp6 packet and initialize common fields. // Packet =3D AllocateZeroPool (DHCP6_BASE_PACKET_SIZE + UserLen); if (Packet =3D=3D NULL) { @@ -1123,7 +1123,7 @@ Dhcp6SendRequestMsg ( } =20 // - // Create the Dhcp6 packet and initialize commone fields. + // Create the Dhcp6 packet and initialize common fields. // Packet =3D AllocateZeroPool (DHCP6_BASE_PACKET_SIZE + UserLen); if (Packet =3D=3D NULL) { @@ -1281,7 +1281,7 @@ Dhcp6SendDeclineMsg ( ServerId =3D (EFI_DHCP6_DUID *) (Option + 2); =20 // - // Create the Dhcp6 packet and initialize commone fields. + // Create the Dhcp6 packet and initialize common fields. // Packet =3D AllocateZeroPool (DHCP6_BASE_PACKET_SIZE); if (Packet =3D=3D NULL) { @@ -1415,7 +1415,7 @@ Dhcp6SendReleaseMsg ( ServerId =3D (EFI_DHCP6_DUID *) (Option + 2); =20 // - // Create the Dhcp6 packet and initialize commone fields. + // Create the Dhcp6 packet and initialize common fields. // Packet =3D AllocateZeroPool (DHCP6_BASE_PACKET_SIZE); if (Packet =3D=3D NULL) { @@ -1546,7 +1546,7 @@ Dhcp6SendRenewRebindMsg ( } =20 // - // Create the Dhcp6 packet and initialize commone fields. + // Create the Dhcp6 packet and initialize common fields. // Packet =3D AllocateZeroPool (DHCP6_BASE_PACKET_SIZE + UserLen); if (Packet =3D=3D NULL) { @@ -1829,7 +1829,7 @@ Dhcp6SendInfoRequestMsg ( } =20 // - // Create the Dhcp6 packet and initialize commone fields. + // Create the Dhcp6 packet and initialize common fields. // Packet =3D AllocateZeroPool (DHCP6_BASE_PACKET_SIZE + UserLen); if (Packet =3D=3D NULL) { @@ -2149,7 +2149,7 @@ Dhcp6HandleReplyMsg ( Instance->UdpSts =3D EFI_SUCCESS; =20 // - // For async, signal the Ia event to inform Ia infomation update. + // For async, signal the Ia event to inform Ia information update. // if (Instance->Config->IaInfoEvent !=3D NULL) { gBS->SignalEvent (Instance->Config->IaInfoEvent); @@ -2212,14 +2212,14 @@ Dhcp6HandleReplyMsg ( =20 // // Maybe this is a new round DHCP process due to some reason, such a= s NotOnLink - // ReplyMsg for ConfirmMsg should triger new round to acquire new ad= dress. In that + // ReplyMsg for ConfirmMsg should trigger new round to acquire new a= ddress. In that // case, clear old address.ValidLifetime and append to new address. = Therefore, DHCP // consumers can be notified to flush old address. // Dhcp6AppendCacheIa (Instance); =20 // - // For async, signal the Ia event to inform Ia infomation update. + // For async, signal the Ia event to inform Ia information update. // if (Instance->Config->IaInfoEvent !=3D NULL) { gBS->SignalEvent (Instance->Config->IaInfoEvent); @@ -2430,7 +2430,7 @@ Dhcp6HandleAdvertiseMsg ( =20 // // If the client does receives a valid reply message that includes a rap= id - // commit option since a solicit with rapid commit optioin sent before, = select + // commit option since a solicit with rapid commit option sent before, s= elect // this reply message. Or else, process the advertise messages as normal= . // See details in the section-17.1.4 of rfc-3315. // diff --git a/NetworkPkg/Dhcp6Dxe/Dhcp6Utility.c b/NetworkPkg/Dhcp6Dxe/Dhcp6= Utility.c index a8a938211572..d249a1cca7a1 100644 --- a/NetworkPkg/Dhcp6Dxe/Dhcp6Utility.c +++ b/NetworkPkg/Dhcp6Dxe/Dhcp6Utility.c @@ -312,7 +312,7 @@ Dhcp6CleanupModeData ( =20 @param[in] Base The base value of the time. @param[in] IsFirstRt If TRUE, it is the first time to calculate exp= ire time. - @param[in] NeedSigned If TRUE, the the signed factor is needed. + @param[in] NeedSigned If TRUE, the signed factor is needed. =20 @return Expire The calculated result for the new expire time. =20 @@ -506,7 +506,7 @@ Dhcp6DepriveAddress ( // // If release all Ia addresses, just copy the configured Ia and then s= et // its address count as zero. - // We may decline/release part of addresses at the begining. So it's a + // We may decline/release part of addresses at the beginning. So it's = a // forwarding step to update address infor for decline/release, while = the // other infor such as Ia state will be updated when receiving reply. // @@ -995,7 +995,7 @@ Dhcp6SeekIaOption ( =20 /** Check whether the incoming IPv6 address in IaAddr is one of the maintain= ed - addresses in the IA control blcok. + addresses in the IA control block. =20 @param[in] IaAddr The pointer to the IA Address to be checke= d. @param[in] CurrentIa The pointer to the IA in IA control block. @@ -1023,9 +1023,9 @@ Dhcp6AddrIsInCurrentIa ( } =20 /** - Parse the address option and update the address infomation. + Parse the address option and update the address information. =20 - @param[in] CurrentIa The pointer to the Ia Address in control b= lcok. + @param[in] CurrentIa The pointer to the Ia Address in control b= lock. @param[in] IaInnerOpt The pointer to the buffer. @param[in] IaInnerLen The length to parse. @param[out] AddrNum The number of addresses. @@ -1107,7 +1107,7 @@ Dhcp6ParseAddrOption ( =20 =20 /** - Create a control blcok for the Ia according to the corresponding options= . + Create a control block for the Ia according to the corresponding options= . =20 @param[in] Instance The pointer to DHCP6 Instance. @param[in] IaInnerOpt The pointer to the inner options in th= e Ia option. @@ -1229,7 +1229,7 @@ Dhcp6CacheIa ( } =20 /** - Append CacheIa to the currrent IA. Meanwhile, clear CacheIa.ValidLifetim= e to 0. + Append CacheIa to the current IA. Meanwhile, clear CacheIa.ValidLifetime= to 0. =20 @param[in] Instance The pointer to DHCP6 instance. =20 @@ -1285,7 +1285,7 @@ Dhcp6AppendCacheIa ( } =20 /** - Calculate the Dhcp6 get mapping timeout by adding additinal delay to the= IP6 DAD transmits count. + Calculate the Dhcp6 get mapping timeout by adding additional delay to th= e IP6 DAD transmits count. =20 @param[in] Ip6Cfg The pointer to Ip6 config protocol. @param[out] TimeOut The time out value in 100ns units. --=20 2.21.0