Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How to get the MAC (station) address programmatically?

0
Posted

How to get the MAC (station) address programmatically?

0

Here’s some sample LLA code to do this. Note that you can use DLPI to do the same, and LLA in not supported in HP-UX 10.0. Sample DLPI code can be found on HPSL, the document id is CWA940907000. /* Here’s some sample code that you can use to get your own station address (otherwise known as MAC address or LAN card address). Be sure to compile this with the -ln option, since the net_ntoa(3N) call is found in /usr/lib/libn.a. This program was compiled by doing: cc get.c -o get -g -ln */ #include #include #include

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123