mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-25 09:42:35 +00:00
add code for sending gratuitous ARP periodically
This commit is contained in:
@@ -70,6 +70,10 @@
|
||||
extern void dhcps_coarse_tmr(void);
|
||||
#endif
|
||||
|
||||
#if ESP_GRATUITOUS_ARP
|
||||
extern void garp_tmr(void);
|
||||
#endif
|
||||
|
||||
/** This array contains all stack-internal cyclic timers. To get the number of
|
||||
* timers, use LWIP_ARRAYSIZE() */
|
||||
const struct lwip_cyclic_timer lwip_cyclic_timers[] = {
|
||||
@@ -84,6 +88,9 @@ const struct lwip_cyclic_timer lwip_cyclic_timers[] = {
|
||||
#endif /* IP_REASSEMBLY */
|
||||
#if LWIP_ARP
|
||||
{ARP_TMR_INTERVAL, HANDLER(etharp_tmr)},
|
||||
#if ESP_GRATUITOUS_ARP
|
||||
{GARP_TMR_INTERVAL, HANDLER(garp_tmr)},
|
||||
#endif
|
||||
#endif /* LWIP_ARP */
|
||||
#if LWIP_DHCP
|
||||
{DHCP_COARSE_TIMER_MSECS, HANDLER(dhcp_coarse_tmr)},
|
||||
|
Reference in New Issue
Block a user