Home
last modified time | relevance | path

Searched refs:ai_family (Results 1 – 25 of 157) sorted by relevance

1234567

/third_party/musl/libc-test/src/functionalext/supplement/network/
Dgetaddrinfo.c38 hint.ai_family = AF_UNSPEC; in getaddrinfo_0100()
55 hint.ai_family = AF_UNSPEC; in getaddrinfo_0200()
73 hint.ai_family = AF_INET6; in getaddrinfo_0300()
91 hint.ai_family = AF_INET6; in getaddrinfo_0400()
108 hint.ai_family = AF_UNSPEC; in getaddrinfo_0500()
126 hint.ai_family = AF_UNSPEC; in getaddrinfo_0600()
144 hint.ai_family = AF_UNSPEC; in getaddrinfo_0700()
176 hint.ai_family = AF_UNSPEC; in getaddrinfo_0900()
190 hint.ai_family = PF_AX25; in getaddrinfo_1000()
205 hint.ai_family = AF_INET6; in getaddrinfo_1100()
[all …]
/third_party/lwip/src/api/
Dnetdb.c278 int ai_family; in lwip_getaddrinfo() local
289 ai_family = hints->ai_family; in lwip_getaddrinfo()
290 if ((ai_family != AF_UNSPEC) in lwip_getaddrinfo()
292 && (ai_family != AF_INET) in lwip_getaddrinfo()
295 && (ai_family != AF_INET6) in lwip_getaddrinfo()
301 ai_family = AF_UNSPEC; in lwip_getaddrinfo()
325 if ((IP_IS_V6_VAL(addr) && ai_family == AF_INET) || in lwip_getaddrinfo()
326 (IP_IS_V4_VAL(addr) && ai_family == AF_INET6)) { in lwip_getaddrinfo()
334 if (ai_family == AF_INET) { in lwip_getaddrinfo()
336 } else if (ai_family == AF_INET6) { in lwip_getaddrinfo()
[all …]
/third_party/toybox/toys/net/
Dping.c127 if (family && family!=ai->ai_family) continue; in ping_main()
128 if (ai->ai_family!=AF_INET && ai->ai_family!=AF_INET6) continue; in ping_main()
133 if (!ifa->ifa_addr || ifa->ifa_addr->sa_family!=ai->ai_family in ping_main()
147 sa->sa_family = ai->ai_family; in ping_main()
148 TT.sock = socket(ai->ai_family, SOCK_DGRAM, in ping_main()
149 len = (ai->ai_family == AF_INET) ? IPPROTO_ICMP : IPPROTO_ICMPV6); in ping_main()
169 if (ai->ai_family == AF_INET) in ping_main()
212 ih->type = (ai->ai_family == AF_INET) ? 8 : 128; in ping_main()
/third_party/toybox/porting/liteos_a/toys/net/
Dping.c131 if (family && family!=ai->ai_family) continue; in ping_main()
132 if (ai->ai_family!=AF_INET && ai->ai_family!=AF_INET6) continue; in ping_main()
137 if (!ifa->ifa_addr || ifa->ifa_addr->sa_family!=ai->ai_family in ping_main()
151 sa->sa_family = ai->ai_family; in ping_main()
152 TT.sock = socket(ai->ai_family, SOCK_RAW, in ping_main()
153 len = (ai->ai_family == AF_INET) ? IPPROTO_ICMP : IPPROTO_ICMPV6); in ping_main()
174 if (ai->ai_family == AF_INET) in ping_main()
215 ih->type = (ai->ai_family == AF_INET) ? 8 : 128; in ping_main()
/third_party/node/deps/cares/src/lib/
Dares__readaddrinfo.c53 switch (hints->ai_family) { in ares__readaddrinfo()
175 if ((hints->ai_family == AF_INET) || (hints->ai_family == AF_UNSPEC)) in ares__readaddrinfo()
187 if ((hints->ai_family == AF_INET6) || (hints->ai_family == AF_UNSPEC)) in ares__readaddrinfo()
Dares__addrinfo_localhost.c68 node->ai_family = AF_INET; in ares_append_ai_node()
88 node->ai_family = AF_INET6; in ares_append_ai_node()
209 switch (hints->ai_family) { in ares__addrinfo_localhost()
224 result = ares__system_loopback_addrs(hints->ai_family, port, &nodes); in ares__addrinfo_localhost()
228 result = ares__default_loopback_addrs(hints->ai_family, port, &nodes); in ares__addrinfo_localhost()
Dares__addrinfo2hostent.c69 family = ai->nodes->ai_family; in ares__addrinfo2hostent()
74 if(next->ai_family == family) in ares__addrinfo2hostent()
155 if(next->ai_family == family) in ares__addrinfo2hostent()
233 if(next->ai_family == family) in ares__addrinfo2addrttl()
/third_party/libwebsockets/lib/core-net/client/
Dconmon.c62 if (ai->ai_family != cai->ai_family && in lws_conmon_append_copy_new_dns_results()
67 ((ai->ai_family == AF_INET && in lws_conmon_append_copy_new_dns_results()
74 (ai->ai_family == AF_INET6 && in lws_conmon_append_copy_new_dns_results()
/third_party/curl/lib/
Dcurl_addrinfo.c134 if(ai->ai_family == AF_INET) in Curl_getaddrinfo_ex()
137 else if(ai->ai_family == AF_INET6) in Curl_getaddrinfo_ex()
161 ca->ai_family = ai->ai_family; in Curl_getaddrinfo_ex()
308 ai->ai_family = he->h_addrtype; in Curl_he2ai()
318 switch(ai->ai_family) { in Curl_he2ai()
495 ai->ai_family = AF_UNIX; in Curl_unix2addr()
580 switch(ca->ai_family) { in Curl_addrinfo_set_port()
Dhostip6.c112 ai->ai_family, ai->ai_canonname ? ai->ai_canonname : "<none>"); in dump_addrinfo()
152 hints.ai_family = pf; in Curl_getaddrinfo()
/third_party/boost/boost/asio/ip/
Dbasic_resolver_query.hpp71 hints_.ai_family = PF_UNSPEC; in basic_resolver_query()
108 hints_.ai_family = protocol.family(); in basic_resolver_query()
156 hints_.ai_family = BOOST_ASIO_OS_DEF(AF_UNSPEC); in basic_resolver_query()
207 hints_.ai_family = protocol.family(); in basic_resolver_query()
Dbasic_resolver_results.hpp141 if (address_info->ai_family == BOOST_ASIO_OS_DEF(AF_INET) in create()
142 || address_info->ai_family == BOOST_ASIO_OS_DEF(AF_INET6)) in create()
207 if (hints.ai_family == BOOST_ASIO_OS_DEF(AF_INET)
212 if (hints.ai_family == BOOST_ASIO_OS_DEF(AF_INET6)
/third_party/boost/libs/asio/include/boost/asio/ip/
Dbasic_resolver_query.hpp71 hints_.ai_family = PF_UNSPEC; in basic_resolver_query()
108 hints_.ai_family = protocol.family(); in basic_resolver_query()
156 hints_.ai_family = BOOST_ASIO_OS_DEF(AF_UNSPEC); in basic_resolver_query()
207 hints_.ai_family = protocol.family(); in basic_resolver_query()
Dbasic_resolver_results.hpp141 if (address_info->ai_family == BOOST_ASIO_OS_DEF(AF_INET) in create()
142 || address_info->ai_family == BOOST_ASIO_OS_DEF(AF_INET6)) in create()
207 if (hints.ai_family == BOOST_ASIO_OS_DEF(AF_INET)
212 if (hints.ai_family == BOOST_ASIO_OS_DEF(AF_INET6)
/third_party/python/Modules/
Dgetaddrinfo.c177 (ai)->ai_addr->sa_family = (ai)->ai_family = (gai_afd)->a_af;\
192 (ai)->ai_addr->sa_family = (ai)->ai_family = (gai_afd)->a_af;\
267 pai->ai_family = PF_UNSPEC; in getaddrinfo()
285 switch (hints->ai_family) { in getaddrinfo()
387 if (!(pai->ai_family == PF_UNSPEC in getaddrinfo()
388 || pai->ai_family == gai_afd->a_af)) { in getaddrinfo()
440 if (pai->ai_family == gai_afdl[i].a_af || in getaddrinfo()
441 pai->ai_family == PF_UNSPEC) { in getaddrinfo()
466 error = get_addr(hostname, pai->ai_family, &top, pai, port); in getaddrinfo()
/third_party/ltp/testcases/network/lib6/
Dgetaddrinfo_01.c56 ret |= p->ai_family != family; in verify_res()
67 if (p->ai_family == AF_INET) { in verify_res()
96 p->ai_family, p->ai_addrlen, sin_family, in verify_res()
118 hints.ai_family = family; in check_addrinfo()
143 hints.ai_family = family; in check_addrinfo_name()
/third_party/ltp/testcases/network/stress/ns-tools/
Dns-common.c445 hints.ai_family = family; in get_maddrinfo()
543 hints.ai_family = mainfo_p->ai_family; in create_source_filter()
550 hints.ai_family = mainfo_p->ai_family; in create_source_filter()
Dns-udpserver.c279 hints.ai_family = family; in main()
296 sock_fd = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in main()
302 if (res->ai_family == PF_INET6) { in main()
/third_party/libuv/src/win/
Dgetaddrinfo.c57 int ai_family; member
163 addrinfo_ptr->ai_family = addrinfow_ptr->ai_family; in uv__getaddrinfo_done()
364 req->addrinfow->ai_family = hints->ai_family; in uv_getaddrinfo()
/third_party/skia/third_party/externals/swiftshader/src/System/
DSocket.cpp42 hints.ai_family = AF_INET; in Socket()
52 socket = ::socket(info->ai_family, info->ai_socktype, info->ai_protocol); in Socket()
/third_party/skia/third_party/externals/swiftshader/src/Common/
DSocket.cpp41 hints.ai_family = AF_INET; in Socket()
51 socket = ::socket(info->ai_family, info->ai_socktype, info->ai_protocol); in Socket()
/third_party/alsa-utils/seq/aseqnet/
Daseqnet.c320 switch (rp->ai_family) { in get_net_addr()
331 inet_ntop(rp->ai_family, ptr, buf, buflen-1); in get_net_addr()
357 hints.ai_family = ipv6 ? AF_INET6 : AF_INET; in init_server()
366 if ((sockfd = socket(rp->ai_family, rp->ai_socktype, rp->ai_protocol)) < 0){ in init_server()
442 hints.ai_family = AF_UNSPEC; in init_client()
451 if ((fd = socket(rp->ai_family, rp->ai_socktype, rp->ai_protocol)) < 0){ in init_client()
/third_party/libwebsockets/minimal-examples/raw/minimal-raw-adopt-tcp/
Dminimal-raw-adopt-tcp.c142 h.ai_family = AF_UNSPEC; /* Allow IPv4 or IPv6 */ in main()
153 sock.sockfd = socket(rp->ai_family, rp->ai_socktype, rp->ai_protocol); in main()
/third_party/grpc/test/core/client_channel/
Dparse_address_with_named_scope_id_test.cc70 hints.ai_family = AF_INET6; in resolve_with_gettaddrinfo()
86 GPR_ASSERT(result->ai_family == AF_INET6); in resolve_with_gettaddrinfo()
/third_party/musl/src/network/
Dres_cache.c99 .ai_family = (int) addr_info[i].ai_family, in dns_get_addr_info_from_netsys_cache()

1234567