From 4c8e4fa003070956c45d9063101ad6365b802d3f Mon Sep 17 00:00:00 2001 From: goldsimon Date: Thu, 24 Nov 2011 21:11:11 +0100 Subject: [PATCH] fix for bug #34684 was wrong (netif for arp table entries was only set/reset with SNMP enabled) --- src/netif/etharp.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/netif/etharp.c b/src/netif/etharp.c index 286f7fe3..a6e7b91c 100644 --- a/src/netif/etharp.c +++ b/src/netif/etharp.c @@ -187,9 +187,7 @@ free_entry(int i) #ifdef LWIP_DEBUG /* for debugging, clean out the complete entry */ arp_table[i].ctime = 0; -#if LWIP_SNMP arp_table[i].netif = NULL; -#endif /* LWIP_SNMP */ ip_addr_set_zero(&arp_table[i].ipaddr); arp_table[i].ethaddr = ethzero; #endif /* LWIP_DEBUG */ @@ -478,9 +476,7 @@ update_arp_entry(struct netif *netif, ip_addr_t *ipaddr, struct eth_addr *ethadd } /* record network interface */ -#if LWIP_SNMP arp_table[i].netif = netif; -#endif /* LWIP_SNMP */ /* insert in SNMP ARP index tree */ snmp_insert_arpidx_tree(netif, &arp_table[i].ipaddr);