/aosp12/system/core/libcutils/ |
H A D | socket_network_client_windows.cpp | 41 hints.ai_socktype = type; in socket_network_client() 54 SOCKET sock = socket(address->ai_family, address->ai_socktype, in socket_network_client()
|
H A D | socket_network_client_unix.cpp | 51 hints.ai_socktype = type; in socket_network_client_timeout()
|
/aosp12/system/netd/tests/ |
H A D | netd_client_test.cpp | 71 .ai_socktype = SOCK_DGRAM, in expectHasNetworking() 94 .ai_socktype = SOCK_DGRAM, in expectNoNetworking()
|
H A D | binder_test.cpp | 797 .ai_socktype = SOCK_STREAM, in TEST_F() 897 .ai_socktype = SOCK_DGRAM, in interfaceHasAddress()
|
/aosp12/packages/modules/DnsResolver/tests/dns_responder/ |
H A D | dns_tls_frontend.cpp | 100 .ai_socktype = SOCK_STREAM, in startServer() 113 android::base::unique_fd s(socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol)); in startServer() 136 addrinfo backend_ai_hints{.ai_family = AF_UNSPEC, .ai_socktype = SOCK_DGRAM}; in startServer() 146 backend_socket_.reset(socket(backend_ai_res->ai_family, backend_ai_res->ai_socktype, in startServer()
|
H A D | dns_responder.cpp | 1216 .ai_socktype = socket_type, in createListeningSocket() 1229 socket(ai->ai_family, ai->ai_socktype | SOCK_NONBLOCK, ai->ai_protocol)); in createListeningSocket()
|
/aosp12/bionic/tests/ |
H A D | netdb_test.cpp | 57 if (p->ai_socktype == SOCK_STREAM) { in TEST() 60 } else if (p->ai_socktype == SOCK_DGRAM) { in TEST() 74 ASSERT_EQ(SOCK_STREAM, ai->ai_socktype); in TEST() 84 hints.ai_socktype = SOCK_STREAM; in TEST() 95 ASSERT_EQ(SOCK_STREAM, tai->ai_socktype); in TEST()
|
/aosp12/packages/modules/DnsResolver/ |
H A D | getaddrinfo.cpp | 295 switch (hints->ai_socktype) { in validateHints() 305 if (hints->ai_socktype == ANY || hints->ai_protocol == ANY) return 0; in validateHints() 312 if (hints->ai_socktype == ex.e_socktype && hints->ai_protocol != ex.e_protocol) { in validateHints() 363 if (!MATCH(ai.ai_socktype, ex.e_socktype, WILD_SOCKTYPE(ex))) continue; in android_getaddrinfofornetcontext() 368 if (tmp.ai_socktype == ANY && ex.e_socktype != ANY) tmp.ai_socktype = ex.e_socktype; in android_getaddrinfofornetcontext() 372 << " ai_socktype=" << tmp.ai_socktype << " ai_protocol=" << tmp.ai_protocol; in android_getaddrinfofornetcontext() 436 if (!MATCH(ai.ai_socktype, ex.e_socktype, WILD_SOCKTYPE(ex))) continue; in resolv_getaddrinfo() 441 if (tmp.ai_socktype == ANY && ex.e_socktype != ANY) tmp.ai_socktype = ex.e_socktype; in resolv_getaddrinfo() 445 << " ai_socktype=" << tmp.ai_socktype << " ai_protocol=" << tmp.ai_protocol; in resolv_getaddrinfo() 729 switch (ai->ai_socktype) { in get_port() [all …]
|
H A D | DnsProxyListener.cpp | 468 << " " << ai->ai_socktype << " " << ai->ai_protocol; in logDnsQueryResult() 658 sendBE32(c, ai->ai_socktype) && sendBE32(c, ai->ai_protocol); in sendaddrinfo() 825 int ai_socktype = strtol(argv[5], nullptr, 10); in runCommand() local 839 if (ai_flags != -1 || ai_family != -1 || ai_socktype != -1 || ai_protocol != -1) { in runCommand() 843 hints->ai_socktype = ai_socktype; in runCommand()
|
H A D | res_cache.cpp | 1590 .ai_socktype = SOCK_DGRAM, in isValidServer()
|
/aosp12/bionic/libc/dns/net/ |
H A D | getaddrinfo.c | 437 hints == NULL ? -1 : hints->ai_socktype, in android_getaddrinfo_proxy() 496 readBE32(proxy, &ai->ai_socktype) && in android_getaddrinfo_proxy() 608 pai->ai_socktype = ANY; in android_getaddrinfofornetcontext() 648 if (pai->ai_socktype == ex->e_socktype in android_getaddrinfofornetcontext() 701 if (pai->ai_socktype == ANY && ex->e_socktype != ANY) in android_getaddrinfofornetcontext() 702 pai->ai_socktype = ex->e_socktype; in android_getaddrinfofornetcontext() 752 if (!MATCH(pai->ai_socktype, ex->e_socktype, in android_getaddrinfofornetcontext() 761 if (pai->ai_socktype == ANY && ex->e_socktype != ANY) in android_getaddrinfofornetcontext() 762 pai->ai_socktype = ex->e_socktype; in android_getaddrinfofornetcontext() 1164 switch (ai->ai_socktype) { in get_port() [all …]
|
/aosp12/packages/modules/DnsResolver/tests/ |
H A D | resolv_unit_test.cpp | 211 .ai_socktype = ANY, in TEST_F() 252 .ai_socktype = socktype, in TEST_F() 311 .ai_socktype = socktype, in TEST_F() 337 int ai_socktype; in TEST_F() member 343 return StringPrintf("0x%x/%d/%d/%s", ai_flags, ai_family, ai_socktype, in TEST_F() 386 .ai_socktype = config.ai_socktype, in TEST_F() 991 const addrinfo hints = {.ai_family = family, .ai_socktype = SOCK_STREAM}; in TEST_F()
|
H A 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()
|
H A D | resolv_integration_test.cpp | 810 .ai_socktype = SOCK_PACKET, in TEST_F() 1132 const addrinfo hints = {.ai_family = AF_INET6, .ai_socktype = SOCK_STREAM}; in TEST_F() 1467 const addrinfo hints = {.ai_family = AF_UNSPEC, .ai_socktype = SOCK_STREAM}; in TEST_F() 1722 const addrinfo hints = {.ai_family = AF_INET, .ai_socktype = SOCK_DGRAM}; in TEST_F() 2989 addrinfo hints = {.ai_family = AF_INET, .ai_socktype = SOCK_DGRAM}; in TEST_F() 3043 addrinfo hints = {.ai_family = AF_INET, .ai_socktype = SOCK_DGRAM}; in TEST_F() 3075 addrinfo hints = {.ai_family = AF_INET, .ai_socktype = SOCK_DGRAM}; in TEST_F() 3380 .ai_socktype = 0, // any type in TEST_F() 5172 const addrinfo hints = {.ai_family = AF_INET, .ai_socktype = SOCK_DGRAM}; in TEST_F() 5768 const addrinfo hints = {.ai_family = AF_INET6, .ai_socktype = SOCK_DGRAM}; in TEST_F() [all …]
|
H A D | dnsresolver_binder_test.cpp | 397 addrinfo hints = {.ai_family = AF_INET, .ai_socktype = SOCK_DGRAM}; in TEST_F()
|
/aosp12/system/extras/multinetwork/ |
H A D | dnschk.cpp | 41 .ai_socktype = SOCK_DGRAM, in main()
|
H A D | httpurl.cpp | 112 .ai_socktype = SOCK_STREAM, in resolveHostname()
|
/aosp12/packages/modules/Connectivity/tests/cts/net/jni/ |
H A D | NativeMultinetworkJni.cpp | 401 .ai_socktype = SOCK_DGRAM, in Java_android_net_cts_MultinetworkApiTest_runDatagramCheck() 417 int fd = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in Java_android_net_cts_MultinetworkApiTest_runDatagramCheck() 420 res->ai_family, res->ai_socktype, res->ai_protocol, errno); in Java_android_net_cts_MultinetworkApiTest_runDatagramCheck()
|
/aosp12/frameworks/native/libs/binder/ |
H A D | RpcSocketAddress.h | 94 .ai_socktype = SOCK_STREAM, in getAddrInfo()
|
/aosp12/bionic/libc/include/ |
H A D | netdb.h | 113 int ai_socktype; /* SOCK_xxx */ member
|
/aosp12/bionic/tests/headers/posix/ |
H A D | netdb_h.c | 66 STRUCT_MEMBER(struct addrinfo, int, ai_socktype); in netdb_h()
|
/aosp12/system/core/libnetutils/ |
H A D | ifc_utils.c | 110 hints.ai_socktype = SOCK_DGRAM; in string_to_ip()
|
/aosp12/bionic/libc/dns/resolv/ |
H A D | res_init.c | 366 hints.ai_socktype = SOCK_DGRAM; /*dummy*/ in __res_vinit()
|
H A D | res_cache.c | 2019 .ai_socktype = SOCK_DGRAM, in _resolv_set_nameservers_for_net()
|
/aosp12/packages/modules/adb/ |
H A 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()
|