Date: Mon, 24 Nov 1997 20:15:15 -0500 From: Jim Carroll <jim@carroll.com> To: freebsd-hackers@freebsd.org Subject: Retrieve ethernet mac address Message-ID: <Pine.BSD.3.91.971124201015.32350Y-100000@apollo.carroll.com>
index | next in thread | raw e-mail
Could someone point me towards how to retrieve an ethernet mac address from
user-land code ? If it matters, we are running 2.2.1
If someone has a working snippet, I would be grateful. A good pointer
towards a FAQ or doc would also be helpful.
I have been staring at netstat and ifconfig source for a few hours, but am
having trouble making heads or tails. netstat usese kvm() and ifconfig uses
sysctl(). I can't find enough docs of either method to get my head around
what is needed to just extract mac address.
Thanks
---
Jim C., President | C A R R O L L - N E T, Inc.
201-488-1332 | New Jersey's Premier Internet Service Provider
www.carroll.com |
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSD.3.91.971124201015.32350Y-100000>
