lwIP 2.2.1
Lightweight IP stack
Loading...
Searching...
No Matches

Functions

err_t netifapi_arp_add (const ip4_addr_t *ipaddr, struct eth_addr *ethaddr, enum netifapi_arp_entry type)
 
err_t netifapi_arp_remove (const ip4_addr_t *ipaddr, enum netifapi_arp_entry type)
 

Detailed Description

To be called from non-TCPIP threads

Function Documentation

◆ netifapi_arp_add()

err_t netifapi_arp_add ( const ip4_addr_t ipaddr,
struct eth_addr ethaddr,
enum netifapi_arp_entry  type 
)

Add or update an entry in the ARP cache. For an update, ipaddr is used to find the cache entry.

Parameters
ipaddrIPv4 address of cache entry
ethaddrhardware address mapped to ipaddr
typetype of ARP cache entry
Returns
ERR_OK: entry added/updated, else error from err_t

◆ netifapi_arp_remove()

err_t netifapi_arp_remove ( const ip4_addr_t ipaddr,
enum netifapi_arp_entry  type 
)

Remove an entry in the ARP cache identified by ipaddr

Parameters
ipaddrIPv4 address of cache entry
typetype of ARP cache entry
Returns
ERR_OK: entry removed, else error from err_t