How to query the driver to retrieve the MAC address of a network interface controller ________________________________________________________________________
Applicable Environment
________________________________________________________________________
Topic : nicinfo, MAC addressSDP : 7.0.0, 7.1.0Target : AArch64, x86_64________________________________________________________________________
Question
________________________________________________________________________
Is there a way to get the MAC address of an interface knowing the name of the interface?
________________________________________________________________________
Recommendation
________________________________________________________________________
Please refer to the attached sample code, which queries the driver for the mac address, similar to nicinfo.
________________________________________________________________________
NOTE :
This entry has been validated against the SDP version listed above. Use
caution when considering this advice for any other SDP version. For
supported releases, please reach out to QNX Technical Support if you have any questions/concerns.________________________________________________________________________
Related Attachments
Attachment Name Size Last Modified nic_example.c 1825 bytes 11/5/2023 9:28 PM
Please contact us with your questions or concerns.