Home
last modified time | relevance | path

Searched refs:ai_addrlen (Results 1 – 25 of 99) sorted by relevance

1234

/external/ltp/testcases/network/lib6/
Dgetaddrinfo_01.c93 err |= pai->ai_addrlen != sizeof(struct sockaddr_in); in gaiv4()
107 pai->ai_family, pai->ai_addrlen, psin, in gaiv4()
170 err |= pai->ai_addrlen != sizeof(struct sockaddr_in); in gaiv4()
184 pai->ai_family, pai->ai_addrlen, psin, in gaiv4()
214 err |= pai->ai_addrlen != sizeof(struct sockaddr_in); in gaiv4()
232 pai->ai_family, pai->ai_addrlen, psin, in gaiv4()
282 err |= pai->ai_addrlen != sizeof(struct sockaddr_in); in gaiv4()
299 pai->ai_family, pai->ai_addrlen, psin, in gaiv4()
336 err |= pai->ai_addrlen != sizeof(struct sockaddr_in); in gaiv4()
353 pai->ai_family, pai->ai_addrlen, psin, in gaiv4()
[all …]
/external/parameter-framework/asio-1.10.6/include/asio/ip/
Dbasic_resolver_query.hpp70 hints_.ai_addrlen = 0; in basic_resolver_query()
107 hints_.ai_addrlen = 0; in basic_resolver_query()
155 hints_.ai_addrlen = 0; in basic_resolver_query()
206 hints_.ai_addrlen = 0; in basic_resolver_query()
Dbasic_resolver_iterator.hpp91 endpoint.resize(static_cast<std::size_t>(address_info->ai_addrlen)); in create()
93 address_info->ai_addrlen); in create()
/external/boringssl/src/crypto/bio/
Dsocket_helper.c65 if ((size_t) cur->ai_addrlen > sizeof(struct sockaddr_storage)) { in OPENSSL_MSVC_PRAGMA()
69 OPENSSL_memcpy(out_addr, cur->ai_addr, cur->ai_addrlen); in OPENSSL_MSVC_PRAGMA()
70 *out_addr_length = cur->ai_addrlen; in OPENSSL_MSVC_PRAGMA()
/external/iperf3/src/
Diperf_sctp.c227 if (bind(s, (struct sockaddr *) res->ai_addr, res->ai_addrlen) < 0) { in iperf_sctp_listen()
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()
604 xaddrlen += ai->ai_addrlen; in iperf_sctp_bindx()
622 memcpy(bp, ai->ai_addr, ai->ai_addrlen); in iperf_sctp_bindx()
623 bp += ai->ai_addrlen; in iperf_sctp_bindx()
Dnet.c151 if (bind(s, (struct sockaddr *) local_res->ai_addr, local_res->ai_addrlen) < 0) { 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()
412 if (bind(s, (struct sockaddr *) local_res->ai_addr, local_res->ai_addrlen) < 0) { 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/curl/lib/
Dcurl_addrinfo.c151 if((ai->ai_addr == NULL) || !(ai->ai_addrlen > 0)) in Curl_getaddrinfo_ex()
155 if((size_t)ai->ai_addrlen < ss_size) in Curl_getaddrinfo_ex()
171 ca->ai_addrlen = (curl_socklen_t)ss_size; in Curl_getaddrinfo_ex()
339 ai->ai_addrlen = (curl_socklen_t)ss_size; in Curl_he2ai()
526 ai->ai_addrlen = (curl_socklen_t) in Curl_unix2addr()
Dcurl_addrinfo.h56 curl_socklen_t ai_addrlen; /* Follow rfc3493 struct addrinfo */ member
/external/grpc-grpc/src/core/lib/iomgr/
Dresolve_address_windows.cc111 memcpy(&(*addresses)->addrs[i].addr, resp->ai_addr, resp->ai_addrlen); in windows_blocking_resolve_address()
112 (*addresses)->addrs[i].len = resp->ai_addrlen; in windows_blocking_resolve_address()
Dresolve_address_posix.cc129 memcpy(&(*addresses)->addrs[i].addr, resp->ai_addr, resp->ai_addrlen); in posix_blocking_resolve_address()
130 (*addresses)->addrs[i].len = resp->ai_addrlen; in posix_blocking_resolve_address()
/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()
/external/python/cpython3/Modules/
Dgetaddrinfo.c176 (ai)->ai_addr->sa_len = (ai)->ai_addrlen = (gai_afd)->a_socklen;\
191 (ai)->ai_addrlen = (gai_afd)->a_socklen;\
270 pai->ai_addrlen = 0; in getaddrinfo()
280 if (hints->ai_addrlen || hints->ai_canonname || in getaddrinfo()
Daddrinfo.h132 size_t ai_addrlen; /* length of ai_addr */ member
/external/python/cpython2/Modules/
Dgetaddrinfo.c176 (ai)->ai_addr->sa_len = (ai)->ai_addrlen = (gai_afd)->a_socklen;\
191 (ai)->ai_addrlen = (gai_afd)->a_socklen;\
270 pai->ai_addrlen = 0; in getaddrinfo()
280 if (hints->ai_addrlen || hints->ai_canonname || in getaddrinfo()
Daddrinfo.h132 size_t ai_addrlen; /* length of ai_addr */ member
/external/swiftshader/src/Common/
DSocket.cpp52 bind(socket, info->ai_addr, (int)info->ai_addrlen); in Socket()
/external/swiftshader/src/System/
DSocket.cpp52 bind(socket, info->ai_addr, (int)info->ai_addrlen); in Socket()
/external/ltp/testcases/network/netstress/
Dnetstress.c312 SAFE_BIND(sd, local_addrinfo->ai_addr, local_addrinfo->ai_addrlen); in bind_before_connect()
331 remote_addrinfo->ai_addr, remote_addrinfo->ai_addrlen); in client_connect_send()
336 remote_addrinfo->ai_addrlen); in client_connect_send()
679 SAFE_BIND(sfd, local_addrinfo->ai_addr, local_addrinfo->ai_addrlen); in server_init()
/external/curl/tests/unit/
Dunit1305.c98 ai->ai_addrlen = sizeof(struct sockaddr_in); in fake_ai()
/external/openssh/openbsd-compat/
Dfake-rfc2553.h143 size_t ai_addrlen; /* length of ai_addr */ member
/external/deqp/framework/delibs/deutil/
DdeSocket.c304 if (bsdAddrBufSize < (size_t)result->ai_addrlen) in deSocketAddressToBsdAddress()
311 *bsdAddrLen = (NativeSocklen)result->ai_addrlen; in deSocketAddressToBsdAddress()
313 deMemcpy(bsdAddr, result->ai_addr, (size_t)result->ai_addrlen); in deSocketAddressToBsdAddress()
/external/ltp/testcases/network/tcp_cmds/sendfile/
Dtestsf_c.c83 memcpy(&sai, hp->ai_addr, hp->ai_addrlen); in main()
/external/openssh/regress/
Dnetcat.c643 ares->ai_addrlen) < 0) in remote_connect()
650 if (timeout_connect(s, res0->ai_addr, res0->ai_addrlen) == 0) in remote_connect()
746 res0->ai_addrlen) == 0) in local_listen()
1399 if (addrlen < res->ai_addrlen) { in decode_addrport()
1403 memcpy(addr, res->ai_addr, res->ai_addrlen); in decode_addrport()
/external/ipsec-tools/src/libipsec/
Dpolicy_parse.y426 newaddr = malloc(res->ai_addrlen);
432 memcpy(newaddr, res->ai_addr, res->ai_addrlen);

1234