]> git.proxmox.com Git - mirror_edk2.git/blobdiff - NetworkPkg/Dhcp4Dxe/Dhcp4Option.c
NetworkPkg/Dhcp4Dxe: Fix various typos
[mirror_edk2.git] / NetworkPkg / Dhcp4Dxe / Dhcp4Option.c
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