]> git.proxmox.com Git - mirror_edk2.git/blobdiff - NetworkPkg/DnsDxe/DnsImpl.c
NetworkPkg/DnsDxe: cosmetic fixups
[mirror_edk2.git] / NetworkPkg / DnsDxe / DnsImpl.c
index ca4ef506a08a88085a7a232de4e7d973e3d73c6b..2edcb280ac4d3b41fe8da8cd37e90626e86c0d25 100644 (file)
@@ -14,7 +14,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
   @param[in] TokenMap          All DNSv4 Token entrys.\r
   @param[in] TokenEntry        TokenEntry need to be removed.\r
 \r
-  @retval EFI_SUCCESS          Remove TokenEntry from TokenMap sucessfully.\r
+  @retval EFI_SUCCESS          Remove TokenEntry from TokenMap successfully.\r
   @retval EFI_NOT_FOUND        TokenEntry is not found in TokenMap.\r
 \r
 **/\r
@@ -49,7 +49,7 @@ Dns4RemoveTokenEntry (
   @param[in] TokenMap           All DNSv6 Token entrys.\r
   @param[in] TokenEntry         TokenEntry need to be removed.\r
 \r
-  @retval EFI_SUCCESS           Remove TokenEntry from TokenMap sucessfully.\r
+  @retval EFI_SUCCESS           Remove TokenEntry from TokenMap successfully.\r
   @retval EFI_NOT_FOUND         TokenEntry is not found in TokenMap.\r
 \r
 **/\r
@@ -79,7 +79,7 @@ Dns6RemoveTokenEntry (
 }\r
 \r
 /**\r
-  This function cancle the token specified by Arg in the Map.\r
+  This function cancel the token specified by Arg in the Map.\r
 \r
   @param[in]  Map             Pointer to the NET_MAP.\r
   @param[in]  Item            Pointer to the NET_MAP_ITEM.\r
@@ -139,7 +139,7 @@ Dns4CancelTokens (
 }\r
 \r
 /**\r
-  This function cancle the token specified by Arg in the Map.\r
+  This function cancel the token specified by Arg in the Map.\r
 \r
   @param[in]  Map             Pointer to the NET_MAP.\r
   @param[in]  Item            Pointer to the NET_MAP_ITEM.\r
@@ -205,7 +205,7 @@ Dns6CancelTokens (
   @param[in]  Token               Pointer to the token to be get.\r
   @param[out] TokenEntry          Pointer to TokenEntry corresponding Token.\r
 \r
-  @retval EFI_SUCCESS             Get the TokenEntry from the TokensMap sucessfully.\r
+  @retval EFI_SUCCESS             Get the TokenEntry from the TokensMap successfully.\r
   @retval EFI_NOT_FOUND           TokenEntry is not found in TokenMap.\r
 \r
 **/\r
@@ -241,7 +241,7 @@ GetDns4TokenEntry (
   @param[in]  Token               Pointer to the token to be get.\r
   @param[out] TokenEntry          Pointer to TokenEntry corresponding Token.\r
 \r
-  @retval EFI_SUCCESS             Get the TokenEntry from the TokensMap sucessfully.\r
+  @retval EFI_SUCCESS             Get the TokenEntry from the TokensMap successfully.\r
   @retval EFI_NOT_FOUND           TokenEntry is not found in TokenMap.\r
 \r
 **/\r
@@ -530,7 +530,7 @@ DnsDummyExtFree (
   @param  UdpCfgData             The UDP configure data to reconfigure the UDP_IO\r
 \r
   @retval TRUE                   The default address is retrieved and UDP is reconfigured.\r
-  @retval FALSE                  Some error occured.\r
+  @retval FALSE                  Some error occurred.\r
 \r
 **/\r
 BOOLEAN\r
@@ -582,7 +582,7 @@ Dns4GetMapping (
   @param  UdpCfgData             The UDP configure data to reconfigure the UDP_IO\r
 \r
   @retval TRUE                   Configure the Udp6 instance successfully.\r
-  @retval FALSE                  Some error occured.\r
+  @retval FALSE                  Some error occurred.\r
 \r
 **/\r
 BOOLEAN\r
@@ -799,7 +799,7 @@ UpdateDns4Cache (
         Item->DnsCache.Timeout = DnsCacheEntry.Timeout;\r
 \r
         return EFI_SUCCESS;\r
-      }else {\r
+      } else {\r
         return EFI_ACCESS_DENIED;\r
       }\r
     }\r
@@ -897,7 +897,7 @@ UpdateDns6Cache (
         Item->DnsCache.Timeout = DnsCacheEntry.Timeout;\r
 \r
         return EFI_SUCCESS;\r
-      }else {\r
+      } else {\r
         return EFI_ACCESS_DENIED;\r
       }\r
     }\r
@@ -1080,7 +1080,7 @@ IsValidDnsResponse (
   NET_LIST_FOR_EACH (Entry, &TokensMap->Used) {\r
     *Item = NET_LIST_USER_STRUCT (Entry, NET_MAP_ITEM, Link);\r
     Packet = (NET_BUF *) ((*Item)->Value);\r
-    if (Packet == NULL){\r
+    if (Packet == NULL) {\r
 \r
       continue;\r
     } else {\r
@@ -1179,7 +1179,7 @@ ParseDnsResponse (
   RemainingLength  = Length;\r
 \r
   //\r
-  // Check whether the remaining packet length is avaiable or not.\r
+  // Check whether the remaining packet length is available or not.\r
   //\r
   if (RemainingLength <= sizeof (DNS_HEADER)) {\r
     *Completed = FALSE;\r
@@ -1217,7 +1217,7 @@ ParseDnsResponse (
   QueryNameLen = (UINT32) AsciiStrLen (QueryName) + 1;\r
 \r
   //\r
-  // Check whether the remaining packet length is avaiable or not.\r
+  // Check whether the remaining packet length is available or not.\r
   //\r
   if (RemainingLength <= QueryNameLen + sizeof (DNS_QUERY_SECTION)) {\r
     *Completed = FALSE;\r
@@ -1376,7 +1376,7 @@ ParseDnsResponse (
   //\r
   while (AnswerSectionNum < DnsHeader->AnswersNum) {\r
     //\r
-    // Check whether the remaining packet length is avaiable or not.\r
+    // Check whether the remaining packet length is available or not.\r
     //\r
     if (RemainingLength <= sizeof (UINT16) + sizeof (DNS_ANSWER_SECTION)) {\r
       *Completed = FALSE;\r
@@ -1404,7 +1404,7 @@ ParseDnsResponse (
     AnswerSection->DataLength = NTOHS (AnswerSection->DataLength);\r
 \r
     //\r
-    // Check whether the remaining packet length is avaiable or not.\r
+    // Check whether the remaining packet length is available or not.\r
     //\r
     if (RemainingLength < AnswerSection->DataLength) {\r
       *Completed = FALSE;\r
@@ -2101,7 +2101,7 @@ DnsOnTimerRetransmit (
         }\r
 \r
         //\r
-        // Retransmit the packet if haven't reach the maxmium retry count,\r
+        // Retransmit the packet if haven't reach the maximum retry count,\r
         // otherwise exit the transfer.\r
         //\r
         if (++Dns4TokenEntry->RetryCounting <= Dns4TokenEntry->Token->RetryCount) {\r
@@ -2127,7 +2127,7 @@ DnsOnTimerRetransmit (
         }\r
       }\r
     }\r
-  }else {\r
+  } else {\r
     //\r
     // Iterate through all the children of the DNS service instance. Time\r
     // out the packet. If maximum retries reached, clean the Token up.\r
@@ -2145,7 +2145,7 @@ DnsOnTimerRetransmit (
         }\r
 \r
         //\r
-        // Retransmit the packet if haven't reach the maxmium retry count,\r
+        // Retransmit the packet if haven't reach the maximum retry count,\r
         // otherwise exit the transfer.\r
         //\r
         if (++Dns6TokenEntry->RetryCounting <= Dns6TokenEntry->Token->RetryCount) {\r