From fb1f61b21249d49ebcf5a159902b435a664dda77 Mon Sep 17 00:00:00 2001 From: likewise Date: Thu, 6 May 2004 02:51:15 +0000 Subject: [PATCH] Do not empty entries unless allowed to in find_entry(). --- src/netif/etharp.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/netif/etharp.c b/src/netif/etharp.c index 87c2f7f3..4630f2dd 100644 --- a/src/netif/etharp.c +++ b/src/netif/etharp.c @@ -268,7 +268,6 @@ static s8_t find_entry(struct ip_addr *ipaddr, u8_t flags) /* recycle oldest stable*/ i = old_stable; LWIP_DEBUGF(ETHARP_DEBUG | DBG_TRACE, ("find_entry: selecting oldest stable entry %d\n", i)); - arp_table[i].state = ARP_EMPTY; #if ARP_QUEUEING LWIP_ASSERT("arp_table[i].p == NULL", arp_table[i].p == NULL); #endif @@ -277,7 +276,6 @@ static s8_t find_entry(struct ip_addr *ipaddr, u8_t flags) /* recycle oldest pending */ i = old_pending; 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? */ } else if (old_queue < ARP_TABLE_SIZE) { /* recycle oldest pending */