Reading MAC address through software

I need a way to have a globally unique ID (GUID) on my system in order for
it to identify itself. This is a PC/104 board with on-board ethernet, so the
first thing I thought of was to use the MAC address as a GUID. How do I read
this via C?

This will vary by the chip used. Do you need this info BEFORE the driver
loads?

“Chris Rose” <rose_chris@excite.com> wrote in message
news:almaes$cji$1@inn.qnx.com

I need a way to have a globally unique ID (GUID) on my system in order for
it to identify itself. This is a PC/104 board with on-board ethernet, so
the
first thing I thought of was to use the MAC address as a GUID. How do I
read
this via C?

Chris Rose wrote:

I need a way to have a globally unique ID (GUID) on my system in order for
it to identify itself. This is a PC/104 board with on-board ethernet, so the
first thing I thought of was to use the MAC address as a GUID. How do I read
this via C?

If you only need the MAC after the system is started type “nicinfo” in
helpviewer, and click on “nicinfo interface”. This documents the
devctls, one of which (Nic_t I believe) contains the MAC address.

If you need it before the system is started (e.g. in startup code),
then, as Bill says, you will need to lookup the docs for your particular
chip to find out how to read it.

Rennie

Is this new in 6.2? I haven’t yet installed 6.2 and I don’t see it in the
docs.


Marty Doane
Siemens Dematic


“Rennie Allen” <rallen@csical.com> wrote in message
news:3D80DEED.9070102@csical.com

If you only need the MAC after the system is started type “nicinfo” in
helpviewer, and click on “nicinfo interface”. This documents the
devctls, one of which (Nic_t I believe) contains the MAC address.

If you need it before the system is started (e.g. in startup code),
then, as Bill says, you will need to lookup the docs for your particular
chip to find out how to read it.

Rennie

Marty Doane <marty.doane@rapistan.com> wrote:
: Is this new in 6.2? I haven’t yet installed 6.2 and I don’t see it in the
: docs.

It’s a section in the Writing a Network Driver chapter of the Network DDK.
See:

http://www.qnx.com/developer/docs/momentics_nc_docs/ddk_en/network/writing.html


: “Rennie Allen” <rallen@csical.com> wrote in message
: news:3D80DEED.9070102@csical.com
:> If you only need the MAC after the system is started type “nicinfo” in
:> helpviewer, and click on “nicinfo interface”. This documents the
:> devctls, one of which (Nic_t I believe) contains the MAC address.
:>
:> If you need it before the system is started (e.g. in startup code),
:> then, as Bill says, you will need to lookup the docs for your particular
:> chip to find out how to read it.


Steve Reid stever@qnx.com
TechPubs (Technical Publications)
QNX Software Systems

Thank you. Very helpful.

Marty Doane
Siemens Dematic

“Steve Reid” <stever@qnx.com> wrote in message
news:alt2du$i5b$1@nntp.qnx.com

Marty Doane <> marty.doane@rapistan.com> > wrote:
: Is this new in 6.2? I haven’t yet installed 6.2 and I don’t see it in
the
: docs.

It’s a section in the Writing a Network Driver chapter of the Network DDK.
See:


http://www.qnx.com/developer/docs/momentics_nc_docs/ddk_en/network/writing.h

tml

: “Rennie Allen” <> rallen@csical.com> > wrote in message
: news:> 3D80DEED.9070102@csical.com> …
:> If you only need the MAC after the system is started type “nicinfo” in
:> helpviewer, and click on “nicinfo interface”. This documents the
:> devctls, one of which (Nic_t I believe) contains the MAC address.
:
:> If you need it before the system is started (e.g. in startup code),
:> then, as Bill says, you will need to lookup the docs for your
particular
:> chip to find out how to read it.


Steve Reid > stever@qnx.com
TechPubs (Technical Publications)
QNX Software Systems