/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/libpcap/Win32/Src/ |
D | getaddrinfo.c | 326 pai->ai_family = PF_UNSPEC; 343 switch (hints->ai_family) { 361 if (pai->ai_family != ex->e_af) 380 if (MATCH_FAMILY(pai->ai_family, PF_INET, 1) 382 || MATCH_FAMILY(pai->ai_family, PF_INET6, 1) 387 if (pai->ai_family == PF_UNSPEC) { 389 pai->ai_family = PF_INET6; 391 pai->ai_family = PF_INET; 407 if (!MATCH_FAMILY(pai->ai_family, ex->e_af, WILD_AF(ex))) 414 if (pai->ai_family == PF_UNSPEC) [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/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()
|
D | ns-tcpserver.c | 212 hints.ai_family = info_p->family; in create_listen_socket() 229 info_p->listen_sd = socket(res->ai_family, in create_listen_socket() 236 if (res->ai_family == PF_INET6) { in create_listen_socket()
|
/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/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/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/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/boringssl/src/tool/ |
D | transport_common.cc | 103 hint.ai_family = AF_UNSPEC; in Connect() 116 socket(result->ai_family, result->ai_socktype, result->ai_protocol); in Connect() 122 switch (result->ai_family) { in Connect() 127 inet_ntop(result->ai_family, &sin->sin_addr, buf, sizeof(buf)), in Connect() 135 inet_ntop(result->ai_family, &sin6->sin6_addr, buf, sizeof(buf)), in Connect()
|
/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()
|
D | tftp.c | 438 rp.ai_family = AF_UNSPEC; in tftp_main() 443 if ( (res->ai_family == AF_INET) || (res->ai_family == AF_INET6)) break; in tftp_main() 447 TT.af = info->ai_family; in tftp_main()
|
/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()
|