@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
@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
}\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
}\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
@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
@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
@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
@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
Item->DnsCache.Timeout = DnsCacheEntry.Timeout;\r
\r
return EFI_SUCCESS;\r
- }else {\r
+ } else {\r
return EFI_ACCESS_DENIED;\r
}\r
}\r
Item->DnsCache.Timeout = DnsCacheEntry.Timeout;\r
\r
return EFI_SUCCESS;\r
- }else {\r
+ } else {\r
return EFI_ACCESS_DENIED;\r
}\r
}\r
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
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
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
//\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
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
}\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
}\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
}\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