Home
last modified time | relevance | path

Searched refs:ai_addr (Results 1 – 11 of 11) sorted by relevance

/packages/modules/Connectivity/tests/cts/net/jni/
DNativeDnsJni.c51 if (current->ai_addr->sa_family == AF_INET) { in Java_android_net_cts_DnsTest_testNativeDns()
52 inet_ntop(current->ai_family, &((struct sockaddr_in *)current->ai_addr)->sin_addr, in Java_android_net_cts_DnsTest_testNativeDns()
56 } else if (current->ai_addr->sa_family == AF_INET6) { in Java_android_net_cts_DnsTest_testNativeDns()
57 inet_ntop(current->ai_family, &((struct sockaddr_in6 *)current->ai_addr)->sin6_addr, in Java_android_net_cts_DnsTest_testNativeDns()
84 if (current->ai_addr->sa_family == AF_INET) { in Java_android_net_cts_DnsTest_testNativeDns()
85 inet_ntop(current->ai_family, &((struct sockaddr_in *)current->ai_addr)->sin_addr, in Java_android_net_cts_DnsTest_testNativeDns()
89 } else if (current->ai_addr->sa_family == AF_INET6) { in Java_android_net_cts_DnsTest_testNativeDns()
90 inet_ntop(current->ai_family, &((struct sockaddr_in6 *)current->ai_addr)->sin6_addr, in Java_android_net_cts_DnsTest_testNativeDns()
DNativeMultinetworkJni.cpp458 sockaddr_ntop(res->ai_addr, res->ai_addrlen, addrstr, sizeof(addrstr)); in Java_android_net_cts_MultinetworkApiTest_runDatagramCheck()
461 rval = connect(fd, res->ai_addr, res->ai_addrlen); in Java_android_net_cts_MultinetworkApiTest_runDatagramCheck()
/packages/modules/DnsResolver/tests/
Dresolv_test_utils.cpp40 const sockaddr* ai_addr = ai->ai_addr; in ToString() local
43 getnameinfo(ai_addr, ai->ai_addrlen, host, sizeof(host), nullptr, 0, NI_NUMERICHOST); in ToString()
89 const sockaddr* ai_addr = aip->ai_addr; in ToStrings() local
91 const int rv = getnameinfo(ai_addr, aip->ai_addrlen, host, sizeof(host), nullptr, 0, in ToStrings()
Dresolv_unit_test.cpp184 sockaddr* ai_addr; in TEST_F() member
191 ai_canonname ? ai_canonname : "(null)", (void*)ai_addr, in TEST_F()
218 .ai_addr = config.ai_addr, in TEST_F()
/packages/modules/DnsResolver/
Dgetaddrinfo.cpp268 if (hints->ai_addrlen || hints->ai_canonname || hints->ai_addr || hints->ai_next) { in validateHints()
640 sin6 = (struct sockaddr_in6*) (void*) cur->ai_addr; in explore_numeric_scope()
679 ai->ai_addr = (struct sockaddr*) (void*) (ai + 1); in get_ai()
681 ai->ai_addr->sa_family = ai->ai_family = afd->a_af; in get_ai()
682 p = (char*) (void*) (ai->ai_addr); in get_ai()
750 ((struct sockaddr_in*) (void*) ai->ai_addr)->sin_port = port; in get_port()
753 ((struct sockaddr_in6*) (void*) ai->ai_addr)->sin6_port = port; in get_port()
1181 scope_dst1 = _get_scope(a1->ai->ai_addr); in _rfc6724_compare()
1185 scope_dst2 = _get_scope(a2->ai->ai_addr); in _rfc6724_compare()
1204 label_dst1 = _get_label(a1->ai->ai_addr); in _rfc6724_compare()
[all …]
DDnsProxyListener.cpp198 sockaddr* ai_addr = ai->ai_addr; in extractGetAddrInfoAnswers() local
199 if (ai_addr) { in extractGetAddrInfoAnswers()
200 addIpAddrWithinLimit(ip_addrs, ai_addr, ai->ai_addrlen); in extractGetAddrInfoAnswers()
431 if (isSpecialUseIPv4Address(ai->ai_addr)) return false; in onlyNonSpecialUseIPv4Addresses()
463 const sockaddr* ai_addr = ai->ai_addr; in logDnsQueryResult() local
465 const int ret = getnameinfo(ai_addr, ai->ai_addrlen, ip_addr, sizeof(ip_addr), nullptr, 0, in logDnsQueryResult()
577 sa->ai_addr = (sockaddr*)(sa + 1); in synthesizeNat64PrefixWithARecord()
595 const sockaddr_in* sin4 = (sockaddr_in*)cur4->ai_addr; in synthesizeNat64PrefixWithARecord()
596 sockaddr_in6* sin6 = (sockaddr_in6*)sa->ai_addr; in synthesizeNat64PrefixWithARecord()
850 if (!sendLenAndData(c, ai->ai_addrlen, ai->ai_addr)) { in sendaddrinfo()
DDns64Configuration.cpp185 const IPAddress ipv6(reinterpret_cast<sockaddr_in6*>(result->ai_addr)->sin6_addr); in doRfc7050PrefixDiscovery()
/packages/modules/Connectivity/staticlibs/netd/libnetdutils/
DInternetAddresses.cpp75 sockaddr_in* sin = (sockaddr_in*) res[0].ai_addr; in forString()
80 sockaddr_in6* sin6 = (sockaddr_in6*) res[0].ai_addr; in forString()
/packages/modules/DnsResolver/tests/dns_responder/
Ddns_tls_frontend.cpp115 std::string host_str = addr2str(ai->ai_addr, ai->ai_addrlen); in startServer()
116 if (bind(s.get(), ai->ai_addr, ai->ai_addrlen)) { in startServer()
152 connect(backend_socket_.get(), backend_ai_res->ai_addr, backend_ai_res->ai_addrlen)); in startServer()
Ddns_responder.cpp1238 const std::string host_str = addr2str(ai->ai_addr, ai->ai_addrlen); in createListeningSocket()
1285 if (auto result = bindSocket(fd.get(), ai->ai_addr, ai->ai_addrlen); !result.ok()) { in createListeningSocket()
/packages/modules/adb/
Dsysdeps_win32.cpp1181 if (connect(s, addrinfo->ai_addr, addrinfo->ai_addrlen) == SOCKET_ERROR) { in network_connect()