QNX RTOS v4 Knowledge Base
QNX RTOS v4 Knowledge Base
Title |
Reading the Physical Node ID of a network card from code |
Ref. No. |
QNX.000004353 |
Category(ies) |
Network, Development |
Issue |
We need to know how to determine the ethernet hardware address of our QNX machine's ethernet adapters from code.
|
Solution |
Do a system() call and pass 'netinfo -l' as the command and parse the outout for 'Ethernet Physical Node ID'.
To find the address of another node, pass the -n option to netinfo. This is assuming that the network is a QNX native network. |
|