[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: mac adrress
- From: Petr Štetiar <ynezz@...>
- Date: Thu, 18 Mar 2010 14:59:32 +0100
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