fix for bug #34684 was wrong (netif for arp table entries was only set/reset with SNMP enabled)

This commit is contained in:
goldsimon 2011-11-24 21:11:11 +01:00
parent 988815579a
commit 14c766e750

View File

@ -191,9 +191,7 @@ etharp_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 */
@ -482,9 +480,7 @@ etharp_update_arp_entry(struct netif *netif, ip_addr_t *ipaddr, struct eth_addr
}
/* 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);