I am facing some issue in retrieving hardware address on a virtual server running on VMware.
I used to get the hardware address on a stand alone linux server using the C functionioctl(sd, SIOCETHTOOL, &ifreq)
Now, I have configured a linux server on top of esxi VMware.
Now, the same C function returns the hardware address as '000000'.
Could someone help me in knowing if this is because of VMware and if so could you help me with some pointers on how it could be fixed. Your help is highly appreciated. Thanks.
ioctl
function itself return? It do succeed? – Some programmer dude