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.cpp435 sockaddr_ntop(res->ai_addr, res->ai_addrlen, addrstr, sizeof(addrstr)); in Java_android_net_cts_MultinetworkApiTest_runDatagramCheck()
438 rval = connect(fd, res->ai_addr, res->ai_addrlen); in Java_android_net_cts_MultinetworkApiTest_runDatagramCheck()
/packages/modules/DnsResolver/
Dgetaddrinfo.cpp283 if (hints->ai_addrlen || hints->ai_canonname || hints->ai_addr || hints->ai_next) { in validateHints()
655 sin6 = (struct sockaddr_in6*) (void*) cur->ai_addr; in explore_numeric_scope()
694 ai->ai_addr = (struct sockaddr*) (void*) (ai + 1); in get_ai()
695 memset(ai->ai_addr, 0, sizeof(sockaddr_union)); in get_ai()
698 ai->ai_addr->sa_family = ai->ai_family = afd->a_af; in get_ai()
699 p = (char*) (void*) (ai->ai_addr); in get_ai()
768 ((struct sockaddr_in*) (void*) ai->ai_addr)->sin_port = port; in get_port()
771 ((struct sockaddr_in6*) (void*) ai->ai_addr)->sin6_port = port; in get_port()
1205 scope_dst1 = _get_scope(a1->ai->ai_addr); in _rfc6724_compare()
1209 scope_dst2 = _get_scope(a2->ai->ai_addr); in _rfc6724_compare()
[all …]
DDnsProxyListener.cpp186 sockaddr* ai_addr = ai->ai_addr; in extractGetAddrInfoAnswers() local
187 if (ai_addr) { in extractGetAddrInfoAnswers()
188 addIpAddrWithinLimit(ip_addrs, ai_addr, ai->ai_addrlen); in extractGetAddrInfoAnswers()
433 if (isSpecialUseIPv4Address(ai->ai_addr)) return false; in onlyNonSpecialUseIPv4Addresses()
464 int ret = getnameinfo(ai->ai_addr, ai->ai_addrlen, ip_addr, sizeof(ip_addr), nullptr, 0, in logDnsQueryResult()
530 struct sockaddr_in sinOriginal = *(struct sockaddr_in*)ai->ai_addr; in synthesizeNat64PrefixWithARecord()
531 struct sockaddr_in6* sin6 = (struct sockaddr_in6*)ai->ai_addr; in synthesizeNat64PrefixWithARecord()
664 if (!sendLenAndData(c, ai->ai_addrlen, ai->ai_addr)) { in sendaddrinfo()
DDns64Configuration.cpp186 const IPAddress ipv6(reinterpret_cast<sockaddr_in6*>(result->ai_addr)->sin6_addr); in doRfc7050PrefixDiscovery()
DPrivateDnsConfiguration.cpp54 memcpy(parsed, res->ai_addr, res->ai_addrlen); in parseServer()
/packages/modules/DnsResolver/tests/dns_responder/
Ddns_tls_frontend.cpp119 std::string host_str = addr2str(ai->ai_addr, ai->ai_addrlen); in startServer()
120 if (bind(s.get(), ai->ai_addr, ai->ai_addrlen)) { in startServer()
156 connect(backend_socket_.get(), backend_ai_res->ai_addr, backend_ai_res->ai_addrlen)); in startServer()
Ddns_responder.cpp1236 const std::string host_str = addr2str(ai->ai_addr, ai->ai_addrlen); in createListeningSocket()
1239 if (bindSocket(fd.get(), ai->ai_addr, ai->ai_addrlen)) { in createListeningSocket()
/packages/modules/DnsResolver/tests/
Dresolv_test_utils.cpp40 int rv = getnameinfo(ai->ai_addr, ai->ai_addrlen, host, sizeof(host), nullptr, 0, in ToString()
88 int rv = getnameinfo(aip->ai_addr, aip->ai_addrlen, host, sizeof(host), nullptr, 0, in ToStrings()
Dresolv_unit_test.cpp181 sockaddr* ai_addr; in TEST_F() member
188 ai_canonname ? ai_canonname : "(null)", (void*)ai_addr, in TEST_F()
215 .ai_addr = config.ai_addr, in TEST_F()
/packages/modules/adb/
Dsysdeps_win32.cpp1181 if (connect(s, addrinfo->ai_addr, addrinfo->ai_addrlen) == SOCKET_ERROR) { in network_connect()