etharp_update_arp_entry() is only used within LwIP.
 
Symbols
loading...
Files
loading...

etharp_update_arp_entry() function

Update (or insert) a IP/MAC address pair in the ARP cache. If a pending entry is resolved, any queued packets will be sent at this point. @see pbuf_free()

Syntax

static err_t etharp_update_arp_entry(struct netif *netif,     const ip4_addr_t *ipaddr,     struct eth_addr *ethaddr,     u8_t flags);

Arguments

netif

netif related to this entry (used for NETIF_ADDRHINT)

ipaddr

IP address of the inserted ARP entry.

ethaddr

Ethernet address of the inserted ARP entry.

flags

Return value

- ERR_OK Successfully updated ARP cache. - ERR_MEM If we could not add a new ARP entry when ETHARP_FLAG_TRY_HARD was set. - ERR_ARG Non-unicast address given, those will not appear in ARP cache.

References

LocationReferrerText
etharp.c:422
etharp_update_arp_entry(struct netif *netif, const ip4_addr_t *ipaddr, struct eth_addr *ethaddr, u8_t flags)
etharp.c:694etharp_input()
etharp_update_arp_entry(netif, &sipaddr, &(hdr->shwaddr),

Call Tree

Functions calling etharp_update_arp_entry()
Functions called by etharp_update_arp_entry()
all items filtered out
etharp_update_arp_entry()
Type of etharp_update_arp_entry()
etharp_update_arp_entry()
all items filtered out