uCBQN/build/picoSubmodule/lib/lwip/contrib/addons/dhcp_extra_opts
2026-02-07 16:25:12 +01:00
..
dhcp_extra_opts.c initial commit to the microcontroller port. changes to build system and syfns. 2026-02-07 16:25:12 +01:00
dhcp_extra_opts.h initial commit to the microcontroller port. changes to build system and syfns. 2026-02-07 16:25:12 +01:00
README initial commit to the microcontroller port. changes to build system and syfns. 2026-02-07 16:25:12 +01:00

A simple example of using LWIP_HOOK_DHCP_PARSE/APPEND_OPTION hooks to implement:
* DHCP_OPTION_MTU (option 26) to update the netif's MTU
* DHCP_OPTION_CLIENT_ID (option 61) to advertize client's HW id of LWIP_IANA_HWTYPE_ETHERNET type

Please follow the instructions in dhcp_extra_opts.h to add the hooks, definitions in lwipopts.h and enabling the extra options.