RE. How to get MAC of NIC.

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

 




----- Original Message -----
From: "Nicholas Dronen" <ndronen@frii.com>
To: "CODEZ" <dacodeznet@hotpop.com>
Sent: Friday, December 22, 2000 4:30 AM
Subject: Re: How to get MAC of NIC.


> On Fri, Dec 22, 2000 at 04:25:51AM +0530, CODEZ wrote:
> > Hello all.......
> > This is my first posting, and I hope that I will get my answer for
certain.
> > I want to know is there any defined *sysctl* function to get MAC address
of
> > NIC that is installed in the linux box, or in case if *not* then any
help
> > regarding how to get MAC address of NIC at the run time will be great.
> > Please help me out............
>
> Look at, iirc, the SIOCGHWADDR ioctl.  (ioctl_list(2), ioctl(2))
>
Thanks Nicholas for showing me some light... :-). Umm btw I seacrched
*SIOCGHWADDR ioctl* both in ioctl_list(2) and in
*/usr/src/linux/lnclude/llinux/sockios.h*, but cuoldnt get it anywhere, what
I got is *SIOCGIFHWADDR ioctl*. So woz it a *typo* or u meant it in particular. Ummm sowwie if I sounds like a *duffer*.

Regardz
Codez


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux