next_door
This is a tool designed to retrieve the Address Resolution Protocol (ARP) cache and perform IP address lookups corresponding to given MAC addresses.
As it stands, this utility functions exclusively on the Erlang target platform. Windows users are also out of luck with this package.
Types
pub type ArpEntry {
ArpEntry(ip: String, mac: String, interface: String)
}
Constructors
-
ArpEntry(ip: String, mac: String, interface: String)
Values
pub fn mac_to_ip(
table: List(ArpEntry),
mac: String,
) -> Result(String, Nil)
Convert an mac address to an IP address. The mac address is case insensitive
pub fn parse_table(table: String) -> Result(List(ArpEntry), Nil)
Parse a string of BSD style arp entries in a list of arp entries.