Home
last modified time | relevance | path

Searched refs:addrinfo (Results 1 – 25 of 36) sorted by relevance

12

/packages/modules/DnsResolver/
Dgetaddrinfo.cpp126 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 …]
Dgetaddrinfo.h22 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);
DDnsProxyListener.cpp192 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 …]
DDnsProxyListener.h25 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;
Dresolv_private.h183 int getaddrinfo_numeric(const char* hostname, const char* servname, addrinfo hints,
184 addrinfo** result);
DDns64Configuration.cpp153 const struct addrinfo hints = { in doRfc7050PrefixDiscovery()
161 struct addrinfo* res = nullptr; in doRfc7050PrefixDiscovery()
/packages/modules/DnsResolver/tests/
Dresolv_unit_test.cpp165 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 …]
Dresolv_gold_test.cpp185 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 …]
Dresolv_test_utils.cpp37 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()
Dresolv_integration_test.cpp98 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 …]
Dresolv_callback_unit_test.cpp155 addrinfo* result = nullptr; in TEST_F()
156 const addrinfo hints = {.ai_family = AF_INET}; in TEST_F()
Dresolv_test_utils.h420 std::string ToString(const addrinfo* ai);
424 std::vector<std::string> ToStrings(const addrinfo* ai);
432 const struct addrinfo* hints);
Dresolv_stress_test.cpp54 addrinfo* result = nullptr; in RunGetAddrInfoStressTest()
/packages/modules/DnsResolver/tests/dns_responder/
Ddns_tls_frontend.cpp93 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/
Dresolv_getaddrinfo_fuzzer.cpp18 addrinfo hints = {.ai_family = af, .ai_socktype = socktype}; in TestResolvGetaddrinfo()
19 addrinfo* result; in TestResolvGetaddrinfo()
/packages/modules/Connectivity/tests/cts/net/jni/
DNativeDnsJni.c38 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()
DNativeMultinetworkJni.cpp348 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/
DInternetAddresses.cpp62 const addrinfo hints = { in forString()
65 addrinfo* res; in forString()
/packages/modules/adb/
Dsysdeps_win32.cpp1134 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/
Dgetaddrinfo.topsite.facebook.pbtxt7 addrinfo {
Dgetaddrinfo.topsite.wikipedia.pbtxt7 addrinfo {
Dgetaddrinfo.topsite.google.pbtxt7 addrinfo {
Dgetaddrinfo.topsite.yahoo.pbtxt7 addrinfo {
Dgetaddrinfo.topsite.amazon.pbtxt7 addrinfo {
/packages/modules/Connectivity/staticlibs/netd/libnetdutils/include/netdutils/
DInternetAddresses.h109 void operator()(struct addrinfo* p) const { in operator()
116 typedef std::unique_ptr<struct addrinfo, struct AddrinfoDeleter> ScopedAddrinfo;

12