Do not empty entries unless allowed to in find_entry().
This commit is contained in:
@@ -268,7 +268,6 @@ static s8_t find_entry(struct ip_addr *ipaddr, u8_t flags)
|
|||||||
/* recycle oldest stable*/
|
/* recycle oldest stable*/
|
||||||
i = old_stable;
|
i = old_stable;
|
||||||
LWIP_DEBUGF(ETHARP_DEBUG | DBG_TRACE, ("find_entry: selecting oldest stable entry %d\n", i));
|
LWIP_DEBUGF(ETHARP_DEBUG | DBG_TRACE, ("find_entry: selecting oldest stable entry %d\n", i));
|
||||||
arp_table[i].state = ARP_EMPTY;
|
|
||||||
#if ARP_QUEUEING
|
#if ARP_QUEUEING
|
||||||
LWIP_ASSERT("arp_table[i].p == NULL", arp_table[i].p == NULL);
|
LWIP_ASSERT("arp_table[i].p == NULL", arp_table[i].p == NULL);
|
||||||
#endif
|
#endif
|
||||||
@@ -277,7 +276,6 @@ static s8_t find_entry(struct ip_addr *ipaddr, u8_t flags)
|
|||||||
/* recycle oldest pending */
|
/* recycle oldest pending */
|
||||||
i = old_pending;
|
i = old_pending;
|
||||||
LWIP_DEBUGF(ETHARP_DEBUG | DBG_TRACE, ("find_entry: selecting oldest pending entry %d (without queue)\n", i));
|
LWIP_DEBUGF(ETHARP_DEBUG | DBG_TRACE, ("find_entry: selecting oldest pending entry %d (without queue)\n", i));
|
||||||
arp_table[i].state = ARP_EMPTY;
|
|
||||||
/* 4) found recyclable pending entry with queued packets? */
|
/* 4) found recyclable pending entry with queued packets? */
|
||||||
} else if (old_queue < ARP_TABLE_SIZE) {
|
} else if (old_queue < ARP_TABLE_SIZE) {
|
||||||
/* recycle oldest pending */
|
/* recycle oldest pending */
|
||||||
|
|||||||
Reference in New Issue
Block a user