* Physical Mac Address
@ 2004-10-14 15:50 Dave B. Sharp
2004-10-14 17:29 ` Conway S. Smith
0 siblings, 1 reply; 3+ messages in thread
From: Dave B. Sharp @ 2004-10-14 15:50 UTC (permalink / raw)
To: linux-newbie
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
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: Physical Mac Address
2004-10-14 15:50 Physical Mac Address Dave B. Sharp
@ 2004-10-14 17:29 ` Conway S. Smith
2004-10-14 17:50 ` Ray Olszewski
0 siblings, 1 reply; 3+ messages in thread
From: Conway S. Smith @ 2004-10-14 17:29 UTC (permalink / raw)
To: Dave B. Sharp; +Cc: linux-newbie
-----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+wCgtoqL
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Physical Mac Address
2004-10-14 17:29 ` Conway S. Smith
@ 2004-10-14 17:50 ` Ray Olszewski
0 siblings, 0 replies; 3+ messages in thread
From: Ray Olszewski @ 2004-10-14 17:50 UTC (permalink / raw)
To: linux-newbie
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-10-14 17:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-14 15:50 Physical Mac Address Dave B. Sharp
2004-10-14 17:29 ` Conway S. Smith
2004-10-14 17:50 ` Ray Olszewski
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.