Physical Mac Address

Physical Mac Address

am 14.10.2004 17:50:21 von daveb_sharp

Hi there,
I would like to access the physical Mac addr. from
hardware (an immutable source). Do I need a specific
implementation for each NIC card or is there a kernel
call that calls each implementation. I have looked at
server sample driver sources.
Thanx
Dave

____________________________________________________________ __________
Post your free ad now! http://personals.yahoo.ca
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Re: Physical Mac Address

am 14.10.2004 19:29:16 von beolach

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dave B. Sharp wrote:
> Hi there,
> I would like to access the physical Mac addr. from
> hardware (an immutable source). Do I need a specific
> implementation for each NIC card or is there a kernel
> call that calls each implementation. I have looked at
> server sample driver sources.
> Thanx
> Dave
>

Not sure if I understand you exactly, but ifconfig shows the MAC address
as HWaddr.

GL,
Conway S. Smith
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFBbrdqGL3AU+cCPDERApk2AJ9v9J/H9K3VN31e0kV/Mqv7tgKk+wCg toqL
CB8VcTgfkdRBZh7wRf9484o=
=wkZK
-----END PGP SIGNATURE-----
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Re: Physical Mac Address

am 14.10.2004 19:50:27 von Ray Olszewski

At 11:29 AM 10/14/2004 -0600, Conway S. Smith wrote:
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>Dave B. Sharp wrote:
> > Hi there,
> > I would like to access the physical Mac addr. from
> > hardware (an immutable source). Do I need a specific
> > implementation for each NIC card or is there a kernel
> > call that calls each implementation. I have looked at
> > server sample driver sources.
> > Thanx
> > Dave
> >
>
>Not sure if I understand you exactly, but ifconfig shows the MAC address
>as HWaddr.

This is almost, but not completely true. ifconfig shows the assigned MAC
address ... but this *can* differ from the physical MAC address, if the
relevant NIC driver supports the software resetting of MAC addresses. (See
the "hw class address" option in the "ifconfig" man page for details.) So
this is not quite the "immutable source" the original poster asks for.

To check the physical MAC address, it might suffice to check the dmesg
buffer right after boot/init. My system, as an example, saves this at
boot/init in the file /var/log/dmesg . Checking it, I find this line:

eth0: Lite-On 82c168 PNIC rev 32 at 0xe000, 00:A0:CC:D0:80:CB, IRQ 11.

This value should be written before any software modifications to the MAC
address are possible (or at least likely), so it might be close enough to
"immutable" to meet the original poster's needs.



-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs