lua-users home
lua-l archive

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

steve donovan <> [2010-03-18 15:54:39]:

> On Thu, Mar 18, 2010 at 3:43 PM, Petr Štetiar <> wrote:
> >        local f ='/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:


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