improve fqdn_ip filters

This commit is contained in:
Doug MacEachern 2006-12-02 20:24:52 +00:00
parent 508ea00374
commit 4e45608ce0
1 changed files with 4 additions and 1 deletions

View File

@ -1849,7 +1849,10 @@ static int fqdn_ip_get(sigar_t *sigar, char *name)
iflist.data[i], &ifconfig); iflist.data[i], &ifconfig);
if ((status != SIGAR_OK) || if ((status != SIGAR_OK) ||
(ifconfig.flags & SIGAR_IFF_LOOPBACK)) (ifconfig.flags & SIGAR_IFF_LOOPBACK) ||
!ifconfig.address.addr.in || /* no ip address */
!ifconfig.hwaddr.addr.in || /* no mac address */
strchr(iflist.data[i], ':')) /* alias */
{ {
continue; continue;
} }