/packages/modules/DnsResolver/tests/dns_responder/ |
D | dns_tls_frontend.cpp | 96 .ai_socktype = SOCK_STREAM, in startServer() 109 android::base::unique_fd s(socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol)); in startServer() 132 addrinfo backend_ai_hints{.ai_family = AF_UNSPEC, .ai_socktype = SOCK_DGRAM}; in startServer() 142 backend_socket_.reset(socket(backend_ai_res->ai_family, backend_ai_res->ai_socktype, in startServer()
|
D | dns_responder.cpp | 1219 .ai_socktype = socket_type, in createListeningSocket() 1231 unique_fd fd(socket(ai->ai_family, ai->ai_socktype | SOCK_NONBLOCK, ai->ai_protocol)); in createListeningSocket()
|
/packages/modules/DnsResolver/ |
D | getaddrinfo.cpp | 280 switch (hints->ai_socktype) { in validateHints() 290 if (hints->ai_socktype == ANY || hints->ai_protocol == ANY) return 0; in validateHints() 297 if (hints->ai_socktype == ex.e_socktype && hints->ai_protocol != ex.e_protocol) { in validateHints() 348 if (!MATCH(ai.ai_socktype, ex.e_socktype, WILD_SOCKTYPE(ex))) continue; in android_getaddrinfofornetcontext() 353 if (tmp.ai_socktype == ANY && ex.e_socktype != ANY) tmp.ai_socktype = ex.e_socktype; in android_getaddrinfofornetcontext() 357 << " ai_socktype=" << tmp.ai_socktype << " ai_protocol=" << tmp.ai_protocol; in android_getaddrinfofornetcontext() 421 if (!MATCH(ai.ai_socktype, ex.e_socktype, WILD_SOCKTYPE(ex))) continue; in resolv_getaddrinfo() 426 if (tmp.ai_socktype == ANY && ex.e_socktype != ANY) tmp.ai_socktype = ex.e_socktype; in resolv_getaddrinfo() 430 << " ai_socktype=" << tmp.ai_socktype << " ai_protocol=" << tmp.ai_protocol; in resolv_getaddrinfo() 712 switch (ai->ai_socktype) { in get_port() [all …]
|
D | DnsProxyListener.cpp | 469 << " " << ai->ai_socktype << " " << ai->ai_protocol << " " << ip_addr; in logDnsQueryResult() 574 sa->ai_socktype = cur4->ai_socktype; in synthesizeNat64PrefixWithARecord() 844 sendBE32(c, ai->ai_socktype) && sendBE32(c, ai->ai_protocol); in sendaddrinfo() 1000 int ai_socktype = 0; in runCommand() local 1016 if (!ParseInt(argv[5], &ai_socktype)) in runCommand() 1034 if (ai_flags != -1 || ai_family != -1 || ai_socktype != -1 || ai_protocol != -1) { in runCommand() 1038 hints->ai_socktype = ai_socktype; in runCommand()
|
D | res_cache.cpp | 1617 .ai_socktype = SOCK_DGRAM, in isValidServer()
|
/packages/modules/DnsResolver/tests/ |
D | resolv_unit_test.cpp | 214 .ai_socktype = ANY, in TEST_F() 255 .ai_socktype = socktype, in TEST_F() 314 .ai_socktype = socktype, in TEST_F() 340 int ai_socktype; in TEST_F() member 346 return fmt::format("{:#x}/{}/{}/{}", ai_flags, ai_family, ai_socktype, in TEST_F() 389 .ai_socktype = config.ai_socktype, in TEST_F() 966 const addrinfo hints = {.ai_family = config.ai_family, .ai_socktype = SOCK_DGRAM}; in TEST_F() 1184 const addrinfo hints = {.ai_family = family, .ai_socktype = SOCK_STREAM}; in TEST_F()
|
D | resolv_integration_test.cpp | 827 .ai_socktype = SOCK_PACKET, 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() 1333 const addrinfo hints = {.ai_family = AF_INET6, .ai_socktype = SOCK_STREAM}; in TEST_F() 1429 const addrinfo hints = {.ai_family = AF_INET, .ai_socktype = SOCK_DGRAM}; in TEST_F() 1484 const addrinfo hints = {.ai_family = AF_INET, .ai_socktype = SOCK_DGRAM}; in TEST_F() 1614 const addrinfo hints = {.ai_family = AF_UNSPEC, .ai_socktype = SOCK_STREAM}; in TEST_F() 1661 const addrinfo hints = {.ai_family = AF_UNSPEC, .ai_socktype = SOCK_STREAM}; in TEST_F() 1705 addrinfo hints = {.ai_family = AF_UNSPEC, .ai_socktype = SOCK_STREAM}; in TEST_F() [all …]
|
D | resolv_gold_test.cpp | 195 .ai_socktype = args.socktype(), in VerifyGetAddrInfo() 379 const addrinfo hints = {.ai_family = AF_UNSPEC, .ai_socktype = SOCK_STREAM}; in TEST_F()
|
D | resolv_private_dns_test.cpp | 296 const addrinfo hints = {.ai_socktype = SOCK_DGRAM}; in sendQueryAndCheckResult() 328 const addrinfo hints = {.ai_socktype = SOCK_DGRAM}; in expectQueriesAreBlocked()
|
D | dnsresolver_binder_test.cpp | 333 addrinfo hints = {.ai_family = AF_INET, .ai_socktype = SOCK_DGRAM}; in TEST_F()
|
/packages/modules/DnsResolver/tests/fuzzer/ |
D | resolv_getaddrinfo_fuzzer.cpp | 18 addrinfo hints = {.ai_family = af, .ai_socktype = socktype}; in TestResolvGetaddrinfo()
|
/packages/modules/Connectivity/tests/cts/net/jni/ |
D | NativeMultinetworkJni.cpp | 424 .ai_socktype = SOCK_DGRAM, in Java_android_net_cts_MultinetworkApiTest_runDatagramCheck() 440 int fd = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in Java_android_net_cts_MultinetworkApiTest_runDatagramCheck() 443 res->ai_family, res->ai_socktype, res->ai_protocol, errno); in Java_android_net_cts_MultinetworkApiTest_runDatagramCheck()
|
/packages/modules/adb/ |
D | sysdeps_win32.cpp | 1137 hints.ai_socktype = type; in network_connect() 1168 SOCKET s = socket(addrinfo->ai_family, addrinfo->ai_socktype, addrinfo->ai_protocol); in network_connect()
|