From: zhangyanjiao Date: Mon, 28 May 2018 11:46:46 +0000 (+0800) Subject: modify dhcp offer MTU to 1500 X-Git-Tag: v3.1-beta1~29^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1bab62a6d613b85f2c976805a409f8d25622fd16;p=esp-idf modify dhcp offer MTU to 1500 --- diff --git a/components/lwip/apps/dhcpserver.c b/components/lwip/apps/dhcpserver.c index a79d0fd638..718d22a546 100644 --- a/components/lwip/apps/dhcpserver.c +++ b/components/lwip/apps/dhcpserver.c @@ -373,13 +373,8 @@ static u8_t *add_offer_options(u8_t *optptr) *optptr++ = DHCP_OPTION_INTERFACE_MTU; *optptr++ = 2; -#ifdef CLASS_B_NET *optptr++ = 0x05; *optptr++ = 0xdc; -#else - *optptr++ = 0x02; - *optptr++ = 0x40; -#endif *optptr++ = DHCP_OPTION_PERFORM_ROUTER_DISCOVERY; *optptr++ = 1;