@param[out] Para The variable to save the interested parameter\r
\r
@retval EFI_SUCCESS The DHCP option is successfully extracted.\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_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
@param[in] Context The context, which is DHCP_OPTION_CONTEXT. This\r
array is just a wrap to pass THREE parameters.\r
\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
/**\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
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
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
\r
@retval EFI_NOT_FOUND Cannot find any option.\r
@retval EFI_OUT_OF_RESOURCES Failed to allocate memory to parse the packet.\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
@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
// and position of each valid options.\r
//\r
Mark = AllocatePool (sizeof (DHCP_OPTION) * DHCP_MAX_OPTIONS);\r
// and position of each valid options.\r
//\r
Mark = AllocatePool (sizeof (DHCP_OPTION) * DHCP_MAX_OPTIONS);\r