-/** Sets the given DHCP option in the DHCP packet's option list. This automatically moves the
- *  end of options terminator past the new option in the options list.
- *
- *  \param[in,out] DHCPOptionList  Pointer to the start of the DHCP packet's options list
- *  \param[in]     Option          DHCP option to add to the list
- *  \param[in]     DataLen         Size in bytes of the option data to add
- *  \param[in]     OptionData      Buffer where the option's data is to be sourced from
- *
- *  \return Number of bytes added to the DHCP packet
- */
-static uint8_t DHCPClientApp_SetOption(uint8_t* DHCPOptionList, uint8_t Option, uint8_t DataLen, void* OptionData)
-{
-       /* Skip through the DHCP options list until the terminator option is found */
-       while (*DHCPOptionList != DHCP_OPTION_END)
-         DHCPOptionList += (DHCPOptionList[1] + 2);
-
-       /* Overwrite the existing terminator with the new option, add a new terminator at the end of the list */
-       DHCPOptionList[0] = Option;
-       DHCPOptionList[1] = DataLen;
-       memcpy(&DHCPOptionList[2], OptionData, DataLen);
-       DHCPOptionList[2 + DataLen] = DHCP_OPTION_END;
-