Return ARP Table

t = arp.table( [mac] )

Returns a table of ARP table entries.

If mac is provided, this can be a full MAC address, or a partial.
e.g. t = arp.table('00:02:ae') - will return all entries for Scannex products.

The table t is in the form:
t[IP] = MAC
Where:

  • IP is the IP address (string), e.g. 192.168.0.235
  • MAC is the MAC address as an upper case hex MAC string (e.g. 00:02:AE:12:34:56)
Note

Iterate through the table using Lua pairs iterator.