(SIGAR-181) net_route.ifname impl for MacOSX and *BSD
This commit is contained in:
		
							parent
							
								
									7a30f1e4a2
								
							
						
					
					
						commit
						d3e019dd98
					
				@ -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);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user