Home
last modified time | relevance | path

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

12345

/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.c87 free(ca->ai_addr); in Curl_freeaddrinfo()
147 if((ai->ai_addr == NULL) || !(ai->ai_addrlen > 0)) in Curl_getaddrinfo_ex()
168 ca->ai_addr = NULL; in Curl_getaddrinfo_ex()
172 ca->ai_addr = malloc(ss_size); in Curl_getaddrinfo_ex()
173 if(!ca->ai_addr) { in Curl_getaddrinfo_ex()
178 memcpy(ca->ai_addr, ai->ai_addr, ss_size); in Curl_getaddrinfo_ex()
184 free(ca->ai_addr); in Curl_getaddrinfo_ex()
313 ai->ai_addr = calloc(1, ss_size); in Curl_he2ai()
314 if(!ai->ai_addr) { in Curl_he2ai()
341 addr = (void *)ai->ai_addr; /* storage area for this info */ in Curl_he2ai()
[all …]
Dcurl_addrinfo.h58 struct sockaddr *ai_addr; member
Dsocks.c182 saddr_in = (struct sockaddr_in *)(void *)hp->ai_addr; in Curl_SOCKS4()
628 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/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/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/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/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/libpcap/
Dsockutils.c319 if (bind(sock, addrinfo->ai_addr, (int) addrinfo->ai_addrlen) != 0) in sock_open()
354 if (connect(sock, tempaddrinfo->ai_addr, (int) tempaddrinfo->ai_addrlen) == -1) in sock_open()
367 …sock_getascii_addrport((struct sockaddr_storage *) tempaddrinfo->ai_addr, TmpBuffer, sizeof(TmpBuf… in sock_open()
523 (sock_ismcastaddr((*addrinfo)->ai_addr) == 0)) in sock_initaddress()
922 if (sock_cmpaddr(from, (struct sockaddr_storage *) ai_next->ai_addr) == 0) in sock_check_hostlist()
1215 memcpy(sockaddr, addrinfo->ai_addr, sizeof(struct sockaddr_in)); in sock_present2network()
1217 memcpy(sockaddr, addrinfo->ai_addr, sizeof(struct sockaddr_in6)); in sock_present2network()
/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/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/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/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()
Dping.c165 printf("Ping %s (%s)", *toys.optargs, ntop(ai->ai_addr)); in ping_main()
202 xsendto(TT.sock, toybuf, TT.s+sizeof(*ih), ai->ai_addr); in ping_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/ltp/testcases/network/netstress/
Dnetstress.c256 remote_addrinfo->ai_addr, remote_addrinfo->ai_addrlen); in client_connect_send()
259 SAFE_BIND(cfd, local_addrinfo->ai_addr, in client_connect_send()
262 SAFE_CONNECT(cfd, remote_addrinfo->ai_addr, in client_connect_send()
583 SAFE_BIND(sfd, local_addrinfo->ai_addr, local_addrinfo->ai_addrlen); in server_init()
/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.c70 plat_addr = ((struct sockaddr_in6 *)result->ai_addr)->sin6_addr; in plat_prefix()
/external/boringssl/src/tool/
Dtransport_common.cc131 reinterpret_cast<struct sockaddr_in *>(result->ai_addr); in Connect()
139 reinterpret_cast<struct sockaddr_in6 *>(result->ai_addr); in Connect()
147 if (connect(*out_sock, result->ai_addr, result->ai_addrlen) != 0) { in Connect()
/external/syslinux/core/lwip/src/include/lwip/
Dnetdb.h89 struct sockaddr *ai_addr; /* Socket address of socket. */ member
/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()
/external/swiftshader/src/Common/
DSocket.cpp52 bind(socket, info->ai_addr, (int)info->ai_addrlen); in Socket()
/external/boringssl/src/crypto/bio/
Dsocket_helper.c67 OPENSSL_memcpy(out_addr, cur->ai_addr, cur->ai_addrlen); in OPENSSL_MSVC_PRAGMA()

12345