lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


steve donovan <steve.j.donovan@gmail.com> [2010-03-18 15:54:39]:

> On Thu, Mar 18, 2010 at 3:43 PM, Petr Štetiar <ynezz@true.cz> wrote:
> >        local f = io.open('/proc/net/arp', 'r')
> 
> The wonders of the /proc filesystem - but I don't know whether this is
> one of the Linux-specific entries either

No, it won't work because the /proc/net/arp is ARP cache actually :( I've just
checked it just after I've pressed the send key, from the man page:

"
/proc/net/arp

This holds an ASCII readable dump of the kernel ARP table used
for address resolutions.  It will show both dynamically learned and pre-pro‐
grammed ARP entries.
"

So it seems, that your solution is the only possible I'm aware of.

-- ynezz