From d3e019dd98ca5a9c982a750a0c5a47c204510e80 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Tue, 15 Sep 2009 11:32:07 -0700 Subject: [PATCH] (SIGAR-181) net_route.ifname impl for MacOSX and *BSD --- src/os/darwin/darwin_sigar.c | 1 + 1 file changed, 1 insertion(+) 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);