mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-16 14:11:02 +00:00
fix for bug #34684 was wrong (netif for arp table entries was only set/reset with SNMP enabled)
This commit is contained in:
parent
c4f3b8818a
commit
4c8e4fa003
@ -187,9 +187,7 @@ free_entry(int i)
|
|||||||
#ifdef LWIP_DEBUG
|
#ifdef LWIP_DEBUG
|
||||||
/* for debugging, clean out the complete entry */
|
/* for debugging, clean out the complete entry */
|
||||||
arp_table[i].ctime = 0;
|
arp_table[i].ctime = 0;
|
||||||
#if LWIP_SNMP
|
|
||||||
arp_table[i].netif = NULL;
|
arp_table[i].netif = NULL;
|
||||||
#endif /* LWIP_SNMP */
|
|
||||||
ip_addr_set_zero(&arp_table[i].ipaddr);
|
ip_addr_set_zero(&arp_table[i].ipaddr);
|
||||||
arp_table[i].ethaddr = ethzero;
|
arp_table[i].ethaddr = ethzero;
|
||||||
#endif /* LWIP_DEBUG */
|
#endif /* LWIP_DEBUG */
|
||||||
@ -478,9 +476,7 @@ update_arp_entry(struct netif *netif, ip_addr_t *ipaddr, struct eth_addr *ethadd
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* record network interface */
|
/* record network interface */
|
||||||
#if LWIP_SNMP
|
|
||||||
arp_table[i].netif = netif;
|
arp_table[i].netif = netif;
|
||||||
#endif /* LWIP_SNMP */
|
|
||||||
/* insert in SNMP ARP index tree */
|
/* insert in SNMP ARP index tree */
|
||||||
snmp_insert_arpidx_tree(netif, &arp_table[i].ipaddr);
|
snmp_insert_arpidx_tree(netif, &arp_table[i].ipaddr);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user