SIOCGIFHWADDR not defined on Solaris?

SIOCGIFHWADDR not defined on Solaris?

Post by Chin-Wen Li » Fri, 07 Jan 2000 04:00:00



Hi, all:

I am trying to use ioctl(skfd, SIOCGIFHWADDR, &ifr) to
get ether address.  But it doesn't work on Solaris.  Looks like
SIOCGIFHWADDR is not defined on Solaris.  Anybody know
how to get MAC address on Solaris?  Thanks very much for
your help.