Home
last modified time | relevance | path

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

1234

/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/libpcap/Win32/Src/
Dgetaddrinfo.c336 pai->ai_addr = NULL;
344 hints->ai_addr || hints->ai_next)
903 sin6 = (struct sockaddr_in6 *)cur->ai_addr;
1014 ai->ai_addr = (struct sockaddr *)(ai + 1);
1015 memset(ai->ai_addr, 0, afd->a_socklen);
1017 ai->ai_addr->sa_len = afd->a_socklen;
1020 ai->ai_addr->sa_family = ai->ai_family = afd->a_af;
1021 p = (char *)(ai->ai_addr);
1100 ((struct sockaddr_in *)ai->ai_addr)->sin_port = port;
1104 ((struct sockaddr_in6 *)ai->ai_addr)->sin6_port = port;
/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()
Dtcpsvd.c250 if ((bind(sockfd, rp->ai_addr, rp->ai_addrlen)) < 0) perror_exit("Bind failed"); in create_bind_sock()
251 if(haddr) memcpy(haddr, rp->ai_addr, rp->ai_addrlen); in create_bind_sock()
/external/lldb/source/Host/common/
DSocketAddress.cpp166 addr_info->ai_addr && in operator =()
171 addr_info->ai_addr, in operator =()
/external/libvncserver/x11vnc/
Dinet.c609 char *s = ipv6_getipaddr(ap->ai_addr, ap->ai_addrlen); in listen6()
614 memcpy((char *)&sin, ap->ai_addr, sizeof(sin)); in listen6()
809 s6ptr = (struct sockaddr_in6 *) ap->ai_addr; in connect_tcp()
825 char *s = ipv6_getipaddr(ap->ai_addr, ap->ai_addrlen); in connect_tcp()
830 res = connect(sock, ap->ai_addr, ap->ai_addrlen); in connect_tcp()
838 res = connect(sock, ap->ai_addr, ap->ai_addrlen); in connect_tcp()
/external/netperf/
Dnetlib.c2557 struct sockaddr *ai_addr; in dump_addrinfo() local
2585 ai_addr = temp->ai_addr; in dump_addrinfo()
2586 if (ai_addr != NULL) { in dump_addrinfo()
2589 inet_ftos(ai_addr->sa_family), in dump_addrinfo()
2590 (u_char)ai_addr->sa_data[0], in dump_addrinfo()
2591 (u_char)ai_addr->sa_data[1], in dump_addrinfo()
2592 (u_char)ai_addr->sa_data[2], in dump_addrinfo()
2593 (u_char)ai_addr->sa_data[3], in dump_addrinfo()
2594 (u_char)ai_addr->sa_data[4], in dump_addrinfo()
2595 (u_char)ai_addr->sa_data[5]); in dump_addrinfo()
[all …]
Dnettest_sctp.c614 remote_res->ai_addr,
1755 remote_res->ai_addr,
1869 (struct sockaddr *)remote_res->ai_addr,
1946 sctp_sendmsg(send_socket[0], NULL, 0, remote_res->ai_addr,
2825 remote_res->ai_addr,
3882 remote_res->ai_addr,
3962 remote_res->ai_addr,
3994 remote_res->ai_addr,
/external/android-clat/
Ddns64.c64 plat_addr = ((struct sockaddr_in6 *)result->ai_addr)->sin6_addr; in plat_prefix()
/external/tcpdump/missing/
Daddrinfo.h78 struct sockaddr *ai_addr; /* binary address */ member
/external/libpcap/Win32/Include/
Daddrinfo.h78 struct sockaddr *ai_addr; /* binary address */ member
Dip6_misc.h159 struct sockaddr *ai_addr; /* binary address */ member
/external/boringssl/src/crypto/bio/
Dsocket_helper.c65 memcpy(out_addr, cur->ai_addr, cur->ai_addrlen); in bio_ip_and_port_to_socket_and_addr()
/external/openssh/
Daddrmatch.c217 if (ai == NULL || ai->ai_addr == NULL) in addr_pton()
221 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/toybox/toys/other/
Dnbd_client.c62 if (-1 != connect(sock, p->ai_addr, p->ai_addrlen)) break; in nbd_client_main()
/external/ipsec-tools/src/racoon/
Dkmpstat.c226 return ai->ai_addr;
/external/ipsec-tools/src/libipsec/
Dpolicy_parse.y420 if (res->ai_addr == NULL) {
432 memcpy(newaddr, res->ai_addr, res->ai_addrlen);
/external/iptables/libxtables/
Dxtoptions.c533 xtables_sa_host(p->ai_addr, p->ai_family), in xtopt_parse_host()
539 xtables_sa_host(p->ai_addr, p->ai_family), in xtopt_parse_host()
570 ret = ((struct sockaddr_in6 *)p->ai_addr)->sin6_port; in xtables_getportbyname()
573 ret = ((struct sockaddr_in *)p->ai_addr)->sin_port; in xtables_getportbyname()
681 memcpy(&cb->val.hmask, xtables_sa_host(res->ai_addr, res->ai_family), in xtopt_parse_mask()
/external/netcat/
Dnetcat.c628 if (bind(s, (struct sockaddr *)ares->ai_addr, in remote_connect()
636 if (timeout_connect(s, res0->ai_addr, res0->ai_addrlen) == 0) in remote_connect()
737 if (bind(s, (struct sockaddr *)res0->ai_addr, in local_listen()
/external/opencv/otherlibs/highgui/
Dcvcap_socket.cpp229 if (connect(sockd, pAddrInfo->ai_addr, pAddrInfo->ai_addrlen) < 0 || errno != 0) in grabFrame()
/external/libvncserver/libvncclient/
Dsockets.c370 if (connect(sock, res->ai_addr, res->ai_addrlen) == 0) in ConnectClientToTcpAddr6()
566 if (bind(sock, p->ai_addr, p->ai_addrlen) < 0) { in ListenAtTcpPortAndAddress()

1234