/packages/modules/DnsResolver/ |
D | getaddrinfo.cpp | 126 static int explore_fqdn(const struct addrinfo*, const char*, const char*, struct addrinfo**, 128 static int explore_null(const struct addrinfo*, const char*, struct addrinfo**); 129 static int explore_numeric(const struct addrinfo*, const char*, const char*, struct addrinfo**, 131 static int explore_numeric_scope(const struct addrinfo*, const char*, const char*, 132 struct addrinfo**); 133 static int get_canonname(const struct addrinfo*, struct addrinfo*, const char*); 134 static struct addrinfo* get_ai(const struct addrinfo*, const struct afd*, const char*); 135 static int get_portmatch(const struct addrinfo*, const char*); 136 static int get_port(const struct addrinfo*, const char*, int); 140 static struct addrinfo* getanswer(const std::vector<uint8_t>&, int, const char*, int, [all …]
|
D | getaddrinfo.h | 22 struct addrinfo; 25 const addrinfo* hints, const android_net_context* netcontext, 26 addrinfo** res, android::net::NetworkDnsEventReported*); 29 int resolv_getaddrinfo(const char* hostname, const char* servname, const addrinfo* hints, 30 const android_net_context* netcontext, addrinfo** res, 34 void resolv_rfc6724_sort(struct addrinfo* list_sentinel, unsigned mark, uid_t uid);
|
D | DnsProxyListener.cpp | 192 int extractGetAddrInfoAnswers(const addrinfo* result, std::vector<std::string>* ip_addrs) { in extractGetAddrInfoAnswers() 197 for (const addrinfo* ai = result; ai; ai = ai->ai_next) { in extractGetAddrInfoAnswers() 389 bool onlyIPv4Answers(const addrinfo* res) { in onlyIPv4Answers() 392 for (const addrinfo* ai = res; ai; ai = ai->ai_next) in onlyIPv4Answers() 426 bool onlyNonSpecialUseIPv4Addresses(const addrinfo* res) { in onlyNonSpecialUseIPv4Addresses() 429 for (const addrinfo* ai = res; ai; ai = ai->ai_next) { in onlyNonSpecialUseIPv4Addresses() 452 void logDnsQueryResult(const addrinfo* res) { in logDnsQueryResult() 457 const addrinfo* ai; in logDnsQueryResult() 523 bool synthesizeNat64PrefixWithARecord(const netdutils::IPPrefix& prefix, addrinfo** res, in synthesizeNat64PrefixWithARecord() 532 addrinfo* const head4 = *res; in synthesizeNat64PrefixWithARecord() [all …]
|
D | DnsProxyListener.h | 25 struct addrinfo; 69 std::unique_ptr<addrinfo> hints, const android_net_context& netcontext); 76 void doDns64Synthesis(int32_t* rv, addrinfo** res, NetworkDnsEventReported* event); 80 std::unique_ptr<addrinfo> mHints;
|
D | resolv_private.h | 183 int getaddrinfo_numeric(const char* hostname, const char* servname, addrinfo hints, 184 addrinfo** result);
|
D | Dns64Configuration.cpp | 153 const struct addrinfo hints = { in doRfc7050PrefixDiscovery() 161 struct addrinfo* res = nullptr; in doRfc7050PrefixDiscovery()
|
/packages/modules/DnsResolver/tests/ |
D | resolv_unit_test.cpp | 165 addrinfo* result = nullptr; in TEST_F() 179 addrinfo placeholder_next = {}; in TEST_F() 185 addrinfo* ai_next; in TEST_F() 208 addrinfo* result = nullptr; in TEST_F() 211 const addrinfo hints = { in TEST_F() 236 addrinfo* result = nullptr; in TEST_F() 237 const addrinfo hints = { in TEST_F() 253 const addrinfo hints = { in TEST_F() 267 addrinfo* result = nullptr; in TEST_F() 311 addrinfo* result = nullptr; in TEST_F() [all …]
|
D | resolv_gold_test.cpp | 185 const auto& args = goldtest.config().addrinfo(); in VerifyGetAddrInfo() 186 const addrinfo hints = { in VerifyGetAddrInfo() 198 addrinfo* res = nullptr; in VerifyGetAddrInfo() 233 queries = goldtest.config().addrinfo().family() == AF_UNSPEC ? 2U : 1U; in VerifyResolver() 234 name = goldtest.config().addrinfo().host(); in VerifyResolver() 291 addrinfo* res = nullptr; in TEST_F() 292 const addrinfo hints = {.ai_family = AF_INET}; in TEST_F() 319 addrinfo* res = nullptr; in TEST_F() 320 const addrinfo hints = {.ai_family = AF_INET}; in TEST_F() 375 addrinfo* res = nullptr; in TEST_F() [all …]
|
D | resolv_test_utils.cpp | 37 std::string ToString(const addrinfo* ai) { in ToString() 82 std::vector<std::string> ToStrings(const addrinfo* ai) { in ToStrings() 154 const struct addrinfo* hints) { in safe_getaddrinfo() 155 addrinfo* result = nullptr; in safe_getaddrinfo()
|
D | resolv_integration_test.cpp | 98 const addrinfo* hints, unsigned netid, unsigned mark, 99 struct addrinfo** result); 135 const addrinfo& hints) { in safe_getaddrinfo_time_taken() 774 const addrinfo hints = {.ai_family = AF_INET}; in TEST_F() 825 const addrinfo hints = { in TEST_F() 829 addrinfo* result = nullptr; in TEST_F() 868 addrinfo hints = {.ai_family = AF_INET}; in TEST_F() 936 addrinfo hints = {.ai_family = AF_UNSPEC, .ai_socktype = SOCK_DGRAM}; in TEST_F() 992 addrinfo hints = {.ai_family = AF_UNSPEC, .ai_socktype = SOCK_DGRAM}; in TEST_F() 1049 addrinfo hints = {.ai_family = AF_UNSPEC, .ai_socktype = SOCK_DGRAM}; in TEST_F() [all …]
|
D | resolv_callback_unit_test.cpp | 155 addrinfo* result = nullptr; in TEST_F() 156 const addrinfo hints = {.ai_family = AF_INET}; in TEST_F()
|
D | resolv_test_utils.h | 420 std::string ToString(const addrinfo* ai); 424 std::vector<std::string> ToStrings(const addrinfo* ai); 432 const struct addrinfo* hints);
|
D | resolv_stress_test.cpp | 54 addrinfo* result = nullptr; in RunGetAddrInfoStressTest()
|
/packages/modules/DnsResolver/tests/dns_responder/ |
D | dns_tls_frontend.cpp | 93 addrinfo frontend_ai_hints{ in startServer() 98 addrinfo* frontend_ai_res = nullptr; in startServer() 108 for (const addrinfo* ai = frontend_ai_res; ai; ai = ai->ai_next) { in startServer() 132 addrinfo backend_ai_hints{.ai_family = AF_UNSPEC, .ai_socktype = SOCK_DGRAM}; in startServer() 133 addrinfo* backend_ai_res = nullptr; in startServer()
|
/packages/modules/DnsResolver/tests/fuzzer/ |
D | resolv_getaddrinfo_fuzzer.cpp | 18 addrinfo hints = {.ai_family = af, .ai_socktype = socktype}; in TestResolvGetaddrinfo() 19 addrinfo* result; in TestResolvGetaddrinfo()
|
/packages/modules/Connectivity/tests/cts/net/jni/ |
D | NativeDnsJni.c | 38 struct addrinfo *answer; in Java_android_net_cts_DnsTest_testNativeDns() 48 struct addrinfo *current = answer; in Java_android_net_cts_DnsTest_testNativeDns() 81 struct addrinfo *current = answer; in Java_android_net_cts_DnsTest_testNativeDns()
|
D | NativeMultinetworkJni.cpp | 348 struct addrinfo *res = NULL; in Java_android_net_cts_MultinetworkApiTest_runGetaddrinfoCheck() 421 const struct addrinfo kHints = { in Java_android_net_cts_MultinetworkApiTest_runDatagramCheck() 427 struct addrinfo *res = NULL; in Java_android_net_cts_MultinetworkApiTest_runDatagramCheck()
|
/packages/modules/Connectivity/staticlibs/netd/libnetdutils/ |
D | InternetAddresses.cpp | 62 const addrinfo hints = { in forString() 65 addrinfo* res; in forString()
|
/packages/modules/adb/ |
D | sysdeps_win32.cpp | 1134 struct addrinfo hints; in network_connect() 1143 struct addrinfo* addrinfo_ptr = nullptr; in network_connect() 1162 std::unique_ptr<struct addrinfo, decltype(&freeaddrinfo)> addrinfo(addrinfo_ptr, freeaddrinfo); in network_connect() local 1168 SOCKET s = socket(addrinfo->ai_family, addrinfo->ai_socktype, addrinfo->ai_protocol); in network_connect() 1181 if (connect(s, addrinfo->ai_addr, addrinfo->ai_addrlen) == SOCKET_ERROR) { in network_connect()
|
/packages/modules/DnsResolver/tests/testdata/ |
D | getaddrinfo.topsite.facebook.pbtxt | 7 addrinfo {
|
D | getaddrinfo.topsite.wikipedia.pbtxt | 7 addrinfo {
|
D | getaddrinfo.topsite.google.pbtxt | 7 addrinfo {
|
D | getaddrinfo.topsite.yahoo.pbtxt | 7 addrinfo {
|
D | getaddrinfo.topsite.amazon.pbtxt | 7 addrinfo {
|
/packages/modules/Connectivity/staticlibs/netd/libnetdutils/include/netdutils/ |
D | InternetAddresses.h | 109 void operator()(struct addrinfo* p) const { in operator() 116 typedef std::unique_ptr<struct addrinfo, struct AddrinfoDeleter> ScopedAddrinfo;
|