Searched refs:ai_addr (Results 1 – 11 of 11) sorted by relevance
/packages/modules/Connectivity/tests/cts/net/jni/ |
D | NativeDnsJni.c | 51 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()
|
D | NativeMultinetworkJni.cpp | 435 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/ |
D | getaddrinfo.cpp | 283 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 …]
|
D | DnsProxyListener.cpp | 186 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()
|
D | Dns64Configuration.cpp | 186 const IPAddress ipv6(reinterpret_cast<sockaddr_in6*>(result->ai_addr)->sin6_addr); in doRfc7050PrefixDiscovery()
|
D | PrivateDnsConfiguration.cpp | 54 memcpy(parsed, res->ai_addr, res->ai_addrlen); in parseServer()
|
/packages/modules/DnsResolver/tests/dns_responder/ |
D | dns_tls_frontend.cpp | 119 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()
|
D | dns_responder.cpp | 1236 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/ |
D | resolv_test_utils.cpp | 40 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()
|
D | resolv_unit_test.cpp | 181 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/ |
D | sysdeps_win32.cpp | 1181 if (connect(s, addrinfo->ai_addr, addrinfo->ai_addrlen) == SOCKET_ERROR) { in network_connect()
|