Searched refs:address_str (Results 1 – 2 of 2) sorted by relevance
213 static char address_str[128]; in get_clients_address() local217 …= inet_ntoa_r(((struct sockaddr_in *)source_addr)->sin_addr, address_str, sizeof(address_str) - 1); in get_clients_address()221 …net6_ntoa_r(((struct sockaddr_in6 *)source_addr)->sin6_addr, address_str, sizeof(address_str) - 1); in get_clients_address()225 address_str[0] = '\0'; // Returns empty string if conversion didn't succeed in get_clients_address()227 return address_str; in get_clients_address()
146 …static char address_str[40]; // 40=(8*4+7+term) is the max size of ascii IPv6 addr "XXXX:XX...XX:X… in get_string_address() local150 …res = inet_ntoa_r(((struct sockaddr_in *)source_addr)->sin_addr, address_str, sizeof(address_str)); in get_string_address()154 … = inet6_ntoa_r(((struct sockaddr_in6 *)source_addr)->sin6_addr, address_str, sizeof(address_str)); in get_string_address()158 address_str[0] = '\0'; // Returns empty string if conversion didn't succeed in get_string_address()160 return address_str; in get_string_address()