]> git.proxmox.com Git - mirror_edk2.git/commitdiff
NetworkPkg/Dhcp4Dxe: Fix various typos
authorAntoine Coeur <coeur@gmx.fr>
Fri, 7 Feb 2020 01:07:44 +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-32-philmd@redhat.com>

NetworkPkg/Dhcp4Dxe/Dhcp4Driver.c
NetworkPkg/Dhcp4Dxe/Dhcp4Driver.h
NetworkPkg/Dhcp4Dxe/Dhcp4Impl.c
NetworkPkg/Dhcp4Dxe/Dhcp4Io.c
NetworkPkg/Dhcp4Dxe/Dhcp4Io.h
NetworkPkg/Dhcp4Dxe/Dhcp4Option.c
NetworkPkg/Dhcp4Dxe/Dhcp4Option.h

index e891b68883070733d0e419a97c8e7e32c5c2c202..970141abfe3a2c00fab925174a8f860b4dbe4f1b 100644 (file)
@@ -326,7 +326,7 @@ Dhcp4DriverBindingStart (
   }\r
 \r
   //\r
-  // Install the Dhcp4ServiceBinding Protocol onto ControlerHandle\r
+  // Install the Dhcp4ServiceBinding Protocol onto ControllerHandle\r
   //\r
   Status = gBS->InstallMultipleProtocolInterfaces (\r
                   &ControllerHandle,\r
@@ -438,7 +438,7 @@ Dhcp4DriverBindingStop (
   DhcpSb = DHCP_SERVICE_FROM_THIS (ServiceBinding);\r
   if (!IsListEmpty (&DhcpSb->Children)) {\r
     //\r
-    // Destroy all the children instances before destory the service.\r
+    // Destroy all the children instances before destroy the service.\r
     //\r
     List = &DhcpSb->Children;\r
     Status = NetDestroyLinkList (\r
@@ -523,7 +523,7 @@ DhcpInitProtocol (
                       then a new handle is created. If it is a pointer to an existing UEFI handle,\r
                       then the protocol is added to the existing UEFI handle.\r
 \r
-  @retval EFI_SUCCES            The protocol was added to ChildHandle.\r
+  @retval EFI_SUCCESS           The protocol was added to ChildHandle.\r
   @retval EFI_INVALID_PARAMETER ChildHandle is NULL.\r
   @retval EFI_OUT_OF_RESOURCES  There are not enough resources available to create\r
                                 the child\r
@@ -617,7 +617,7 @@ Dhcp4ServiceBindingCreateChild (
   @param  This        Pointer to the EFI_SERVICE_BINDING_PROTOCOL instance.\r
   @param  ChildHandle Handle of the child to destroy\r
 \r
-  @retval EFI_SUCCES            The protocol was removed from ChildHandle.\r
+  @retval EFI_SUCCESS           The protocol was removed from ChildHandle.\r
   @retval EFI_UNSUPPORTED       ChildHandle does not support the protocol that is being removed.\r
   @retval EFI_INVALID_PARAMETER Child handle is NULL.\r
   @retval EFI_ACCESS_DENIED     The protocol could not be removed from the ChildHandle\r
index cebde20dca5bace9c2adaaef752307dffc4c31af..f6370582cbd15363448f25790bcea95b8cff7a0d 100644 (file)
@@ -104,7 +104,7 @@ Dhcp4DriverBindingStop (
                       then a new handle is created. If it is a pointer to an existing UEFI handle,\r
                       then the protocol is added to the existing UEFI handle.\r
 \r
-  @retval EFI_SUCCES            The protocol was added to ChildHandle.\r
+  @retval EFI_SUCCESS           The protocol was added to ChildHandle.\r
   @retval EFI_INVALID_PARAMETER ChildHandle is NULL.\r
   @retval EFI_OUT_OF_RESOURCES  There are not enough resources available to create\r
                                 the child\r
@@ -128,7 +128,7 @@ Dhcp4ServiceBindingCreateChild (
   @param  This        Pointer to the EFI_SERVICE_BINDING_PROTOCOL instance.\r
   @param  ChildHandle Handle of the child to destroy\r
 \r
-  @retval EFI_SUCCES            The protocol was removed from ChildHandle.\r
+  @retval EFI_SUCCESS           The protocol was removed from ChildHandle.\r
   @retval EFI_UNSUPPORTED       ChildHandle does not support the protocol that is being removed.\r
   @retval EFI_INVALID_PARAMETER Child handle is NULL.\r
   @retval EFI_ACCESS_DENIED     The protocol could not be removed from the ChildHandle\r
index 0b35bdf4df95b51339dcf63c0c1b032cb450420d..82905337908d298c1bbe1fedb2c0261f1183b82d 100644 (file)
@@ -64,7 +64,7 @@ EfiDhcp4GetModeData (
                                 not NULL. Otherwise, the state was left unchanged.\r
   @retval EFI_ACCESS_DENIED     This instance of the EFI DHCPv4 Protocol driver was not in the\r
                                 Dhcp4Stopped, Dhcp4Init, Dhcp4InitReboot, or Dhcp4Bound state;\r
-                                Or onother instance of this EFI DHCPv4 Protocol driver is already\r
+                                Or another instance of this EFI DHCPv4 Protocol driver is already\r
                                 in a valid configured state.\r
   @retval EFI_INVALID_PARAMETER Some parameter is NULL.\r
   @retval EFI_OUT_OF_RESOURCES  Required system resources could not be allocated.\r
@@ -611,7 +611,7 @@ DhcpYieldControl (
                                 not NULL. Otherwise, the state was left unchanged.\r
   @retval EFI_ACCESS_DENIED     This instance of the EFI DHCPv4 Protocol driver was not in the\r
                                 Dhcp4Stopped, Dhcp4Init, Dhcp4InitReboot, or Dhcp4Bound state;\r
-                                Or onother instance of this EFI DHCPv4 Protocol driver is already\r
+                                Or another instance of this EFI DHCPv4 Protocol driver is already\r
                                 in a valid configured state.\r
   @retval EFI_INVALID_PARAMETER Some parameter is NULL.\r
   @retval EFI_OUT_OF_RESOURCES  Required system resources could not be allocated.\r
@@ -805,7 +805,7 @@ EfiDhcp4Start (
   }\r
 \r
   //\r
-  // Check Media Satus.\r
+  // Check Media Status.\r
   //\r
   MediaStatus = EFI_SUCCESS;\r
   NetLibDetectMediaWaitTimeout (DhcpSb->Controller, DHCP_CHECK_MEDIA_WAITING_TIME, &MediaStatus);\r
index 4728b94c5803110d05bb2209032ef28643183841..34c72d690a313c8cd1b5956bdbbaf5436bb1b3ef 100644 (file)
@@ -604,7 +604,7 @@ DhcpEndSession (
                                     is, all the option value that we care.\r
 \r
   @retval EFI_SUCCESS           The packet is successfully processed.\r
-  @retval Others                Some error occured.\r
+  @retval Others                Some error occurred.\r
 \r
 **/\r
 EFI_STATUS\r
@@ -632,7 +632,7 @@ DhcpHandleSelect (
 \r
   //\r
   // Call the user's callback. The action according to the return is as:\r
-  // 1. EFI_SUCESS: stop waiting for more offers, select the offer now\r
+  // 1. EFI_SUCCESS: stop waiting for more offers, select the offer now\r
   // 2. EFI_NOT_READY: wait for more offers\r
   // 3. EFI_ABORTED: abort the address acquiring.\r
   //\r
@@ -679,7 +679,7 @@ ON_EXIT:
                                     is, all the option value that we care.\r
 \r
   @retval EFI_SUCCESS           The packet is successfully processed.\r
-  @retval Others                Some error occured.\r
+  @retval Others                Some error occurred.\r
 \r
 **/\r
 EFI_STATUS\r
@@ -772,7 +772,7 @@ ON_EXIT:
                                     is, all the option value that we care.\r
 \r
   @retval EFI_SUCCESS           The packet is successfully processed.\r
-  @retval Others                Some error occured.\r
+  @retval Others                Some error occurred.\r
 \r
 **/\r
 EFI_STATUS\r
@@ -856,7 +856,7 @@ ON_EXIT:
                                     is, all the option value that we care.\r
 \r
   @retval EFI_SUCCESS           The packet is successfully processed.\r
-  @retval Others                Some error occured.\r
+  @retval Others                Some error occurred.\r
 \r
 **/\r
 EFI_STATUS\r
@@ -1473,7 +1473,7 @@ DhcpRetransmit (
 /**\r
   Each DHCP service has three timer. Two of them are count down timer.\r
   One for the packet retransmission. The other is to collect the offers.\r
-  The third timer increaments the lease life which is compared to T1, T2,\r
+  The third timer increments the lease life which is compared to T1, T2,\r
   and lease to determine the time to renew and rebind the lease.\r
   DhcpOnTimerTick will be called once every second.\r
 \r
index 01283e5e17b940045085121a65859653a3b78c2d..0dd6b46b87d0caa094aba1317715dbfe8d8abb5e 100644 (file)
@@ -108,7 +108,7 @@ DhcpSendMessage (
 /**\r
   Each DHCP service has three timer. Two of them are count down timer.\r
   One for the packet retransmission. The other is to collect the offers.\r
-  The third timer increaments the lease life which is compared to T1, T2,\r
+  The third timer increments the lease life which is compared to T1, T2,\r
   and lease to determine the time to renew and rebind the lease.\r
   DhcpOnTimerTick will be called once every second.\r
 \r
index 3b077de111779d4e79bb806ef6c86c631b66d6c5..37a63022c55f6207f8f9a8525ed99f28efc090e5 100644 (file)
@@ -195,7 +195,7 @@ DhcpOptionIsValid (
   }\r
 \r
   //\r
-  // Validate the occurance of the option unit is with in [MinOccur, MaxOccur]\r
+  // Validate the occurrence of the option unit is with in [MinOccur, MaxOccur]\r
   //\r
   Occur = Len / Unit;\r
 \r
@@ -230,7 +230,7 @@ DhcpOptionIsValid (
   @param[out] Para                   The variable to save the interested parameter\r
 \r
   @retval EFI_SUCCESS            The DHCP option is successfully extracted.\r
-  @retval EFI_INVALID_PARAMETER  The DHCP option is malformatted\r
+  @retval EFI_INVALID_PARAMETER  The DHCP option is mal-formatted\r
 \r
 **/\r
 EFI_STATUS\r
@@ -303,7 +303,7 @@ DhcpGetParameter (
                                      option.\r
 \r
   @retval EFI_SUCCESS            All the options are valid\r
-  @retval EFI_INVALID_PARAMETER  The options are malformatted.\r
+  @retval EFI_INVALID_PARAMETER  The options are mal-formatted.\r
 \r
 **/\r
 EFI_STATUS\r
@@ -376,8 +376,8 @@ DhcpIterateBufferOptions (
                                      found\r
   @param[in]  Context                The opaque parameter for Check\r
 \r
-  @retval EFI_SUCCESS            The DHCP packet's options are well formated\r
-  @retval EFI_INVALID_PARAMETER  The DHCP packet's options are not well formated\r
+  @retval EFI_SUCCESS            The DHCP packet's options are well formatted\r
+  @retval EFI_INVALID_PARAMETER  The DHCP packet's options are not well formatted\r
 \r
 **/\r
 EFI_STATUS\r
@@ -438,7 +438,7 @@ DhcpIterateOptions (
 \r
 /**\r
   Call back function to DhcpIterateOptions to compute each option's\r
-  length. It just adds the data length of all the occurances of this\r
+  length. It just adds the data length of all the occurrences of this\r
   Tag. Context is an array of 256 DHCP_OPTION_COUNT.\r
 \r
   @param[in]  Tag                    The current option to check\r
@@ -473,7 +473,7 @@ DhcpGetOptionLen (
 \r
   @param[in]  Tag                    The option to consolidate its data\r
   @param[in]  Len                    The length of option data\r
-  @param[in]  Data                   The data of the option's current occurance\r
+  @param[in]  Data                   The data of the option's current occurrence\r
   @param[in]  Context                The context, which is DHCP_OPTION_CONTEXT. This\r
                                      array is  just a wrap to pass THREE parameters.\r
 \r
@@ -517,8 +517,8 @@ DhcpFillOption (
 /**\r
   Parse the options of a DHCP packet. It supports RFC 3396: Encoding\r
   Long Options in DHCP. That is, it will combine all the option value\r
-  of all the occurances of each option.\r
-  A little bit of implemenation:\r
+  of all the occurrences of each option.\r
+  A little bit of implementation:\r
   It adopts the "Key indexed counting" algorithm. First, it allocates\r
   an array of 256 DHCP_OPTION_COUNTs because DHCP option tag is encoded\r
   as a UINT8. It then iterates the DHCP packet to get data length of\r
@@ -538,7 +538,7 @@ DhcpFillOption (
 \r
   @retval EFI_NOT_FOUND          Cannot find any option.\r
   @retval EFI_OUT_OF_RESOURCES   Failed to allocate memory to parse the packet.\r
-  @retval EFI_INVALID_PARAMETER  The options are malformatted\r
+  @retval EFI_INVALID_PARAMETER  The options are mal-formatted\r
   @retval EFI_SUCCESS            The options are parsed into OptionPoint\r
 \r
 **/\r
@@ -639,7 +639,7 @@ ON_EXIT:
   @param[out] Para                   The variable to save the DHCP parameters.\r
 \r
   @retval EFI_OUT_OF_RESOURCES   Failed to allocate memory to validate the packet.\r
-  @retval EFI_INVALID_PARAMETER  The options are malformatted\r
+  @retval EFI_INVALID_PARAMETER  The options are mal-formatted\r
   @retval EFI_SUCCESS            The options are parsed into OptionPoint\r
 \r
 **/\r
@@ -770,7 +770,7 @@ DhcpAppendOption (
                                      function.\r
 \r
   @retval EFI_OUT_OF_RESOURCES   Failed to allocate memory\r
-  @retval EFI_INVALID_PARAMETER  The options in SeekPacket are malformatted\r
+  @retval EFI_INVALID_PARAMETER  The options in SeekPacket are mal-formatted\r
   @retval EFI_SUCCESS            The packet is build.\r
 \r
 **/\r
@@ -794,7 +794,7 @@ DhcpBuild (
   UINT8                     *Buf;\r
 \r
   //\r
-  // Use an array of DHCP_OPTION to mark the existance\r
+  // Use an array of DHCP_OPTION to mark the existence\r
   // and position of each valid options.\r
   //\r
   Mark = AllocatePool (sizeof (DHCP_OPTION) * DHCP_MAX_OPTIONS);\r
index 393176c8996d48c0c135f65065383748b32f2d31..a58bb1b0baa8cdd9ef3a2186b1e618270a1d3037 100644 (file)
@@ -81,9 +81,9 @@ typedef struct {
 ///\r
 /// Structure used to describe and validate the format of DHCP options.\r
 /// Type is the options' data type, such as DHCP_OPTION_INT8. MinOccur\r
-/// is the minium occurance of this data type. MaxOccur is defined\r
+/// is the minimum occurrence of this data type. MaxOccur is defined\r
 /// similarly. If MaxOccur is -1, it means that there is no limit on the\r
-/// maximum occurance. Alert tells whether DHCP client should further\r
+/// maximum occurrence. Alert tells whether DHCP client should further\r
 /// inspect the option to parse DHCP_PARAMETER.\r
 ///\r
 typedef struct {\r
@@ -114,8 +114,8 @@ EFI_STATUS
                                      found\r
   @param[in]  Context                The opaque parameter for Check\r
 \r
-  @retval EFI_SUCCESS            The DHCP packet's options are well formated\r
-  @retval EFI_INVALID_PARAMETER  The DHCP packet's options are not well formated\r
+  @retval EFI_SUCCESS            The DHCP packet's options are well formatted\r
+  @retval EFI_INVALID_PARAMETER  The DHCP packet's options are not well formatted\r
 \r
 **/\r
 EFI_STATUS\r
@@ -133,7 +133,7 @@ DhcpIterateOptions (
   @param[out] Para                   The variable to save the DHCP parameters.\r
 \r
   @retval EFI_OUT_OF_RESOURCES   Failed to allocate memory to validate the packet.\r
-  @retval EFI_INVALID_PARAMETER  The options are malformatted\r
+  @retval EFI_INVALID_PARAMETER  The options are mal-formatted\r
   @retval EFI_SUCCESS            The options are parsed into OptionPoint\r
 \r
 **/\r
@@ -146,8 +146,8 @@ DhcpValidateOptions (
 /**\r
   Parse the options of a DHCP packet. It supports RFC 3396: Encoding\r
   Long Options in DHCP. That is, it will combine all the option value\r
-  of all the occurances of each option.\r
-  A little bit of implemenation:\r
+  of all the occurrences of each option.\r
+  A little bit of implementation:\r
   It adopts the "Key indexed counting" algorithm. First, it allocates\r
   an array of 256 DHCP_OPTION_COUNTs because DHCP option tag is encoded\r
   as a UINT8. It then iterates the DHCP packet to get data length of\r
@@ -167,7 +167,7 @@ DhcpValidateOptions (
 \r
   @retval EFI_NOT_FOUND          Cannot find any option.\r
   @retval EFI_OUT_OF_RESOURCES   Failed to allocate memory to parse the packet.\r
-  @retval EFI_INVALID_PARAMETER  The options are malformatted\r
+  @retval EFI_INVALID_PARAMETER  The options are mal-formatted\r
   @retval EFI_SUCCESS            The options are parsed into OptionPoint\r
 \r
 **/\r
@@ -211,7 +211,7 @@ DhcpAppendOption (
                                      function.\r
 \r
   @retval EFI_OUT_OF_RESOURCES   Failed to allocate memory\r
-  @retval EFI_INVALID_PARAMETER  The options in SeekPacket are malformatted\r
+  @retval EFI_INVALID_PARAMETER  The options in SeekPacket are mal-formatted\r
   @retval EFI_SUCCESS            The packet is build.\r
 \r
 **/\r