Home
last modified time | relevance | path

Searched refs:servname (Results 1 – 6 of 6) sorted by relevance

/packages/modules/DnsResolver/
Dgetaddrinfo.cpp246 int getaddrinfo_numeric(const char* hostname, const char* servname, addrinfo hints, in getaddrinfo_numeric() argument
258 return android_getaddrinfofornetcontext(hostname, servname, &hints, &netcontext, result, in getaddrinfo_numeric()
307 int android_getaddrinfofornetcontext(const char* hostname, const char* servname, in android_getaddrinfofornetcontext() argument
322 if (hostname == nullptr && servname == nullptr) { in android_getaddrinfofornetcontext()
338 error = get_portmatch(&tmp, servname); in android_getaddrinfofornetcontext()
359 error = explore_null(&tmp, servname, &cur->ai_next); in android_getaddrinfofornetcontext()
361 error = explore_numeric_scope(&tmp, hostname, servname, &cur->ai_next); in android_getaddrinfofornetcontext()
382 return resolv_getaddrinfo(hostname, servname, hints, netcontext, res, event); in android_getaddrinfofornetcontext()
394 int resolv_getaddrinfo(const char* _Nonnull hostname, const char* servname, const addrinfo* hints, in resolv_getaddrinfo() argument
397 if (hostname == nullptr && servname == nullptr) return EAI_NONAME; in resolv_getaddrinfo()
[all …]
Dgetaddrinfo.h24 int android_getaddrinfofornetcontext(const char* hostname, const char* servname,
29 int resolv_getaddrinfo(const char* hostname, const char* servname, const addrinfo* hints,
Dresolv_private.h183 int getaddrinfo_numeric(const char* hostname, const char* servname, addrinfo hints,
/packages/modules/DnsResolver/tests/fuzzer/
Dresolv_getaddrinfo_fuzzer.cpp14 std::string servname = fdp.ConsumeRandomLengthString(MAXHOSTNAMELEN); in TestResolvGetaddrinfo() local
22 resolv_getaddrinfo(hostname.c_str(), fdp.ConsumeBool() ? servname.c_str() : nullptr, in TestResolvGetaddrinfo()
/packages/modules/DnsResolver/tests/
Dresolv_unit_test.cpp341 const char* servname; in TEST_F() member
347 servname ? servname : "(null)"); in TEST_F()
394 int rv = resolv_getaddrinfo("localhost", config.servname, &hints, &mNetcontext, &result, in TEST_F()
Dresolv_integration_test.cpp97 extern "C" int android_getaddrinfofornet(const char* hostname, const char* servname,