diff --git a/src/os/darwin/darwin_sigar.c b/src/os/darwin/darwin_sigar.c index 0ca030b7..149ee453 100644 --- a/src/os/darwin/darwin_sigar.c +++ b/src/os/darwin/darwin_sigar.c @@ -2416,6 +2416,7 @@ int sigar_net_route_list_get(sigar_t *sigar, SIGAR_ZERO(route); route->flags = rtm->rtm_flags; + if_indextoname(rtm->rtm_index, route->ifname); for (bit=RTA_DST; bit && ((char *)sa < lim);