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

Re: get MAC address from userspace program



On Jul 19, 2002 (11:19) Martin Schmachtel wrote:

> I need to find out the MAC address of a given ethernet interface from
> a userspace program. I cannot, however, find out how to get this data.
> I thought it should be in struct if_data, but it's not there.
> Can anyone tell me where to look?

Look in /usr/src/usr.sbin/rarpd/rarpd.c (lookup_addrs() routine.)

> thanks
> schmadde

Later,
Tamer

-- 
Tamer Embaby <tsemba@menanet.net | http://tsemba.tripod.com>
Fingerprint D1B0 2FF3 2E08 48D1 0D71 7D4A 1A59 B783 86D2 E63D

" Sometime it's better to die not to give up in life. "
--