View Source OneDHCPD.ARP (one_dhcpd v2.0.1)

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

@spec 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
@spec replace(String.t(), :inet.ip_address(), [byte()]) :: :ok | {:error, any()}

Replace an entry in the ARP cache.