MAC address

Reuben D. Budiardja techlist at voyager.phys.utk.edu
Fri Mar 5 10:18:20 UTC 2004


On Friday 05 March 2004 09:22 am, Iain Robertson wrote:
> Is there a linux system call or fortran routine which will output the MAC
> address on a network card?

did you mean on your local network card? 

run '/sbin/ifconfig'

you may have to parse the output just to get the MAC address (it'd be a real 
pain in fortran though). I don't know any better way.

RDB
-- 
Reuben D. Budiardja
Department of Physics and Astronomy
The University of Tennessee, Knoxville, TN
---------------------------------------------------------
"To be a nemesis, you have to actively try to destroy 
something, don't you? Really, I'm not out to destroy 
Microsoft. That will just be a completely unintentional 
side effect."
                 - Linus Torvalds -





More information about the redhat-list mailing list