get mac address for tru64

This commit is contained in:
Doug MacEachern 2004-10-02 03:45:13 +00:00
parent 8716d916c7
commit b5c27255da
1 changed files with 2 additions and 2 deletions

View File

@ -681,7 +681,7 @@ void sigar_hwaddr_format(char *buff, unsigned char *ptr)
#include <sys/sockio.h>
#endif
#if defined(_AIX)
#if defined(_AIX) || defined(__osf__) /* good buddies */
#include <net/if_dl.h>
@ -815,7 +815,7 @@ int sigar_net_interface_config_get(sigar_t *sigar, const char *name,
if (!ioctl(sock, SIOCGIFHWADDR, &ifr)) {
sigar_hwaddr_format(ifconfig->hwaddr, ifr.ifr_hwaddr.sa_data);
}
#elif defined(_AIX)
#elif defined(_AIX) || defined(__osf__)
hwaddr_aix_lookup(sigar, ifconfig);
#else
hwaddr_arp_lookup(ifconfig, sock);