[erlang-questions] GUID
Per Hedeland
per@REDACTED
Fri Oct 26 15:16:39 CEST 2007
Matthias Lang <matthias@REDACTED> wrote:
>
>From some old code:
>
>%%% There are some undocumented (but useful!) functions in inet:
>%%%
>%%% inet:getif() returns all the IP addresses
>%%% inet:getiflist() returns all the network devices
>%%% inet:ifget("eth0", [hwaddr, addr]) returns the MAC and IP addrs
You beat me to it.:-) Unfortunately the hwaddr part seems to work only
on Linux (tried FreeBSD and Solaris too) - which might be one reason
they're undocumented...
--Per Hedeland
More information about the erlang-questions
mailing list