mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 20:24:32 +02:00
modify dhcp offer MTU to 1500
This commit is contained in:
@@ -373,13 +373,8 @@ static u8_t *add_offer_options(u8_t *optptr)
|
|||||||
|
|
||||||
*optptr++ = DHCP_OPTION_INTERFACE_MTU;
|
*optptr++ = DHCP_OPTION_INTERFACE_MTU;
|
||||||
*optptr++ = 2;
|
*optptr++ = 2;
|
||||||
#ifdef CLASS_B_NET
|
|
||||||
*optptr++ = 0x05;
|
*optptr++ = 0x05;
|
||||||
*optptr++ = 0xdc;
|
*optptr++ = 0xdc;
|
||||||
#else
|
|
||||||
*optptr++ = 0x02;
|
|
||||||
*optptr++ = 0x40;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
*optptr++ = DHCP_OPTION_PERFORM_ROUTER_DISCOVERY;
|
*optptr++ = DHCP_OPTION_PERFORM_ROUTER_DISCOVERY;
|
||||||
*optptr++ = 1;
|
*optptr++ = 1;
|
||||||
|
Reference in New Issue
Block a user