MAC address
2007-09-17 22:24:30.204356+00 by Dan Lyke 2 comments
2007-09-17 22:24:30.204356+00 by Dan Lyke 2 comments
[ related topics: Microsoft Open Source Macintosh ]
comments in ascending chronological order (reverse):
#Comment Re: made: 2007-09-18 01:41:58.66883+00 by: meuon [edit history]
Just typing 'arp' MAY display it on Linux. Note that it may display others as well. Or run 'arp' on a nearby system to see the other machine. It's also in displayed from "dmesg", and readable from /proc/net/dev_mcast and /proc/net/dev/ipv6_route and.. and..
#Comment Re: made: 2007-09-18 01:51:27.455645+00 by: Dan Lyke
You can actually grab it from ifconfig too, on both BSD/OS/X and Linux, but in this case I'm writing some code to actually require a user to hit a web page the first time they run our application on their machine, so I needed to get it from C code.
Yeah, if I were writing this in anything else I'd have run ifconfig and parsed the output.