Lines Matching refs:addr
9 const char * inet_ntop_cache_get_ip(server *srv, sock_addr *addr) { in inet_ntop_cache_get_ip() argument
13 if (srv->inet_ntop_cache[i].ts != 0 && srv->inet_ntop_cache[i].family == addr->plain.sa_family) { in inet_ntop_cache_get_ip()
15 0 == memcmp(srv->inet_ntop_cache[i].addr.ipv6.s6_addr, addr->ipv6.sin6_addr.s6_addr, 16)) { in inet_ntop_cache_get_ip()
19 srv->inet_ntop_cache[i].addr.ipv4.s_addr == addr->ipv4.sin_addr.s_addr) { in inet_ntop_cache_get_ip()
31 inet_ntop(addr->plain.sa_family, in inet_ntop_cache_get_ip()
32 addr->plain.sa_family == AF_INET6 ? in inet_ntop_cache_get_ip()
33 (const void *) &(addr->ipv6.sin6_addr) : in inet_ntop_cache_get_ip()
34 (const void *) &(addr->ipv4.sin_addr), in inet_ntop_cache_get_ip()
38 srv->inet_ntop_cache[i].family = addr->plain.sa_family; in inet_ntop_cache_get_ip()
41 srv->inet_ntop_cache[i].addr.ipv4.s_addr = addr->ipv4.sin_addr.s_addr; in inet_ntop_cache_get_ip()
43 memcpy(srv->inet_ntop_cache[i].addr.ipv6.s6_addr, addr->ipv6.sin6_addr.s6_addr, 16); in inet_ntop_cache_get_ip()
50 return inet_ntoa(addr->ipv4.sin_addr); in inet_ntop_cache_get_ip()