/external/ltp/testcases/network/lib6/ |
D | getaddrinfo_01.c | 84 hints.ai_family = AF_INET; in gaiv4() 91 err |= pai->ai_family != AF_INET; in gaiv4() 106 pai->ai_family, pai->ai_addrlen, psin, in gaiv4() 124 hints.ai_family = AF_INET; in gaiv4() 161 hints.ai_family = AF_INET; in gaiv4() 168 err |= pai->ai_family != AF_INET; in gaiv4() 183 pai->ai_family, pai->ai_addrlen, psin, in gaiv4() 201 hints.ai_family = AF_INET; in gaiv4() 212 err |= pai->ai_family != AF_INET; in gaiv4() 231 pai->ai_family, pai->ai_addrlen, psin, in gaiv4() [all …]
|
/external/android-clat/ |
D | dns64.c | 40 .ai_family = AF_INET6, in plat_prefix() 60 if (result->ai_family != AF_INET6) { in plat_prefix() 61 logmsg(ANDROID_LOG_WARN, "plat_prefix/unexpected address family: %d", result->ai_family); in plat_prefix()
|
/external/curl/lib/ |
D | curl_addrinfo.c | 132 if(ai->ai_family == AF_INET) in Curl_getaddrinfo_ex() 135 else if(ai->ai_family == AF_INET6) in Curl_getaddrinfo_ex() 158 ca->ai_family = ai->ai_family; in Curl_getaddrinfo_ex() 318 ai->ai_family = he->h_addrtype; in Curl_he2ai() 328 switch (ai->ai_family) { in Curl_he2ai() 500 ai->ai_family = AF_UNIX; in Curl_unix2addr() 579 switch (ca->ai_family) { in Curl_addrinfo_set_port()
|
D | hostip6.c | 140 ai->ai_family, ai->ai_canonname ? ai->ai_canonname : "<none>"); in dump_addrinfo() 198 hints.ai_family = pf; in Curl_getaddrinfo()
|
/external/parameter-framework/asio-1.10.6/include/asio/ip/ |
D | basic_resolver_query.hpp | 67 hints_.ai_family = PF_UNSPEC; in basic_resolver_query() 104 hints_.ai_family = protocol.family(); in basic_resolver_query() 152 hints_.ai_family = ASIO_OS_DEF(AF_UNSPEC); in basic_resolver_query() 203 hints_.ai_family = protocol.family(); in basic_resolver_query()
|
D | basic_resolver_iterator.hpp | 86 if (address_info->ai_family == ASIO_OS_DEF(AF_INET) in create() 87 || address_info->ai_family == ASIO_OS_DEF(AF_INET6)) in create()
|
/external/python/cpython2/Modules/ |
D | getaddrinfo.c | 177 (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()
|
/external/libpcap/ |
D | sockutils.c | 287 sock = socket(addrinfo->ai_family, addrinfo->ai_socktype, addrinfo->ai_protocol); in sock_open() 305 if (addrinfo->ai_family == PF_INET6) in sock_open() 511 if (((*addrinfo)->ai_family != PF_INET) && in sock_initaddress() 512 ((*addrinfo)->ai_family != PF_INET6)) in sock_initaddress() 902 hints.ai_family = PF_UNSPEC; in sock_check_hostlist() 1209 hints.ai_family = addr_family; in sock_present2network() 1214 if (addrinfo->ai_family == PF_INET) in sock_present2network()
|
/external/libevent/ |
D | evutil.c | 681 res->ai_family = sa->sa_family; /* Same or not? XXX */ in evutil_new_addrinfo() 819 if (hints->ai_family != PF_UNSPEC && hints->ai_family != PF_INET && in evutil_getaddrinfo_common() 820 hints->ai_family != PF_INET6) in evutil_getaddrinfo_common() 840 if (hints->ai_family != PF_INET) { /* INET6 or UNSPEC. */ in evutil_getaddrinfo_common() 857 if (hints->ai_family != PF_INET6) { /* INET or UNSPEC */ in evutil_getaddrinfo_common() 883 if (hints->ai_family == PF_INET6 || hints->ai_family == PF_UNSPEC) { in evutil_getaddrinfo_common() 899 if (hints->ai_family == PF_INET || hints->ai_family == PF_UNSPEC) { in evutil_getaddrinfo_common() 1053 if (hints->ai_family != PF_UNSPEC) in evutil_adjust_hints_for_addrconfig() 1058 hints->ai_family = PF_INET; in evutil_adjust_hints_for_addrconfig() 1060 hints->ai_family = PF_INET6; in evutil_adjust_hints_for_addrconfig() [all …]
|
/external/ltp/testcases/network/stress/ns-tools/ |
D | ns-common.c | 445 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()
|
D | ns-udpserver.c | 279 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()
|
/external/iputils/ |
D | tracepath6.c | 437 hints.ai_family = family; in main() 452 if (family && ai->ai_family != family) in main() 454 if (ai->ai_family != AF_INET6 && in main() 455 ai->ai_family != AF_INET) in main() 457 family = ai->ai_family; in main() 458 fd = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); in main()
|
/external/openssh/openbsd-compat/ |
D | fake-rfc2553.c | 137 ai->ai_addr->sa_family = ai->ai_family = AF_INET; in malloc_ai() 166 if (hints && hints->ai_family != AF_UNSPEC && in getaddrinfo() 167 hints->ai_family != AF_INET) in getaddrinfo()
|
/external/swiftshader/src/Common/ |
D | Socket.cpp | 40 hints.ai_family = AF_INET; in Socket() 50 socket = ::socket(info->ai_family, info->ai_socktype, info->ai_protocol); in Socket()
|
/external/netcat/ |
D | netcat.c | 332 hints.ai_family = family; in main() 361 proxyhints.ai_family = family; in main() 600 if ((s = socket(res0->ai_family, res0->ai_socktype, in remote_connect() 621 ahints.ai_family = res0->ai_family; in remote_connect() 707 if (host == NULL && hints.ai_family == AF_UNSPEC) in local_listen() 708 hints.ai_family = AF_INET; in local_listen() 715 if ((s = socket(res0->ai_family, res0->ai_socktype, in local_listen()
|
/external/boringssl/src/crypto/bio/ |
D | socket_helper.c | 50 hint.ai_family = AF_UNSPEC; in OPENSSL_MSVC_PRAGMA() 70 *out_sock = socket(cur->ai_family, cur->ai_socktype, cur->ai_protocol); in OPENSSL_MSVC_PRAGMA()
|
/external/ipsec-tools/src/racoon/ |
D | kmpstat.c | 216 hint.ai_family = PF_UNSPEC; 217 hint.ai_family = family;
|
/external/toybox/lib/ |
D | net.c | 25 info.ai_family = family; in xconnect() 37 fd = (ai->ai_next ? socket : xsocket)(ai->ai_family, ai->ai_socktype, in xconnect()
|
/external/webrtc/webrtc/base/ |
D | nethelpers.cc | 39 hints.ai_family = AF_INET; in ResolveHostname() 47 if (family == AF_UNSPEC || cursor->ai_family == family) { in ResolveHostname()
|
/external/toybox/toys/pending/ |
D | host.c | 85 if (ai->ai_family == AF_INET) { in host_main() 89 } else if (ai->ai_family == AF_INET6) { in host_main() 124 int s = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); in host_main()
|
D | tcpsvd.c | 238 hints.ai_family = AF_UNSPEC; in create_bind_sock() 244 if ( (rp->ai_family == AF_INET) || (rp->ai_family == AF_INET6)) break; in create_bind_sock() 248 sockfd = xsocket(rp->ai_family, TT.udp ?SOCK_DGRAM :SOCK_STREAM, 0); in create_bind_sock()
|
/external/boringssl/src/tool/ |
D | transport_common.cc | 109 hint.ai_family = AF_UNSPEC; in Connect() 122 socket(result->ai_family, result->ai_socktype, result->ai_protocol); in Connect() 128 switch (result->ai_family) { in Connect() 133 inet_ntop(result->ai_family, &sin->sin_addr, buf, sizeof(buf)), in Connect() 141 inet_ntop(result->ai_family, &sin6->sin6_addr, buf, sizeof(buf)), in Connect()
|
/external/iptables/libxtables/ |
D | xtoptions.c | 516 struct addrinfo hints = {.ai_family = afinfo->family}; in xtopt_parse_host() 533 xtables_sa_host(p->ai_addr, p->ai_family), in xtopt_parse_host() 534 xtables_sa_hostlen(p->ai_family)); in xtopt_parse_host() 539 xtables_sa_host(p->ai_addr, p->ai_family), in xtopt_parse_host() 540 xtables_sa_hostlen(p->ai_family)) != 0) in xtopt_parse_host() 569 if (p->ai_family == AF_INET6) { in xtables_getportbyname() 572 } else if (p->ai_family == AF_INET) { in xtables_getportbyname() 672 struct addrinfo hints = {.ai_family = afinfo->family, in xtopt_parse_mask() 681 memcpy(&cb->val.hmask, xtables_sa_host(res->ai_addr, res->ai_family), in xtopt_parse_mask() 682 xtables_sa_hostlen(res->ai_family)); in xtopt_parse_mask()
|
/external/libvncserver/libvncclient/ |
D | sockets.c | 373 hints.ai_family = AF_UNSPEC; in ConnectClientToTcpAddr6() 385 sock = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in ConnectClientToTcpAddr6() 549 hints.ai_family = AF_UNSPEC; in ListenAtTcpPortAndAddress() 563 if ((sock = socket(p->ai_family, p->ai_socktype, p->ai_protocol)) < 0) { in ListenAtTcpPortAndAddress() 569 …if (p->ai_family == AF_INET6 && setsockopt(sock, IPPROTO_IPV6, IPV6_V6ONLY, (char *)&one, sizeof(o… in ListenAtTcpPortAndAddress()
|
/external/openssh/regress/ |
D | netcat.c | 332 hints.ai_family = family; in main() 360 proxyhints.ai_family = family; in main() 617 if ((s = socket(res0->ai_family, res0->ai_socktype, in remote_connect() 635 ahints.ai_family = res0->ai_family; in remote_connect() 721 if (host == NULL && hints.ai_family == AF_UNSPEC) in local_listen() 722 hints.ai_family = AF_INET; in local_listen() 729 if ((s = socket(res0->ai_family, res0->ai_socktype, in local_listen() 1387 hints.ai_family = v4only ? PF_INET : PF_UNSPEC; in decode_addrport()
|