Home
last modified time | relevance | path

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

12345

/external/curl/lib/
Dcurl_addrinfo.c82 free(ca->ai_addr); in Curl_freeaddrinfo()
142 if((ai->ai_addr == NULL) || !(ai->ai_addrlen > 0)) in Curl_getaddrinfo_ex()
162 ca->ai_addr = NULL; in Curl_getaddrinfo_ex()
166 if((ca->ai_addr = malloc(ss_size)) == NULL) { in Curl_getaddrinfo_ex()
171 memcpy(ca->ai_addr, ai->ai_addr, ss_size); in Curl_getaddrinfo_ex()
176 free(ca->ai_addr); in Curl_getaddrinfo_ex()
303 if((ai->ai_addr = calloc(1, ss_size)) == NULL) { in Curl_he2ai()
330 addr = (void *)ai->ai_addr; /* storage area for this info */ in Curl_he2ai()
339 addr6 = (void *)ai->ai_addr; /* storage area for this info */ in Curl_he2ai()
488 if((ai->ai_addr = calloc(1, sizeof(struct sockaddr_un))) == NULL) { in Curl_unix2addr()
[all …]
Dcurl_addrinfo.h58 struct sockaddr *ai_addr; member
/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()
Dbasic_resolver_iterator.hpp92 memcpy(endpoint.data(), address_info->ai_addr, in create()
/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()
Dfake-rfc2553.h147 struct sockaddr *ai_addr; /* binary address */ member
/external/netperf/src/missing/
Dgetaddrinfo.c248 if (ai->ai_addr != NULL)
249 free(ai->ai_addr);
469 new_res->ai_addr = NULL;
474 new_res->ai_addr = (struct sockaddr *)
476 if (new_res->ai_addr == NULL) {
484 sa_in = (struct sockaddr_in *)new_res->ai_addr;
Dgetaddrinfo.h217 struct sockaddr *ai_addr; member
/external/libpcap/Win32/Src/
Dgetaddrinfo.c331 pai->ai_addr = NULL;
339 hints->ai_addr || hints->ai_next)
898 sin6 = (struct sockaddr_in6 *)cur->ai_addr;
1009 ai->ai_addr = (struct sockaddr *)(ai + 1);
1010 memset(ai->ai_addr, 0, afd->a_socklen);
1012 ai->ai_addr->sa_len = afd->a_socklen;
1015 ai->ai_addr->sa_family = ai->ai_family = afd->a_af;
1016 p = (char *)(ai->ai_addr);
1095 ((struct sockaddr_in *)ai->ai_addr)->sin_port = port;
1099 ((struct sockaddr_in6 *)ai->ai_addr)->sin6_port = port;
/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/boringssl/src/tool/
Dtransport_common.cc108 reinterpret_cast<struct sockaddr_in *>(result->ai_addr); in Connect()
116 reinterpret_cast<struct sockaddr_in6 *>(result->ai_addr); in Connect()
124 if (connect(*out_sock, result->ai_addr, result->ai_addrlen) != 0) { in Connect()
/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/lldb/source/Host/common/
DSocketAddress.cpp166 addr_info->ai_addr && in operator =()
171 addr_info->ai_addr, in operator =()
/external/c-ares/
Dares_ipv6.h44 struct sockaddr *ai_addr; member
/external/android-clat/
Ddns64.c64 plat_addr = ((struct sockaddr_in6 *)result->ai_addr)->sin6_addr; in plat_prefix()
/external/tcpdump/missing/
Daddrinfo.h76 struct sockaddr *ai_addr; /* binary address */ member
/external/libpcap/Win32/Include/
Daddrinfo.h76 struct sockaddr *ai_addr; /* binary address */ member
Dip6_misc.h157 struct sockaddr *ai_addr; /* binary address */ member
/external/toybox/lib/
Dnet.c37 if (!connect(fd, ai->ai_addr, ai->ai_addrlen)) break; in xconnect()
/external/curl/tests/unit/
Dunit1305.c91 if((ai->ai_addr = calloc(1, ss_size)) == NULL) { in fake_ai()
/external/boringssl/src/crypto/bio/
Dsocket_helper.c66 memcpy(out_addr, cur->ai_addr, cur->ai_addrlen); in bio_ip_and_port_to_socket_and_addr()
/external/openssh/
Daddrmatch.c216 if (ai == NULL || ai->ai_addr == NULL) in addr_pton()
220 addr_sa_to_xaddr(ai->ai_addr, ai->ai_addrlen, n) == -1) { in addr_pton()
Daudit-bsm.c153 in4 = (struct sockaddr_in *)ai->ai_addr; in aug_get_machine()
159 in6 = (struct sockaddr_in6 *)ai->ai_addr; in aug_get_machine()
Dsshconnect.c309 r = bindresvport_sa(sock, res ? res->ai_addr : NULL); in ssh_create_socket()
317 if (bind(sock, res->ai_addr, res->ai_addrlen) < 0) { in ssh_create_socket()
451 if (getnameinfo(ai->ai_addr, ai->ai_addrlen, in ssh_connect_direct()
466 if (timeout_connect(sock, ai->ai_addr, ai->ai_addrlen, in ssh_connect_direct()
469 memcpy(hostaddr, ai->ai_addr, ai->ai_addrlen); in ssh_connect_direct()
/external/ipsec-tools/src/racoon/
Dkmpstat.c226 return ai->ai_addr;

12345