I want to get hardware address of network interface on AIX
using ioctl
.
Like in Linux we get it through:
ioctl(sockFd, SIOCGIFADDR, ifr_p);
I didn't find SIOCGIFADDR
flag in /usr/include/sys/ioctl.h
on AIX
to get hardware address information.
Is there any way to get it from ioctl
? or any file in system from where I can get this information like in linux this information is stored in '/sys/class/net/'