Home
last modified time | relevance | path

Searched refs:ai_addr (Results 1 – 25 of 136) sorted by relevance

123456

/external/ltp/testcases/network/lib6/
Dgetaddrinfo_01.c94 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/
Dcurl_addrinfo.c91 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 …]
Dcurl_addrinfo.h58 struct sockaddr *ai_addr; member
Dsocks.c180 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/
Dgetaddrinfo.c174 (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/
Dgetaddrinfo.c174 (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/
Dnametoaddr.c326 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()
Dsockutils.c400 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/
Dbasic_resolver_query.hpp72 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/
Diperf_sctp.c227 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()
Dnet.c147 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()
Diperf_tcp.c294 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/
Dgcs_dns_cache.cc107 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/
Dfake-rfc2553.c134 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/
Dtestsf_c.c77 if (!hp || !hp->ai_addr || hp->ai_addr->sa_family != AFI) { in main()
83 memcpy(&sai, hp->ai_addr, hp->ai_addrlen); in main()
Dtestsf_s.c62 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/
Dunit1305.c90 ai->ai_addr = calloc(1, sizeof(struct sockaddr_in)); in fake_ai()
91 if(!ai->ai_addr) { in fake_ai()
/external/webrtc/webrtc/base/
Dipaddress.cc238 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/
Dhost.c86 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/
Dns-common.c488 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()
Dns-udpsender.c334 ((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/
Dsntp.c123 xsendto(fd, toybuf, 48, ai->ai_addr); in sntp_main()
147 xstrncpy(buf, ntop(ai->ai_addr), 128); in sntp_main()
/external/libevent/sample/
Ddns-example.c90 (struct sockaddr_in*)ai->ai_addr; in gai_callback()
96 (struct sockaddr_in6*)ai->ai_addr; in gai_callback()
/external/android-clat/
Ddns64.c71 plat_addr = ((struct sockaddr_in6 *)result->ai_addr)->sin6_addr; in plat_prefix()
/external/libevent/test/
Dregress_util.c834 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()

123456