1 -- module to access linux ARP cache
3 config = require "config"
6 _ARPCACHE4 = '/sbin/ip -4 n'
7 _ARPCACHE6 = '/sbin/ip -6 n'
10 return string.match(ip,"%d*%.%d*%.%d*%.%d*")
13 function _arpcache.get_mac(ip)
22 local f = io.popen(cmd)
35 for k in string.gmatch(line, "(%S+)") do