Forum Discussion
Altera_Forum
Honored Contributor
14 years agoPending indicates that an ARP query has been send, but no response has been received yet.
By the look of it, it's also possible to force an ARP request via 'etharp_query', however you need to make sure you call 'ethernetif_input(&alteraTseNetif)' after if you are running without OS. Since the ARP replies are only updated if you process the newly received packages after 'etharp_query' has been called. You should also take into account that there is a slight delay between the send / receive so if you place both calls without delay between them the response probably hasn't been received yet. Another thing to take in account is that you can't call 'etharp_query' directly when you are using an OS since this function uses the raw API without thread safety support. This means your ARP and PBUF table isn't protected against cross thread actions.