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.2133.1578044479202098419 for ; Fri, 03 Jan 2020 01:41:19 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=JLCmXyrm; 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=1578044478; 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=8txhne86HXH6SUfY72ktTMjP8kzAjGnhg5qQr+d8Le0=; b=JLCmXyrmAgUn7zI3nYFZmOsH1UMwL4kM97ilJIrIsZRMf52jZ/vJ1tvRadff1x6uPTE/Gt bmG42K6twAosMZ48ygN1ixdLSe8+TLMn/c7YxSgI6DeQS1uoSJiZzoBPn2Ci8LWOLH+/Tz mpAqLqAfSjgZUgo/W4cEoc4GMfQCPiQ= 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-351-8OAQks0nMbyd5nfcCdYi7Q-1; Fri, 03 Jan 2020 04:41:15 -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 B32F1DBE6; Fri, 3 Jan 2020 09:41:13 +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 124B960C18; Fri, 3 Jan 2020 09:41:11 +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 51/78] NetworkPkg/Udp6Dxe: Fix various typos Date: Fri, 3 Jan 2020 10:07:45 +0100 Message-Id: <20200103090812.10592-52-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: 8OAQks0nMbyd5nfcCdYi7Q-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/Udp6Dxe/Udp6Driver.h | 6 +++--- NetworkPkg/Udp6Dxe/Udp6Impl.h | 12 ++++++------ NetworkPkg/Udp6Dxe/Udp6Driver.c | 8 ++++---- NetworkPkg/Udp6Dxe/Udp6Impl.c | 18 +++++++++--------- NetworkPkg/Udp6Dxe/Udp6Main.c | 12 ++++++------ 5 files changed, 28 insertions(+), 28 deletions(-) diff --git a/NetworkPkg/Udp6Dxe/Udp6Driver.h b/NetworkPkg/Udp6Dxe/Udp6Drive= r.h index a08623979e86..577cebd5b1fd 100644 --- a/NetworkPkg/Udp6Dxe/Udp6Driver.h +++ b/NetworkPkg/Udp6Dxe/Udp6Driver.h @@ -78,7 +78,7 @@ Udp6DriverBindingSupported ( @param[in] RemainingDevicePath Optional parameter use to pick a spec= ific 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_OUT_OF_RESOURCES The required system resource can't be all= ocated. @retval other This driver does not support this device. =20 @@ -132,7 +132,7 @@ Udp6DriverBindingStop ( then a new handle is created. If it is a po= inter to an existing UEFI handle, then the protocol is added to the 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 This is NULL or ChildHandle is NULL. @retval EFI_OUT_OF_RESOURCES There are not enough resources available t= o create the child. @@ -155,7 +155,7 @@ Udp6ServiceBindingCreateChild ( @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/Udp6Dxe/Udp6Impl.h b/NetworkPkg/Udp6Dxe/Udp6Impl.h index 5ccbcebfdff1..55a4b8a909be 100644 --- a/NetworkPkg/Udp6Dxe/Udp6Impl.h +++ b/NetworkPkg/Udp6Dxe/Udp6Impl.h @@ -151,7 +151,7 @@ Udp6CleanInstance ( ); =20 /** - This function intializes the new created udp instance. + This function initializes the new created udp instance. =20 @param[in] Udp6Service Pointer to the UDP6_SERVICE_DATA. @param[in, out] Instance Pointer to the un-initialized UDP6_INS= TANCE_DATA. @@ -221,7 +221,7 @@ Udp6GetModeData ( =20 @retval EFI_SUCCESS The configuration settings were set, chan= ged, or reset successfully. - @retval EFI_NO_MAPPING When the UdpConifgData.UseAnyStationAddre= ss is set + @retval EFI_NO_MAPPING When the UdpConfigData.UseAnyStationAddre= ss is set to true and there is no address availabl= e for IP6 driver to binding source address to this instance. @@ -281,12 +281,12 @@ Udp6Configure ( .FragmentBuffer fields is NULL. One or more of the Token.Packet.TxData.UdpSessionData. - DestinationAddres are not valid unicast I= Pv6 + DestinationAddress are not valid unicast = IPv6 addresses, if the UdpSessionData is not = NULL. Token.Packet.TxData.UdpSessionData. - DestinationAddres is NULL + DestinationAddress is NULL Token.Packet.TxData.UdpSessionData. - DestinatioPort is zero. + DestinationPort is zero. Token.Packet.TxData.UdpSessionData is NULL and this instance's UdpConfigData.RemoteAddress is unspecifie= d. @@ -430,7 +430,7 @@ Udp6Groups ( =20 /** This function tries to bind the udp instance according to the configured= port - allocation stragety. + allocation strategy. =20 @param[in] InstanceList Pointer to the head of the list linking t= he udp instances. diff --git a/NetworkPkg/Udp6Dxe/Udp6Driver.c b/NetworkPkg/Udp6Dxe/Udp6Drive= r.c index 5334fd17343b..6021bb36993a 100644 --- a/NetworkPkg/Udp6Dxe/Udp6Driver.c +++ b/NetworkPkg/Udp6Dxe/Udp6Driver.c @@ -117,7 +117,7 @@ Udp6DriverBindingSupported ( @param[in] RemainingDevicePath Optional parameter use to pick a spec= ific 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_OUT_OF_RESOURCES The required system resource can't be all= ocated. @retval other This driver does not support this device. =20 @@ -223,7 +223,7 @@ Udp6DestroyChildEntryInHandleBuffer ( of children is zero stop the entire b= us driver. @param[in] ChildHandleBuffer List of Child Handles to Stop. It is = optional. =20 - @retval EFI_SUCCES This driver is removed ControllerHandle. + @retval EFI_SUCCESS This driver is removed ControllerHandle. @retval EFI_DEVICE_ERROR Can't find the NicHandle from the Control= lerHandle and specified GUID. @retval other This driver was not removed from this dev= ice. =20 @@ -310,7 +310,7 @@ Udp6DriverBindingStop ( then a new handle is created. If it is a po= inter to an existing UEFI handle, then the protocol is added to the 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 This is NULL or ChildHandle is NULL. @retval EFI_OUT_OF_RESOURCES There are not enough resources available t= o create the child. @@ -443,7 +443,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. diff --git a/NetworkPkg/Udp6Dxe/Udp6Impl.c b/NetworkPkg/Udp6Dxe/Udp6Impl.c index aefcd3396c85..ba939fdbfc31 100644 --- a/NetworkPkg/Udp6Dxe/Udp6Impl.c +++ b/NetworkPkg/Udp6Dxe/Udp6Impl.c @@ -96,7 +96,7 @@ Udp6DgramRcvd ( ); =20 /** - This function cancle the token specified by Arg in the Map. + This function cancel the token specified by Arg in the Map. =20 @param[in] Map Pointer to the NET_MAP. @param[in] Item Pointer to the NET_MAP_ITEM. @@ -458,7 +458,7 @@ Udp6CheckTimeout ( =20 =20 /** - This function intializes the new created udp instance. + This function initializes the new created udp instance. =20 @param[in] Udp6Service Pointer to the UDP6_SERVICE_DATA. @param[in, out] Instance Pointer to the un-initialized UDP6_INS= TANCE_DATA. @@ -575,7 +575,7 @@ Udp6FindInstanceByPort ( =20 /** This function tries to bind the udp instance according to the configured= port - allocation stragety. + allocation strategy. =20 @param[in] InstanceList Pointer to the head of the list linking t= he udp instances. @@ -832,7 +832,7 @@ Udp6ValidateTxToken ( =20 if ((UdpSessionData->DestinationPort =3D=3D 0) && (ConfigData->RemoteP= ort =3D=3D 0)) { // - // Ambiguous; no avalaible DestinationPort for this token. + // Ambiguous; no available DestinationPort for this token. // return EFI_INVALID_PARAMETER; } @@ -841,7 +841,7 @@ Udp6ValidateTxToken ( NetIp6IsUnspecifiedAddr (&ConfigData->RemoteAddress) ) { // - // The DestinationAddress is not specificed. + // The DestinationAddress is not specified. // return EFI_INVALID_PARAMETER; } @@ -915,7 +915,7 @@ Udp6TokenExist ( pseudo HeadSum to reduce some overhead. =20 @param[in] Packet Pointer to the NET_BUF contains the udp dat= agram. - @param[in] HeadSum Checksum of the pseudo header, execpt the l= ength + @param[in] HeadSum Checksum of the pseudo header, except the l= ength field. =20 @return The 16-bit checksum of this udp datagram. @@ -1123,7 +1123,7 @@ Udp6LeaveGroup ( =20 =20 /** - This function cancle the token specified by Arg in the Map. + This function cancel the token specified by Arg in the Map. =20 @param[in] Map Pointer to the NET_MAP. @param[in] Item Pointer to the NET_MAP_ITEM. @@ -1276,7 +1276,7 @@ Udp6InstanceCancelToken ( from the received udp datagram. =20 @retval TRUE The udp datagram matches the receiving requirements of = the Instance. - @retval FALSE The udp datagram does not matche the receiving requirem= ents of the Instance. + @retval FALSE The udp datagram does not match the receiving requireme= nts of the Instance. =20 **/ BOOLEAN @@ -1814,7 +1814,7 @@ Udp6SendPortUnreach ( ); =20 // - // Set the checksum as zero, and IP6 driver will calcuate it with pseudo= header. + // Set the checksum as zero, and IP6 driver will calculate it with pseud= o header. // IcmpErrHdr->Head.Checksum =3D 0; =20 diff --git a/NetworkPkg/Udp6Dxe/Udp6Main.c b/NetworkPkg/Udp6Dxe/Udp6Main.c index 0829b7b2a697..a33eb3c8cfde 100644 --- a/NetworkPkg/Udp6Dxe/Udp6Main.c +++ b/NetworkPkg/Udp6Dxe/Udp6Main.c @@ -104,7 +104,7 @@ Udp6GetModeData ( =20 @retval EFI_SUCCESS The configuration settings were set, chan= ged, or reset successfully. - @retval EFI_NO_MAPPING When the UdpConifgData.UseAnyStationAddre= ss is set + @retval EFI_NO_MAPPING When the UdpConfigData.UseAnyStationAddre= ss is set to true and there is no address available= for the IP6 driver to bind a source address to this i= nstance. @retval EFI_INVALID_PARAMETER One or more following conditions are TRUE= : @@ -368,7 +368,7 @@ Udp6Groups ( // Keep a local copy of the configured multicast IPs because IpIo receiv= es // datagrams from the 0 station address IP instance and then UDP deliver= s to // the matched instance. This copy of multicast IPs is used to avoid rec= eive - // the mutlicast datagrams destinated to multicast IPs the other instanc= es configured. + // the multicast datagrams destinated to multicast IPs the other instanc= es configured. // if (JoinFlag) { =20 @@ -423,13 +423,13 @@ ON_EXIT: One or more of the Token.Packet.TxData.FragmentTable[].Fragm= entBuffer fields is NULL. One or more of the - Token.Packet.TxData.UdpSessionData.Destin= ationAddres + Token.Packet.TxData.UdpSessionData.Destin= ationAddress are not valid unicast IPv6 addresses if the UdpSessionData is not N= ULL. Token.Packet.TxData.UdpSessionData. DestinationAddress is NULL Token.Packet.TxData.UdpSessionData. - DestinatioPort + DestinationPort is zero. Token.Packet.TxData.UdpSessionData is NUL= L and this instance's UdpConfigData.RemoteAddress i= s unspecified. @@ -586,7 +586,7 @@ Udp6Transmit ( } } else { // - // Set the checksum is zero if the ConfigData->StationAddress is uns= pcified + // Set the checksum is zero if the ConfigData->StationAddress is uns= pecified // and the Ipv6 will fill the correct value of this checksum. // Udp6Header->Checksum =3D 0; @@ -807,7 +807,7 @@ Udp6Cancel ( OldTpl =3D gBS->RaiseTPL (TPL_CALLBACK); =20 // - // Cancle the tokens specified by Token for this instance. + // Cancel the tokens specified by Token for this instance. // Status =3D Udp6InstanceCancelToken (Instance, Token); =20 --=20 2.21.0