/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 | 144 if((ai->ai_addr == NULL) || !(ai->ai_addrlen > 0)) in Curl_getaddrinfo_ex() 165 ca->ai_addr = NULL; in Curl_getaddrinfo_ex() 169 ca->ai_addr = (void *)((char *)ca + sizeof(struct Curl_addrinfo)); in Curl_getaddrinfo_ex() 170 memcpy(ca->ai_addr, ai->ai_addr, ss_size); in Curl_getaddrinfo_ex() 173 ca->ai_canonname = (void *)((char *)ca->ai_addr + ss_size); in Curl_getaddrinfo_ex() 295 ai->ai_addr = (void *)((char *)ai + sizeof(struct Curl_addrinfo)); in Curl_he2ai() 297 ai->ai_canonname = (char *)ai->ai_addr + ss_size; in Curl_he2ai() 320 addr = (void *)ai->ai_addr; /* storage area for this info */ in Curl_he2ai() 329 addr6 = (void *)ai->ai_addr; /* storage area for this info */ in Curl_he2ai() 482 ai->ai_addr = (void *)((char *)ai + sizeof(struct Curl_addrinfo)); in Curl_unix2addr() [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/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/libpcap/ |
D | nametoaddr.c | 362 if (ai->ai_addr != NULL) { in pcap_nametoport() 366 if (ai->ai_addr->sa_family == AF_INET) { in pcap_nametoport() 367 in4 = (struct sockaddr_in *)ai->ai_addr; in pcap_nametoport() 372 if (ai->ai_addr->sa_family == AF_INET6) { in pcap_nametoport() 373 in6 = (struct sockaddr_in6 *)ai->ai_addr; in pcap_nametoport() 406 if (ai->ai_addr != NULL) { in pcap_nametoport() 410 if (ai->ai_addr->sa_family == AF_INET) { in pcap_nametoport() 411 in4 = (struct sockaddr_in *)ai->ai_addr; in pcap_nametoport() 416 if (ai->ai_addr->sa_family == AF_INET6) { in pcap_nametoport() 417 in6 = (struct sockaddr_in6 *)ai->ai_addr; in pcap_nametoport()
|
D | sockutils.c | 405 if (bind(sock, addrinfo->ai_addr, (int) addrinfo->ai_addrlen) != 0) in sock_open() 444 if (connect(sock, tempaddrinfo->ai_addr, (int) tempaddrinfo->ai_addrlen) == -1) in sock_open() 458 …sock_getascii_addrport((struct sockaddr_storage *) tempaddrinfo->ai_addr, TmpBuffer, sizeof(TmpBuf… in sock_open() 760 (sock_ismcastaddr((*addrinfo)->ai_addr) == 0)) in sock_initaddress() 1379 if (sock_cmpaddr(from, (struct sockaddr_storage *) ai_next->ai_addr) == 0) in sock_check_hostlist() 1683 memcpy(sockaddr, addrinfo->ai_addr, sizeof(struct sockaddr_in)); in sock_present2network() 1685 memcpy(sockaddr, addrinfo->ai_addr, sizeof(struct sockaddr_in6)); in sock_present2network()
|
/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/tensorflow/tensorflow/core/platform/cloud/ |
D | gcs_dns_cache.cc | 109 if (i->ai_family != AF_INET || i->ai_addr->sa_family != AF_INET) { in ResolveName() 111 << ". sa_family: " << i->ai_addr->sa_family << "."; in ResolveName() 116 &(reinterpret_cast<sockaddr_in*>(i->ai_addr)->sin_addr); in ResolveName() 118 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/iperf3/src/ |
D | iperf_sctp.c | 251 if (bind(s, (struct sockaddr *) res->ai_addr, res->ai_addrlen) < 0) { in iperf_sctp_listen() 345 lcladdr = (struct sockaddr_in *)local_res->ai_addr; in iperf_sctp_connect() 348 if (bind(s, (struct sockaddr *) local_res->ai_addr, local_res->ai_addrlen) < 0) { in iperf_sctp_connect() 488 …if (connect(s, (struct sockaddr *) server_res->ai_addr, server_res->ai_addrlen) < 0 && errno != EI… in iperf_sctp_connect() 611 if (bind(s, (struct sockaddr *)ai->ai_addr, ai->ai_addrlen) < 0) { in iperf_sctp_bindx() 621 sa = (struct sockaddr *)ai->ai_addr; in iperf_sctp_bindx() 623 sin = (struct sockaddr_in *)ai->ai_addr; in iperf_sctp_bindx() 626 sin6 = (struct sockaddr_in6 *)ai->ai_addr; in iperf_sctp_bindx() 670 memcpy(bp, ai->ai_addr, ai->ai_addrlen); in iperf_sctp_bindx()
|
D | net.c | 155 lcladdr = (struct sockaddr_in *)local_res->ai_addr; in netdial() 159 if (bind(s, (struct sockaddr *) local_res->ai_addr, local_res->ai_addrlen) < 0) { in netdial() 205 ((struct sockaddr_in *) server_res->ai_addr)->sin_port = htons(port); in netdial() 206 …if (timeout_connect(s, (struct sockaddr *) server_res->ai_addr, server_res->ai_addrlen, timeout) <… in netdial() 292 if (bind(s, (struct sockaddr *) res->ai_addr, res->ai_addrlen) < 0) { in netannounce()
|
D | iperf_tcp.c | 295 if (bind(s, (struct sockaddr *) res->ai_addr, res->ai_addrlen) < 0) { in iperf_tcp_listen() 410 lcladdr = (struct sockaddr_in *)local_res->ai_addr; in iperf_tcp_connect() 413 if (bind(s, (struct sockaddr *) local_res->ai_addr, local_res->ai_addrlen) < 0) { in iperf_tcp_connect() 550 if (server_res->ai_addr->sa_family != AF_INET6) { in iperf_tcp_connect() 558 struct sockaddr_in6* sa6P = (struct sockaddr_in6*) server_res->ai_addr; in iperf_tcp_connect() 617 …if (connect(s, (struct sockaddr *) server_res->ai_addr, server_res->ai_addrlen) < 0 && errno != EI… in iperf_tcp_connect()
|
/external/libwebsockets/minimal-examples/api-tests/api-test-async-dns/ |
D | main.c | 141 ac->ai_addr)->sin_addr.s_addr); in cb1() 145 ac->ai_addr)->sin6_addr.s6_addr); in cb1() 160 ac->ai_addr)->sin_addr.s_addr); in cb1() 165 ac->ai_addr)->sin6_addr.s6_addr); in cb1()
|
/external/curl/tests/unit/ |
D | unit1305.c | 87 ai->ai_addr = (void *)((char *)ai + sizeof(struct Curl_addrinfo)); in fake_ai() 88 ai->ai_canonname = (void *)((char *)ai->ai_addr + in fake_ai()
|
/external/tpm2-tss/src/util/ |
D | io.c | 231 sockaddr = &((struct sockaddr_in*)p->ai_addr)->sin_addr; in socket_connect() 233 sockaddr = &((struct sockaddr_in6*)p->ai_addr)->sin6_addr; in socket_connect() 242 if (connect (*sock, p->ai_addr, p->ai_addrlen) != SOCKET_ERROR) in socket_connect()
|
/external/libwebsockets/minimal-examples/raw/minimal-raw-adopt-tcp/ |
D | minimal-raw-adopt-tcp.c | 163 if (connect(sock.sockfd, rp->ai_addr, sizeof(*rp->ai_addr)) < 0) { in main()
|
/external/webrtc/rtc_base/ |
D | ip_address.cc | 268 if (!info || !info->ai_addr) { in IPFromAddrInfo() 271 if (info->ai_addr->sa_family == AF_INET) { in IPFromAddrInfo() 272 sockaddr_in* addr = reinterpret_cast<sockaddr_in*>(info->ai_addr); in IPFromAddrInfo() 275 } else if (info->ai_addr->sa_family == AF_INET6) { in IPFromAddrInfo() 276 sockaddr_in6* addr = reinterpret_cast<sockaddr_in6*>(info->ai_addr); in IPFromAddrInfo()
|
/external/toybox/toys/pending/ |
D | host.c | 89 a = (void *)&((struct sockaddr_in *)ai->ai_addr)->sin_addr; in host_main() 93 a = (void *)&((struct sockaddr_in6 *)ai->ai_addr)->sin6_addr; in host_main() 128 xconnect(s, ai->ai_addr, ai->ai_addrlen); in host_main()
|
/external/libwebsockets/lib/core-net/ |
D | adopt.c | 510 ((struct sockaddr_in *)wsi->dns_results_next->ai_addr)->sin_port = in lws_create_adopt_udp2() 530 bind(sock.sockfd, wsi->dns_results_next->ai_addr, in lws_create_adopt_udp2() 543 if (connect(sock.sockfd, wsi->dns_results_next->ai_addr, in lws_create_adopt_udp2() 548 wsi->dns_results_next->ai_addr->sa_family, in lws_create_adopt_udp2() 556 memcpy(&wsi->udp->sa, wsi->dns_results_next->ai_addr, in lws_create_adopt_udp2()
|
/external/libwebsockets/minimal-examples/raw/minimal-raw-netcat/ |
D | minimal-raw-netcat.c | 218 if (connect(sock.sockfd, rp->ai_addr, sizeof(*rp->ai_addr)) < 0) { in 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()
|
/external/toybox/toys/net/ |
D | sntp.c | 130 xsendto(fd, toybuf, 48, ai->ai_addr); in sntp_main() 154 xstrncpy(buf, ntop(ai->ai_addr), 128); in sntp_main()
|
/external/rust/crates/grpcio-sys/grpc/third_party/cares/cares/ |
D | ares_ipv6.h | 44 struct sockaddr *ai_addr; member
|