OneDHCPD.ARP (one_dhcpd v3.0.0)

Copy Markdown 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.

Summary

Functions

Query the ARP cache and return everything in it.

Replace an entry in the ARP cache.

Functions

entries()

@spec entries() :: [OneDHCPD.ARP.Entry.t()]

Query the ARP cache and return everything in it.

Currently this function is only used for debug.

replace(ifname, ip, hwaddr)

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

Replace an entry in the ARP cache.