filter network interfaces to just loopback and ethernet

This commit is contained in:
Doug MacEachern 2005-12-05 18:38:11 +00:00
parent fc24578d83
commit 79bc88de67
1 changed files with 5 additions and 0 deletions

View File

@ -1591,6 +1591,11 @@ static int sigar_ifmsg_iter(sigar_t *sigar, ifmsg_iter_t *iter)
if (sdl->sdl_family != AF_LINK) {
continue;
}
if (!((sdl->sdl_type == IFT_ETHER) ||
(sdl->sdl_type == IFT_LOOP)))
{
continue; /* XXX deal w/ other weirdo interfaces */
}
switch (iter->type) {
case IFMSG_ITER_LIST: