feat(lwip): add gratuitous arp

This commit is contained in:
Zhang Jun Hao
2019-07-02 14:03:53 +08:00
parent 6ada81237e
commit 1457e0e822
9 changed files with 77 additions and 0 deletions

View File

@ -372,7 +372,11 @@ size_t memp_malloc_get_size(size_t type);
* The default number of timeouts is calculated here for all enabled modules.
* The formula expects settings to be either '0' or '1'.
*/
#if ESP_LWIP
#define MEMP_NUM_SYS_TIMEOUT (LWIP_TCP + IP_REASSEMBLY + LWIP_ARP + (2*LWIP_DHCP) + LWIP_AUTOIP + LWIP_IGMP + LWIP_DNS + (PPP_SUPPORT*6*MEMP_NUM_PPP_PCB) + (LWIP_IPV6 ? (1 + LWIP_IPV6_REASS + LWIP_IPV6_MLD) : 0)) + (ESP_GRATUITOUS_ARP ? 1 : 0)
#else
#define MEMP_NUM_SYS_TIMEOUT (LWIP_TCP + IP_REASSEMBLY + LWIP_ARP + (2*LWIP_DHCP) + LWIP_AUTOIP + LWIP_IGMP + LWIP_DNS + (PPP_SUPPORT*6*MEMP_NUM_PPP_PCB) + (LWIP_IPV6 ? (1 + LWIP_IPV6_REASS + LWIP_IPV6_MLD) : 0))
#endif
/**
* MEMP_NUM_NETBUF: the number of struct netbufs.
@ -2281,6 +2285,7 @@ size_t memp_malloc_get_size(size_t type);
#endif
#endif
#define ESP_GRATUITOUS_ARP CONFIG_LWIP_ESP_GRATUITOUS_ARP
#define ESP_PING 1
#endif /* __LWIP_HDR_LWIPOPTS_H__ */