lua-users home
lua-l archive

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


On Thu, Mar 18, 2010 at 5:01 AM, Sam Gardner <s.gardner@inx-systems.com> wrote:
> Hi,
>
> I'm a lua newbie. Is it possible to get the mac address using lua?

You didn't say what O/S you are using, or whether you need it to be
portable, or whether you can use C extensions.

Interfaces to do this vary on the O/S. If you can build C extensions,
I'd bind one to libdnet, it supports win32 and many unixen, and
supports this:

http://code.google.com/p/libdnet/source/browse/trunk/include/dnet/intf.h

Cheers,
Sam