mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-06-16 09:53:45 +08:00
contrib/addons: Add example of using DHCP extra options hooks
This commit is contained in:
committed by
Simon Goldschmidt
parent
f50c87da6f
commit
187e4ededd
5
contrib/addons/dhcp_extra_opts/README
Normal file
5
contrib/addons/dhcp_extra_opts/README
Normal file
@@ -0,0 +1,5 @@
|
||||
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.
|
||||
Reference in New Issue
Block a user