-/** Retrieves the given option's data (if present) from the DHCP packet's options list.
- *
- *  \param[in,out] DHCPOptionList  Pointer to the start of the DHCP packet's options list
- *  \param[in]     Option          DHCP option to retrieve to the list
- *  \param[out]    Destination     Buffer where the option's data is to be written to if found
- *
- *  \return Boolean true if the option was found in the DHCP packet's options list, false otherwise
- */
-static bool DHCPClientApp_GetOption(const uint8_t* DHCPOptionList,
-                                    const uint8_t Option,
-                                    void* const Destination)
-{
-       /* Look through the incoming DHCP packet's options list for the requested option */
-       while (*DHCPOptionList != DHCP_OPTION_END)
-       {
-               /* Check if the current DHCP option in the packet is the one requested */
-               if (DHCPOptionList[0] == Option)
-               {
-                       /* Copy request option's data to the destination buffer */
-                       memcpy(Destination, &DHCPOptionList[2], DHCPOptionList[1]);
-                       
-                       /* Indicate that the requested option data was successfully retrieved */
-                       return true;
-               }
-               
-               /* Skip to next DHCP option in the options list */
-               DHCPOptionList += (DHCPOptionList[1] + 2);
-       }
-       
-       /* Requested option not found in the incoming packet's DHCP options list */
-       return false;
-}