Lines Matching refs:g_arpm
59 struct arp_manager g_arpm; variable
67 TAILQ_INIT(&g_arpm.list); in InitARPTable()
68 pthread_mutex_init(&g_arpm.lock, NULL); in InitARPTable()
191 pthread_mutex_lock(&g_arpm.lock); in RequestARP()
193 TAILQ_FOREACH(ent, &g_arpm.list, arp_link) { in RequestARP()
195 pthread_mutex_unlock(&g_arpm.lock); in RequestARP()
208 TAILQ_INSERT_TAIL(&g_arpm.list, ent, arp_link); in RequestARP()
209 pthread_mutex_unlock(&g_arpm.lock); in RequestARP()
248 pthread_mutex_lock(&g_arpm.lock); in ProcessARPReply()
249 TAILQ_FOREACH(ent, &g_arpm.list, arp_link) { in ProcessARPReply()
251 TAILQ_REMOVE(&g_arpm.list, ent, arp_link); in ProcessARPReply()
256 pthread_mutex_unlock(&g_arpm.lock); in ProcessARPReply()
318 pthread_mutex_lock(&g_arpm.lock); in ARPTimer()
319 TAILQ_FOREACH_SAFE(ent, &g_arpm.list, arp_link, ent_tmp) { in ARPTimer()
323 TAILQ_REMOVE(&g_arpm.list, ent, arp_link); in ARPTimer()
327 pthread_mutex_unlock(&g_arpm.lock); in ARPTimer()