lwip: Implement DHCP hook supporting MTU option

This commit is contained in:
David Cermak
2022-03-25 20:13:20 +01:00
parent 5aa3be11fd
commit 1564e8d5a9
3 changed files with 34 additions and 0 deletions

View File

@@ -358,6 +358,11 @@ static inline uint32_t timeout_from_offered(uint32_t lease, uint32_t min)
#define DHCP_CALC_TIMEOUT_FROM_OFFERED_T2_REBIND(dhcp) \
timeout_from_offered((dhcp)->offered_t2_rebind, ((dhcp)->t0_timeout/8)*7 /* 87.5% */ )
#define LWIP_HOOK_DHCP_PARSE_OPTION(netif, dhcp, state, msg, msg_type, option, len, pbuf, offset) \
do { LWIP_UNUSED_ARG(msg); \
dhcp_parse_extra_opts(dhcp, state, option, len, pbuf, offset); \
} while(0)
/*
------------------------------------
---------- AUTOIP options ----------