(SIGAR-181) net_route.ifname impl for MacOSX and *BSD

This commit is contained in:
Doug MacEachern 2009-09-15 11:32:07 -07:00
parent 7a30f1e4a2
commit d3e019dd98
1 changed files with 1 additions and 0 deletions

View File

@ -2416,6 +2416,7 @@ int sigar_net_route_list_get(sigar_t *sigar,
SIGAR_ZERO(route); SIGAR_ZERO(route);
route->flags = rtm->rtm_flags; route->flags = rtm->rtm_flags;
if_indextoname(rtm->rtm_index, route->ifname);
for (bit=RTA_DST; for (bit=RTA_DST;
bit && ((char *)sa < lim); bit && ((char *)sa < lim);