1From a066306d783693d3f78b9c5e84feca7d690cf27a Mon Sep 17 00:00:00 2001 2From: jiangheng <jiangheng12@huawei.com> 3Date: Fri, 2 Jul 2021 16:54:43 +0800 4Subject: [PATCH] fix coredump in etharp 5 6--- 7 src/core/ipv4/etharp.c | 4 ++-- 8 1 file changed, 2 insertions(+), 2 deletions(-) 9 10diff --git a/src/core/ipv4/etharp.c b/src/core/ipv4/etharp.c 11index c3a5a10..effb7db 100644 12--- a/src/core/ipv4/etharp.c 13+++ b/src/core/ipv4/etharp.c 14@@ -102,10 +102,10 @@ struct etharp_entry { 15 u8_t state; 16 }; 17 18-static struct etharp_entry arp_table[ARP_TABLE_SIZE]; 19+static PER_THREAD struct etharp_entry arp_table[ARP_TABLE_SIZE]; 20 21 #if !LWIP_NETIF_HWADDRHINT 22-static netif_addr_idx_t etharp_cached_entry; 23+static PER_THREAD netif_addr_idx_t etharp_cached_entry; 24 #endif /* !LWIP_NETIF_HWADDRHINT */ 25 26 /** Try hard to create a new entry - we want the IP address to appear in 27-- 282.23.0 29 30