hi,

could somebody please tell me the problem with this
piece of code.

i want to get the 48 bit ethernet address of my card
in the ifreq structure.

the SIOCGIFADDR is expected to return the hw address,
i presume...

the socket system call is successful but the ioctl
returns 'no such device'

also if i substitute SIOCGIFADDR with SIOCGIHWADDR 
as given in 'man netdevice' the ioctl error remains
the same.

my machine has lo,eth0 and eth1 up and running.

i am using linux kernel 2.2.5-15 (redhat 6.0) on a
pentium.

thanks in advance
sid

__________________________________________________
Do You Yahoo!?
Send online invitations with Yahoo! Invites.
http://invites.yahoo.com

if2.c

Reply via email to