![]() |
![]() |
![]() |
![]() |
![]() |
This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Retrieve a stored MAC address
int nic_get_syspage_mac ( char *mac)
The nic_get_syspage_mac() function retrieves, during system startup, a MAC address that was stored in the system page. If a driver is unable to determine the MAC address that was manufacturer-assigned to the interface (e.g. by reading it from an SROM), it should use this function instead.
If this function fails, you'll need to specify a MAC address on the command line, otherwise, the driver should send an error message to the system logger and the instantiation of the interface should fail.
0 if a MAC address was successfully retrieved from the syspage; -1 on failure.
| Safety: | |
|---|---|
| Cancellation point | Yes |
| Interrupt handler | No |
| Signal handler | Yes |
| Thread | Yes |
![]() |
![]() |
![]() |
![]() |