/external/ltp/testcases/network/lib6/ |
D | getaddrinfo_01.c | 94 err |= pai->ai_addr == 0; in gaiv4() 95 psin = (struct sockaddr_in *)pai->ai_addr; in gaiv4() 96 if (pai->ai_addr) { in gaiv4() 171 err |= pai->ai_addr == 0; in gaiv4() 172 psin = (struct sockaddr_in *)pai->ai_addr; in gaiv4() 173 if (pai->ai_addr) { in gaiv4() 215 err |= pai->ai_addr == 0; in gaiv4() 216 psin = (struct sockaddr_in *)pai->ai_addr; in gaiv4() 217 if (pai->ai_addr) { in gaiv4() 283 err |= pai->ai_addr == 0; in gaiv4() [all …]
|
/external/curl/lib/ |
D | curl_addrinfo.c | 91 free(ca->ai_addr); in Curl_freeaddrinfo() 151 if((ai->ai_addr == NULL) || !(ai->ai_addrlen > 0)) in Curl_getaddrinfo_ex() 172 ca->ai_addr = NULL; in Curl_getaddrinfo_ex() 176 ca->ai_addr = malloc(ss_size); in Curl_getaddrinfo_ex() 177 if(!ca->ai_addr) { in Curl_getaddrinfo_ex() 182 memcpy(ca->ai_addr, ai->ai_addr, ss_size); in Curl_getaddrinfo_ex() 188 free(ca->ai_addr); in Curl_getaddrinfo_ex() 317 ai->ai_addr = calloc(1, ss_size); in Curl_he2ai() 318 if(!ai->ai_addr) { in Curl_he2ai() 345 addr = (void *)ai->ai_addr; /* storage area for this info */ in Curl_he2ai() [all …]
|
D | curl_addrinfo.h | 58 struct sockaddr *ai_addr; member
|
D | socks.c | 180 saddr_in = (struct sockaddr_in *)(void *)hp->ai_addr; in Curl_SOCKS4() 627 saddr_in = (struct sockaddr_in *)(void *)hp->ai_addr; in Curl_SOCKS5() 640 saddr_in6 = (struct sockaddr_in6 *)(void *)hp->ai_addr; in Curl_SOCKS5()
|
/external/python/cpython3/Modules/ |
D | getaddrinfo.c | 174 (ai)->ai_addr = (struct sockaddr *)((ai) + 1);\ 175 memset((ai)->ai_addr, 0, (gai_afd)->a_socklen);\ 176 (ai)->ai_addr->sa_len = (ai)->ai_addrlen = (gai_afd)->a_socklen;\ 177 (ai)->ai_addr->sa_family = (ai)->ai_family = (gai_afd)->a_af;\ 178 ((struct sockinet *)(ai)->ai_addr)->si_port = port;\ 179 p = (char *)((ai)->ai_addr);\ 189 (ai)->ai_addr = (struct sockaddr *)((ai) + 1);\ 190 memset((ai)->ai_addr, 0, (gai_afd)->a_socklen);\ 192 (ai)->ai_addr->sa_family = (ai)->ai_family = (gai_afd)->a_af;\ 193 ((struct sockinet *)(ai)->ai_addr)->si_port = port;\ [all …]
|
/external/python/cpython2/Modules/ |
D | getaddrinfo.c | 174 (ai)->ai_addr = (struct sockaddr *)((ai) + 1);\ 175 memset((ai)->ai_addr, 0, (gai_afd)->a_socklen);\ 176 (ai)->ai_addr->sa_len = (ai)->ai_addrlen = (gai_afd)->a_socklen;\ 177 (ai)->ai_addr->sa_family = (ai)->ai_family = (gai_afd)->a_af;\ 178 ((struct sockinet *)(ai)->ai_addr)->si_port = port;\ 179 p = (char *)((ai)->ai_addr);\ 189 (ai)->ai_addr = (struct sockaddr *)((ai) + 1);\ 190 memset((ai)->ai_addr, 0, (gai_afd)->a_socklen);\ 192 (ai)->ai_addr->sa_family = (ai)->ai_family = (gai_afd)->a_af;\ 193 ((struct sockinet *)(ai)->ai_addr)->si_port = port;\ [all …]
|
/external/libpcap/ |
D | nametoaddr.c | 326 if (ai->ai_addr != NULL) { in pcap_nametoport() 330 if (ai->ai_addr->sa_family == AF_INET) { in pcap_nametoport() 331 in4 = (struct sockaddr_in *)ai->ai_addr; in pcap_nametoport() 336 if (ai->ai_addr->sa_family == AF_INET6) { in pcap_nametoport() 337 in6 = (struct sockaddr_in6 *)ai->ai_addr; in pcap_nametoport() 370 if (ai->ai_addr != NULL) { in pcap_nametoport() 374 if (ai->ai_addr->sa_family == AF_INET) { in pcap_nametoport() 375 in4 = (struct sockaddr_in *)ai->ai_addr; in pcap_nametoport() 380 if (ai->ai_addr->sa_family == AF_INET6) { in pcap_nametoport() 381 in6 = (struct sockaddr_in6 *)ai->ai_addr; in pcap_nametoport()
|
D | sockutils.c | 400 if (bind(sock, addrinfo->ai_addr, (int) addrinfo->ai_addrlen) != 0) 437 if (connect(sock, tempaddrinfo->ai_addr, (int) tempaddrinfo->ai_addrlen) == -1) 450 …sock_getascii_addrport((struct sockaddr_storage *) tempaddrinfo->ai_addr, TmpBuffer, sizeof(TmpBuf… 608 (sock_ismcastaddr((*addrinfo)->ai_addr) == 0)) 1184 if (sock_cmpaddr(from, (struct sockaddr_storage *) ai_next->ai_addr) == 0) 1474 memcpy(sockaddr, addrinfo->ai_addr, sizeof(struct sockaddr_in)); 1476 memcpy(sockaddr, addrinfo->ai_addr, sizeof(struct sockaddr_in6));
|
/external/parameter-framework/asio-1.10.6/include/asio/ip/ |
D | basic_resolver_query.hpp | 72 hints_.ai_addr = 0; in basic_resolver_query() 109 hints_.ai_addr = 0; in basic_resolver_query() 157 hints_.ai_addr = 0; in basic_resolver_query() 208 hints_.ai_addr = 0; in basic_resolver_query()
|
/external/iperf3/src/ |
D | iperf_sctp.c | 227 if (bind(s, (struct sockaddr *) res->ai_addr, res->ai_addrlen) < 0) { in iperf_sctp_listen() 301 lcladdr = (struct sockaddr_in *)local_res->ai_addr; in iperf_sctp_connect() 304 if (bind(s, (struct sockaddr *) local_res->ai_addr, local_res->ai_addrlen) < 0) { in iperf_sctp_connect() 441 …if (connect(s, (struct sockaddr *) server_res->ai_addr, server_res->ai_addrlen) < 0 && errno != EI… in iperf_sctp_connect() 563 if (bind(s, (struct sockaddr *)ai->ai_addr, ai->ai_addrlen) < 0) { in iperf_sctp_bindx() 573 sa = (struct sockaddr *)ai->ai_addr; in iperf_sctp_bindx() 575 sin = (struct sockaddr_in *)ai->ai_addr; in iperf_sctp_bindx() 578 sin6 = (struct sockaddr_in6 *)ai->ai_addr; in iperf_sctp_bindx() 622 memcpy(bp, ai->ai_addr, ai->ai_addrlen); in iperf_sctp_bindx()
|
D | net.c | 147 lcladdr = (struct sockaddr_in *)local_res->ai_addr; in netdial() 151 if (bind(s, (struct sockaddr *) local_res->ai_addr, local_res->ai_addrlen) < 0) { in netdial() 197 ((struct sockaddr_in *) server_res->ai_addr)->sin_port = htons(port); in netdial() 198 …if (timeout_connect(s, (struct sockaddr *) server_res->ai_addr, server_res->ai_addrlen, timeout) <… in netdial() 284 if (bind(s, (struct sockaddr *) res->ai_addr, res->ai_addrlen) < 0) { in netannounce()
|
D | iperf_tcp.c | 294 if (bind(s, (struct sockaddr *) res->ai_addr, res->ai_addrlen) < 0) { in iperf_tcp_listen() 409 lcladdr = (struct sockaddr_in *)local_res->ai_addr; in iperf_tcp_connect() 412 if (bind(s, (struct sockaddr *) local_res->ai_addr, local_res->ai_addrlen) < 0) { in iperf_tcp_connect() 549 if (server_res->ai_addr->sa_family != AF_INET6) { in iperf_tcp_connect() 557 struct sockaddr_in6* sa6P = (struct sockaddr_in6*) server_res->ai_addr; in iperf_tcp_connect() 616 …if (connect(s, (struct sockaddr *) server_res->ai_addr, server_res->ai_addrlen) < 0 && errno != EI… in iperf_tcp_connect()
|
/external/tensorflow/tensorflow/core/platform/cloud/ |
D | gcs_dns_cache.cc | 107 if (i->ai_family != AF_INET || i->ai_addr->sa_family != AF_INET) { in ResolveName() 109 << ". sa_family: " << i->ai_addr->sa_family << "."; in ResolveName() 114 &(reinterpret_cast<sockaddr_in*>(i->ai_addr)->sin_addr); in ResolveName() 116 if ((formatted = inet_ntop(i->ai_addr->sa_family, address_ptr, buf, in ResolveName()
|
/external/openssh/openbsd-compat/ |
D | fake-rfc2553.c | 134 ai->ai_addr = (struct sockaddr *)(ai + 1); in malloc_ai() 137 ai->ai_addr->sa_family = ai->ai_family = AF_INET; in malloc_ai() 139 ((struct sockaddr_in *)(ai)->ai_addr)->sin_port = port; in malloc_ai() 140 ((struct sockaddr_in *)(ai)->ai_addr)->sin_addr.s_addr = addr; in malloc_ai()
|
/external/ltp/testcases/network/tcp_cmds/sendfile/ |
D | testsf_c.c | 77 if (!hp || !hp->ai_addr || hp->ai_addr->sa_family != AFI) { in main() 83 memcpy(&sai, hp->ai_addr, hp->ai_addrlen); in main()
|
D | testsf_s.c | 62 if (!hp || !hp->ai_addr || hp->ai_addr->sa_family != AFI) { in main() 67 memcpy(&sa, hp->ai_addr, hp->ai_addrlen); in main()
|
/external/curl/tests/unit/ |
D | unit1305.c | 90 ai->ai_addr = calloc(1, sizeof(struct sockaddr_in)); in fake_ai() 91 if(!ai->ai_addr) { in fake_ai()
|
/external/webrtc/webrtc/base/ |
D | ipaddress.cc | 238 if (!info || !info->ai_addr) { in IPFromAddrInfo() 241 if (info->ai_addr->sa_family == AF_INET) { in IPFromAddrInfo() 242 sockaddr_in* addr = reinterpret_cast<sockaddr_in*>(info->ai_addr); in IPFromAddrInfo() 245 } else if (info->ai_addr->sa_family == AF_INET6) { in IPFromAddrInfo() 246 sockaddr_in6* addr = reinterpret_cast<sockaddr_in6*>(info->ai_addr); in IPFromAddrInfo()
|
/external/toybox/toys/pending/ |
D | host.c | 86 a = (void *)&((struct sockaddr_in *)ai->ai_addr)->sin_addr; in host_main() 90 a = (void *)&((struct sockaddr_in6 *)ai->ai_addr)->sin6_addr; in host_main() 125 if (s < 0 || connect(s, ai->ai_addr, ai->ai_addrlen) < 0) in host_main()
|
/external/ltp/testcases/network/stress/ns-tools/ |
D | ns-common.c | 488 memcpy(&greq->gr_group, mainfo_p->ai_addr, mainfo_p->ai_addrlen); in create_group_info() 537 memcpy(&gsf->gf_group, mainfo_p->ai_addr, mainfo_p->ai_addrlen); in create_source_filter() 570 memcpy(&gsf->gf_slist[idx], res->ai_addr, res->ai_addrlen); in create_source_filter()
|
D | ns-udpsender.c | 334 ((struct sockaddr_in *)(res->ai_addr))->sin_addr; in create_udp_datagram() 398 udp_p->addr_info.ai_addr, in send_udp_datagram()
|
/external/toybox/toys/net/ |
D | sntp.c | 123 xsendto(fd, toybuf, 48, ai->ai_addr); in sntp_main() 147 xstrncpy(buf, ntop(ai->ai_addr), 128); in sntp_main()
|
/external/libevent/sample/ |
D | dns-example.c | 90 (struct sockaddr_in*)ai->ai_addr; in gai_callback() 96 (struct sockaddr_in6*)ai->ai_addr; in gai_callback()
|
/external/android-clat/ |
D | dns64.c | 71 plat_addr = ((struct sockaddr_in6 *)result->ai_addr)->sin6_addr; in plat_prefix()
|
/external/libevent/test/ |
D | regress_util.c | 834 if (ai->ai_addr->sa_family == AF_INET) { in test_ai_eq_() 835 struct sockaddr_in *sin = (struct sockaddr_in*)ai->ai_addr; in test_ai_eq_() 843 struct sockaddr_in6 *sin6 = (struct sockaddr_in6*)ai->ai_addr; in test_ai_eq_() 851 if (evutil_sockaddr_cmp(ai->ai_addr, (struct sockaddr*)&ss, 1)) { in test_ai_eq_() 1086 sin = (struct sockaddr_in*)ai->ai_addr; in test_evutil_getaddrinfo_live() 1106 sin6 = (struct sockaddr_in6*)ai->ai_addr; in test_evutil_getaddrinfo_live()
|