I'm working on a module which has a client-server architecture. And I have to authenticate the connecting peer machine on the basis of the MAC address.
At the time of installation I store an encrypted list of valid MAC addresses.
Please note that I have no control on this peer machine and some third-party application will be running on this and I can not install any application on this peer machine.
At run time when a socket connection happens I need to know the MAC address for the IP address used in the connection, so that I can validate it against the previously stored MAC address.
Are there any C/C++ APIs available which can help me to get the MAC address from the IP address. This machine is usually to be connected in a LAN, but it can be on different subnets.
My module is multiplatform and runs on Windows, Solaris and Linux and similarly the peer machine can be running on any OS.