Home
last modified time | relevance | path

Searched refs:host_str (Results 1 – 2 of 2) sorted by relevance

/system/netd/resolv/dns_responder/
Ddns_tls_frontend.cpp71 char host_str[NI_MAXHOST] = { 0 }; in addr2str() local
72 int rv = getnameinfo(sa, sa_len, host_str, sizeof(host_str), nullptr, 0, in addr2str()
74 if (rv == 0) return std::string(host_str); in addr2str()
215 std::string host_str = addr2str(ai->ai_addr, ai->ai_addrlen); in startServer() local
217 APLOGI("failed to bind TCP %s:%s", host_str.c_str(), listen_service_.c_str()); in startServer()
220 ALOGI("bound to TCP %s:%s", host_str.c_str(), listen_service_.c_str()); in startServer()
Ddns_responder.cpp74 char host_str[NI_MAXHOST] = { 0 }; in addr2str() local
75 int rv = getnameinfo(sa, sa_len, host_str, sizeof(host_str), nullptr, 0, in addr2str()
77 if (rv == 0) return std::string(host_str); in addr2str()
614 std::string host_str = addr2str(ai->ai_addr, ai->ai_addrlen); in startServer() local
616 APLOGI("failed to bind UDP %s:%s", host_str.c_str(), listen_service_.c_str()); in startServer()
619 ALOGI("bound to UDP %s:%s", host_str.c_str(), listen_service_.c_str()); in startServer()
960 std::string host_str = addr2str(reinterpret_cast<const sockaddr*>(&sa), sa_len); in handleQuery() local
962 DBGLOG("sent %zu bytes to %s", len, host_str.c_str()); in handleQuery()
964 APLOGI("sendto() failed for %s", host_str.c_str()); in handleQuery()