Home
last modified time | relevance | path

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

123

/external/qemu/
Dqemu-sockets.c72 i6 = (void*)e->ai_addr; in inet_getport()
75 i4 = (void*)e->ai_addr; in inet_getport()
89 i6 = (void*)e->ai_addr; in inet_setport()
93 i4 = (void*)e->ai_addr; in inet_setport()
116 getnameinfo((struct sockaddr*)e->ai_addr,e->ai_addrlen, in inet_print_addrinfo()
173 getnameinfo((struct sockaddr*)e->ai_addr,e->ai_addrlen, in inet_listen_opts()
193 if (bind(slisten, e->ai_addr, e->ai_addrlen) == 0) { in inet_listen_opts()
275 if (getnameinfo((struct sockaddr*)e->ai_addr,e->ai_addrlen, in inet_connect_opts()
290 if (connect(sock,e->ai_addr,e->ai_addrlen) < 0) { in inet_connect_opts()
383 if (getnameinfo((struct sockaddr*)local->ai_addr,local->ai_addrlen, in inet_dgram_opts()
[all …]
/external/chromium/net/base/
Daddress_list_unittest.cc140 ai.ai_addr = reinterpret_cast<sockaddr*>(&address); in TEST()
211 EXPECT_EQ(memcmp(good_ai->ai_addr, test_ai->ai_addr, sockaddr_size), 0); in TEST()
242 AddressList::CreateAddressListFromSockaddr(good_ai->ai_addr, in TEST()
253 EXPECT_EQ(memcmp(good_ai->ai_addr, test_ai->ai_addr, sockaddr_size), 0); in TEST()
Daddress_list.cc71 ai->ai_addr = reinterpret_cast<struct sockaddr*>(addr); in AddressList()
84 ai->ai_addr = reinterpret_cast<struct sockaddr*>(addr6); in AddressList()
224 ai->ai_addr = reinterpret_cast<struct sockaddr*>(new char[address_length]); in CreateAddressListFromSockaddr()
225 memcpy(ai->ai_addr, address, address_length); in CreateAddressListFromSockaddr()
Dhost_resolver_proc.cc30 reinterpret_cast<struct sockaddr_in*>(ai->ai_addr); in IsAllLocalhostOfOneFamily()
39 reinterpret_cast<struct sockaddr_in6*>(ai->ai_addr); in IsAllLocalhostOfOneFamily()
Dhost_port_pair.cc27 GetPortFromSockaddr(ai->ai_addr, ai->ai_addrlen)); in FromAddrInfo()
Dnet_util.cc1684 return NetAddressToString(net_address->ai_addr, net_address->ai_addrlen); in NetAddressToString()
1709 net_address->ai_addr, net_address->ai_addrlen); in NetAddressToStringWithPort()
2218 if (info->ai_addr) { in CreateCopyOfAddrinfo()
2219 copy->ai_addr = reinterpret_cast<sockaddr *>(new char[info->ai_addrlen]); in CreateCopyOfAddrinfo()
2220 memcpy(copy->ai_addr, info->ai_addr, info->ai_addrlen); in CreateCopyOfAddrinfo()
2237 if (info->ai_addr) in FreeCopyOfAddrinfo()
2238 delete [] reinterpret_cast<char*>(info->ai_addr); in FreeCopyOfAddrinfo()
2258 const struct sockaddr* address = info->ai_addr; in GetPortFieldFromAddrinfo()
/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.h144 struct sockaddr *ai_addr; /* binary address */ member
/external/dropbear/
Dfake-rfc2553.c129 ai->ai_addr = (struct sockaddr *)(ai + 1); in malloc_ai()
132 ai->ai_addr->sa_family = ai->ai_family = AF_INET; in malloc_ai()
134 ((struct sockaddr_in *)(ai)->ai_addr)->sin_port = port; in malloc_ai()
135 ((struct sockaddr_in *)(ai)->ai_addr)->sin_addr.s_addr = addr; in malloc_ai()
Dfake-rfc2553.h131 struct sockaddr *ai_addr; /* binary address */ member
/external/chromium/net/websockets/
Dwebsocket_throttle.cc27 reinterpret_cast<const sockaddr_in*>(addrinfo->ai_addr); in AddrinfoToHashkey()
34 reinterpret_cast<const sockaddr_in6*>(addrinfo->ai_addr); in AddrinfoToHashkey()
44 base::HexEncode(addrinfo->ai_addr, in AddrinfoToHashkey()
Dwebsocket_throttle_unittest.cc41 addrinfo->ai_addr = reinterpret_cast<sockaddr*>(new char[addrlen]); in AddAddr()
42 memset(addrinfo->ai_addr, 0, sizeof(addrlen)); in AddAddr()
44 reinterpret_cast<sockaddr_in*>(addrinfo->ai_addr); in AddAddr()
59 delete [] a->ai_addr; in DeleteAddrInfo()
/external/tcpdump/missing/
Dgetaddrinfo.c324 pai->ai_addr = NULL;
332 hints->ai_addr || hints->ai_next)
891 sin6 = (struct sockaddr_in6 *)cur->ai_addr;
1003 ai->ai_addr = (struct sockaddr *)(ai + 1);
1004 memset(ai->ai_addr, 0, afd->a_socklen);
1006 ai->ai_addr->sa_len = afd->a_socklen;
1009 ai->ai_addr->sa_family = ai->ai_family = afd->a_af;
1010 p = (char *)(ai->ai_addr);
1089 ((struct sockaddr_in *)ai->ai_addr)->sin_port = port;
1093 ((struct sockaddr_in6 *)ai->ai_addr)->sin6_port = port;
Daddrinfo.h78 struct sockaddr *ai_addr; /* binary address */ member
/external/chromium/net/tools/flip_server/
Dcreate_listener.cc176 if (bind(sock, results->ai_addr, results->ai_addrlen)) { in CreateListeningSocket()
282 if ( connect( sock, results->ai_addr, results->ai_addrlen ) ) { in CreateConnectedSocket()
/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 …]
/external/openssh/
Daudit-bsm.c143 in4 = (struct sockaddr_in *)ai->ai_addr; in aug_get_machine()
149 in6 = (struct sockaddr_in6 *)ai->ai_addr; in aug_get_machine()
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()
Dsshconnect.c232 if (bind(sock, res->ai_addr, res->ai_addrlen) < 0) { in ssh_create_socket()
376 if (getnameinfo(ai->ai_addr, ai->ai_addrlen, in ssh_connect()
391 if (timeout_connect(sock, ai->ai_addr, ai->ai_addrlen, in ssh_connect()
394 memcpy(hostaddr, ai->ai_addr, ai->ai_addrlen); in ssh_connect()
/external/chromium/net/socket/
Dsocks_client_socket.cc306 CHECK_EQ(AF_INET, ai->ai_addr->sa_family); in BuildHandshakeWriteBuffer()
308 reinterpret_cast<struct sockaddr_in*>(ai->ai_addr); in BuildHandshakeWriteBuffer()
Dtcp_server_socket_unittest.cc49 address.head()->ai_addr, address.head()->ai_addrlen)); in GetPeerAddress()
/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/chromium/net/spdy/
Dspdy_session_pool.cc216 endpoint.FromSockAddr(address->ai_addr, address->ai_addrlen); in GetFromAlias()
350 endpoint.FromSockAddr(address->ai_addr, address->ai_addrlen); in AddAliases()
/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()

123