one_dhcpd v0.2.3 OneDHCPD.ARP View Source

This module contains utilities to view or update the ARP cache.

OneDHCPD uses this to update the ARP cache when the IP address is given out. If networking isn't working, OneDHCPD.ARP.entries/0 is useful for debugging.

Link to this section Summary

Functions

Query the ARP cache and return everything in it.

Replace an entry in the ARP cache.

Link to this section Functions

Link to this function

entries()

View Source
entries() :: [OneDHCPD.ARP.Entry.t()]

Query the ARP cache and return everything in it.

Currently this function is only used for debug.

Link to this function

replace(ifname, ip, hwaddr)

View Source
replace(String.t(), :inet.ip_address(), [byte()]) :: :ok | {:error, any()}

Replace an entry in the ARP cache.