}\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
@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
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
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
\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
\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
/**\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
\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
@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
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
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