=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== ruby-sigar-0.7.3/include/sigar_private.h-306- ruby-sigar-0.7.3/include/sigar_private.h:307:#define SIGAR_SIN6_ADDR(s) &SIGAR_SIN6(s)->sin6_addr ruby-sigar-0.7.3/include/sigar_private.h-308- ############################################## ruby-sigar-0.7.3/src/sigar_util.c-499- /* http://svn.red-bean.com/repos/minor/trunk/gc/barriers-ia-32.c */ ruby-sigar-0.7.3/src/sigar_util.c:500: asm volatile ("mov %%ebx, %%esi\n\t" ruby-sigar-0.7.3/src/sigar_util.c-501- "cpuid\n\t" ############################################## ruby-sigar-0.7.3/src/sigar_util.c-515- /* http://svn.red-bean.com/repos/minor/trunk/gc/barriers-amd64.c */ ruby-sigar-0.7.3/src/sigar_util.c:516: asm volatile ("cpuid\n\t" ruby-sigar-0.7.3/src/sigar_util.c-517- : "=a" (id->eax), ############################################## ruby-sigar-0.7.3/src/sigar_util.c-540-{ ruby-sigar-0.7.3/src/sigar_util.c:541: __asm { ruby-sigar-0.7.3/src/sigar_util.c-542- mov edi, id ############################################## ruby-sigar-0.7.3/src/sigar_util.c-757- ruby-sigar-0.7.3/src/sigar_util.c:758:static enum clnt_stat get_sockaddr(struct sockaddr_in *addr, char *host) ruby-sigar-0.7.3/src/sigar_util.c-759-{ ############################################## ruby-sigar-0.7.3/src/sigar_util.c-765- ruby-sigar-0.7.3/src/sigar_util.c:766: if ((addr->sin_addr.s_addr = inet_addr(host)) == -1) { ruby-sigar-0.7.3/src/sigar_util.c-767- if (!(hp = sigar_gethostbyname(host, &data))) { ############################################## ruby-sigar-0.7.3/src/sigar_util.c-792- ruby-sigar-0.7.3/src/sigar_util.c:793: rpc_stat = get_sockaddr(&addr, host); ruby-sigar-0.7.3/src/sigar_util.c-794- if (rpc_stat != RPC_SUCCESS) { ############################################## ruby-sigar-0.7.3/src/sigar_util.c-921- ruby-sigar-0.7.3/src/sigar_util.c:922: if (!dladdr((void *)((uintptr_t)sigar_dlinfo_get), &dli)) { ruby-sigar-0.7.3/src/sigar_util.c-923- sigar_log_printf(sigar, SIGAR_LOG_ERROR, ruby-sigar-0.7.3/src/sigar_util.c:924: "[%s] dladdr(%s) = %s", ruby-sigar-0.7.3/src/sigar_util.c-925- func, SIGAR_FUNC, dlerror()); ############################################## ruby-sigar-0.7.3/src/sigar.c-1513- sigar_net_address_mac_set(ifconfig->hwaddr, ruby-sigar-0.7.3/src/sigar.c:1514: LLADDR(sdl), ruby-sigar-0.7.3/src/sigar.c-1515- sdl->sdl_alen); ############################################## ruby-sigar-0.7.3/src/sigar.c-1661- ruby-sigar-0.7.3/src/sigar.c:1662:#define ifr_s_addr(ifr) \ ruby-sigar-0.7.3/src/sigar.c-1663- ((struct sockaddr_in *)&ifr.ifr_addr)->sin_addr.s_addr ############################################## ruby-sigar-0.7.3/src/sigar.c-1666- sigar_net_address_set(ifconfig->address, ruby-sigar-0.7.3/src/sigar.c:1667: ifr_s_addr(ifr)); ruby-sigar-0.7.3/src/sigar.c-1668- } ############################################## ruby-sigar-0.7.3/src/sigar.c-1671- sigar_net_address_set(ifconfig->netmask, ruby-sigar-0.7.3/src/sigar.c:1672: ifr_s_addr(ifr)); ruby-sigar-0.7.3/src/sigar.c-1673- } ############################################## ruby-sigar-0.7.3/src/sigar.c-1725- sigar_net_address_set(ifconfig->destination, ruby-sigar-0.7.3/src/sigar.c:1726: ifr_s_addr(ifr)); ruby-sigar-0.7.3/src/sigar.c-1727- } ############################################## ruby-sigar-0.7.3/src/sigar.c-1730- sigar_net_address_set(ifconfig->broadcast, ruby-sigar-0.7.3/src/sigar.c:1731: ifr_s_addr(ifr)); ruby-sigar-0.7.3/src/sigar.c-1732- } ############################################## ruby-sigar-0.7.3/src/sigar.c-2068- ruby-sigar-0.7.3/src/sigar.c:2069:static struct hostent *sigar_gethostbyaddr(const char *addr, ruby-sigar-0.7.3/src/sigar.c-2070- int len, int type, ############################################## ruby-sigar-0.7.3/src/sigar.c-2094-#else ruby-sigar-0.7.3/src/sigar.c:2095: if (!(hp = gethostbyaddr(addr, len, type))) { ruby-sigar-0.7.3/src/sigar.c-2096- data->error = h_errno; ############################################## ruby-sigar-0.7.3/src/sigar.c-2197- struct hostent *q = ruby-sigar-0.7.3/src/sigar.c:2198: sigar_gethostbyaddr(p->h_addr_list[i], ruby-sigar-0.7.3/src/sigar.c-2199- p->h_length, ############################################## ruby-sigar-0.7.3/src/sigar.c-2209- sigar_log_printf(sigar, SIGAR_LOG_DEBUG, ruby-sigar-0.7.3/src/sigar.c:2210: "[fqdn] gethostbyaddr(%s) failed: %s", ruby-sigar-0.7.3/src/sigar.c-2211- addr, ############################################## ruby-sigar-0.7.3/src/sigar.c-2227- sigar_log_printf(sigar, SIGAR_LOG_DEBUG, ruby-sigar-0.7.3/src/sigar.c:2228: "[fqdn] gethostbyaddr(%s)=='%s'", ruby-sigar-0.7.3/src/sigar.c-2229- addr, q->h_name); ############################################## ruby-sigar-0.7.3/src/sigar.c-2243- sigar_log_printf(sigar, SIGAR_LOG_DEBUG, ruby-sigar-0.7.3/src/sigar.c:2244: "[fqdn] gethostbyaddr(%s).alias[%d]=='%s'", ruby-sigar-0.7.3/src/sigar.c-2245- addr, j, q->h_aliases[j]); ############################################## ruby-sigar-0.7.3/src/os/win32/win32_sigar.c-2415- ruby-sigar-0.7.3/src/os/win32/win32_sigar.c:2416:static int sigar_get_netif_ipaddr(sigar_t *sigar, ruby-sigar-0.7.3/src/os/win32/win32_sigar.c-2417- DWORD index, ############################################## ruby-sigar-0.7.3/src/os/win32/win32_sigar.c-2860- if (sa->sa_family == AF_INET6) { ruby-sigar-0.7.3/src/os/win32/win32_sigar.c:2861: struct in6_addr *inet6 = SIGAR_SIN6_ADDR(sa); ruby-sigar-0.7.3/src/os/win32/win32_sigar.c-2862- ############################################## ruby-sigar-0.7.3/src/os/win32/win32_sigar.c-2910- ruby-sigar-0.7.3/src/os/win32/win32_sigar.c:2911: status = sigar_get_netif_ipaddr(sigar, ruby-sigar-0.7.3/src/os/win32/win32_sigar.c-2912- ifr->dwIndex, ############################################## ruby-sigar-0.7.3/src/os/hpux/hpux_sigar.c-958- if (ioctl(sock, SIOCGLIFADDR, &iflr) == 0) { ruby-sigar-0.7.3/src/os/hpux/hpux_sigar.c:959: struct in6_addr *addr = SIGAR_SIN6_ADDR(&iflr.iflr_addr); ruby-sigar-0.7.3/src/os/hpux/hpux_sigar.c-960- ############################################## ruby-sigar-0.7.3/src/os/hpux/hpux_sigar.c-964- if (ioctl(sock, SIOCGLIFNETMASK, &iflr) == 0) { ruby-sigar-0.7.3/src/os/hpux/hpux_sigar.c:965: addr = SIGAR_SIN6_ADDR(&iflr.iflr_addr); ruby-sigar-0.7.3/src/os/hpux/hpux_sigar.c-966- ifconfig->prefix6_length = 10; /*XXX*/ ############################################## ruby-sigar-0.7.3/src/os/solaris/solaris_sigar.c-2172- if (ioctl(sock, SIOCGLIFADDR, &lifr) == 0) { ruby-sigar-0.7.3/src/os/solaris/solaris_sigar.c:2173: struct in6_addr *addr = SIGAR_SIN6_ADDR(&lifr.lifr_addr); ruby-sigar-0.7.3/src/os/solaris/solaris_sigar.c-2174- ############################################## ruby-sigar-0.7.3/src/os/aix/aix_sigar.c-1521-/* XXX net_route_list copy-n-pasted from darwin_sigar.c; only diff is getkerninfo instead of sysctl */ ruby-sigar-0.7.3/src/os/aix/aix_sigar.c:1522:#define rt_s_addr(sa) ((struct sockaddr_in *)(sa))->sin_addr.s_addr ruby-sigar-0.7.3/src/os/aix/aix_sigar.c-1523- ############################################## ruby-sigar-0.7.3/src/os/aix/aix_sigar.c-1585- sigar_net_address_set(route->destination, ruby-sigar-0.7.3/src/os/aix/aix_sigar.c:1586: rt_s_addr(sa)); ruby-sigar-0.7.3/src/os/aix/aix_sigar.c-1587- break; ############################################## ruby-sigar-0.7.3/src/os/aix/aix_sigar.c-1590- sigar_net_address_set(route->gateway, ruby-sigar-0.7.3/src/os/aix/aix_sigar.c:1591: rt_s_addr(sa)); ruby-sigar-0.7.3/src/os/aix/aix_sigar.c-1592- } ############################################## ruby-sigar-0.7.3/src/os/aix/aix_sigar.c-1595- sigar_net_address_set(route->mask, ruby-sigar-0.7.3/src/os/aix/aix_sigar.c:1596: rt_s_addr(sa)); ruby-sigar-0.7.3/src/os/aix/aix_sigar.c-1597- break; ############################################## ruby-sigar-0.7.3/src/os/aix/aix_sigar.c-1659- if (ioctl(sock, SIOCGIFADDR6, &ifr) == 0) { ruby-sigar-0.7.3/src/os/aix/aix_sigar.c:1660: struct in6_addr *addr = SIGAR_SIN6_ADDR(&ifr.ifr_Addr); ruby-sigar-0.7.3/src/os/aix/aix_sigar.c-1661- ############################################## ruby-sigar-0.7.3/src/os/aix/aix_sigar.c-1665- if (ioctl(sock, SIOCGIFNETMASK6, &ifr) == 0) { ruby-sigar-0.7.3/src/os/aix/aix_sigar.c:1666: addr = SIGAR_SIN6_ADDR(&ifr.ifr_Addr); ruby-sigar-0.7.3/src/os/aix/aix_sigar.c-1667- ifconfig->prefix6_length = SIGAR_SIN6(&ifr.ifr_Addr)->sin6_len; /*XXX*/ ############################################## ruby-sigar-0.7.3/src/os/darwin/darwin_sigar.c-2467- ruby-sigar-0.7.3/src/os/darwin/darwin_sigar.c:2468:#define rt_s_addr(sa) ((struct sockaddr_in *)(sa))->sin_addr.s_addr ruby-sigar-0.7.3/src/os/darwin/darwin_sigar.c-2469- ############################################## ruby-sigar-0.7.3/src/os/darwin/darwin_sigar.c-2535- sigar_net_address_set(route->destination, ruby-sigar-0.7.3/src/os/darwin/darwin_sigar.c:2536: rt_s_addr(sa)); ruby-sigar-0.7.3/src/os/darwin/darwin_sigar.c-2537- break; ############################################## ruby-sigar-0.7.3/src/os/darwin/darwin_sigar.c-2540- sigar_net_address_set(route->gateway, ruby-sigar-0.7.3/src/os/darwin/darwin_sigar.c:2541: rt_s_addr(sa)); ruby-sigar-0.7.3/src/os/darwin/darwin_sigar.c-2542- } ############################################## ruby-sigar-0.7.3/src/os/darwin/darwin_sigar.c-2545- sigar_net_address_set(route->mask, ruby-sigar-0.7.3/src/os/darwin/darwin_sigar.c:2546: rt_s_addr(sa)); ruby-sigar-0.7.3/src/os/darwin/darwin_sigar.c-2547- break; ############################################## ruby-sigar-0.7.3/src/os/darwin/darwin_sigar.c-2599- */ ruby-sigar-0.7.3/src/os/darwin/darwin_sigar.c:2600:static int has_ifaddr(char *name, size_t name_len) ruby-sigar-0.7.3/src/os/darwin/darwin_sigar.c-2601-{ ############################################## ruby-sigar-0.7.3/src/os/darwin/darwin_sigar.c-2658- if (sdl->sdl_type == IFT_OTHER) { ruby-sigar-0.7.3/src/os/darwin/darwin_sigar.c:2659: if (has_ifaddr(sdl->sdl_data, sdl->sdl_nlen) != SIGAR_OK) { ruby-sigar-0.7.3/src/os/darwin/darwin_sigar.c-2660- break; ############################################## ruby-sigar-0.7.3/src/os/darwin/darwin_sigar.c-2717-{ ruby-sigar-0.7.3/src/os/darwin/darwin_sigar.c:2718: struct in6_addr *addr = SIGAR_SIN6_ADDR(netmask); ruby-sigar-0.7.3/src/os/darwin/darwin_sigar.c-2719- u_char *name = (u_char *)addr; ############################################## ruby-sigar-0.7.3/src/os/darwin/darwin_sigar.c-2770- if (status == SIGAR_OK) { ruby-sigar-0.7.3/src/os/darwin/darwin_sigar.c:2771: struct in6_addr *addr = SIGAR_SIN6_ADDR(ifa->ifa_addr); ruby-sigar-0.7.3/src/os/darwin/darwin_sigar.c-2772- ############################################## ruby-sigar-0.7.3/src/os/darwin/darwin_sigar.c-2822- sigar_net_address_mac_set(ifconfig->hwaddr, ruby-sigar-0.7.3/src/os/darwin/darwin_sigar.c:2823: LLADDR(sdl), ruby-sigar-0.7.3/src/os/darwin/darwin_sigar.c-2824- sdl->sdl_alen); ############################################## ruby-sigar-0.7.3/src/os/darwin/darwin_sigar.c-2831- ruby-sigar-0.7.3/src/os/darwin/darwin_sigar.c:2832:#define ifr_s_addr(ifr) \ ruby-sigar-0.7.3/src/os/darwin/darwin_sigar.c-2833- ((struct sockaddr_in *)&ifr.ifr_addr)->sin_addr.s_addr ############################################## ruby-sigar-0.7.3/src/os/darwin/darwin_sigar.c-2836- sigar_net_address_set(ifconfig->address, ruby-sigar-0.7.3/src/os/darwin/darwin_sigar.c:2837: ifr_s_addr(ifr)); ruby-sigar-0.7.3/src/os/darwin/darwin_sigar.c-2838- } ############################################## ruby-sigar-0.7.3/src/os/darwin/darwin_sigar.c-2841- sigar_net_address_set(ifconfig->netmask, ruby-sigar-0.7.3/src/os/darwin/darwin_sigar.c:2842: ifr_s_addr(ifr)); ruby-sigar-0.7.3/src/os/darwin/darwin_sigar.c-2843- } ############################################## ruby-sigar-0.7.3/src/os/darwin/darwin_sigar.c-2854- sigar_net_address_set(ifconfig->destination, ruby-sigar-0.7.3/src/os/darwin/darwin_sigar.c:2855: ifr_s_addr(ifr)); ruby-sigar-0.7.3/src/os/darwin/darwin_sigar.c-2856- } ############################################## ruby-sigar-0.7.3/src/os/darwin/darwin_sigar.c-2859- sigar_net_address_set(ifconfig->broadcast, ruby-sigar-0.7.3/src/os/darwin/darwin_sigar.c:2860: ifr_s_addr(ifr)); ruby-sigar-0.7.3/src/os/darwin/darwin_sigar.c-2861- } ############################################## ruby-sigar-0.7.3/src/os/darwin/darwin_sigar.c-3403- sigar_net_address_set(arp->address, sin->sin_addr.s_addr); ruby-sigar-0.7.3/src/os/darwin/darwin_sigar.c:3404: sigar_net_address_mac_set(arp->hwaddr, LLADDR(sdl), sdl->sdl_alen); ruby-sigar-0.7.3/src/os/darwin/darwin_sigar.c-3405- if_indextoname(sdl->sdl_index, arp->ifname); ############################################## ruby-sigar-0.7.3/.pc/gnu89-inline.diff/include/sigar_private.h-306- ruby-sigar-0.7.3/.pc/gnu89-inline.diff/include/sigar_private.h:307:#define SIGAR_SIN6_ADDR(s) &SIGAR_SIN6(s)->sin6_addr ruby-sigar-0.7.3/.pc/gnu89-inline.diff/include/sigar_private.h-308-