Home
last modified time | relevance | path

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

123

/external/chromium/net/base/
Daddress_list_unittest.cc139 ai.ai_addrlen = sizeof(address); in TEST()
207 EXPECT_EQ(good_ai->ai_addrlen, test_ai->ai_addrlen); in TEST()
243 good_ai->ai_addrlen, in TEST()
249 EXPECT_EQ(good_ai->ai_addrlen, test_ai->ai_addrlen); in TEST()
Daddress_list.cc64 ai->ai_addrlen = sockaddr_in_size; in AddressList()
77 ai->ai_addrlen = sockaddr_in6_size; in AddressList()
223 ai->ai_addrlen = address_length; in CreateAddressListFromSockaddr()
Dhost_port_pair.cc27 GetPortFromSockaddr(ai->ai_addr, ai->ai_addrlen)); in FromAddrInfo()
Dhost_resolver_impl_unittest.cc285 EXPECT_EQ(sizeof(struct sockaddr_in), ainfo->ai_addrlen); in TEST_F()
330 EXPECT_EQ(sizeof(struct sockaddr_in), ainfo->ai_addrlen); in TEST_F()
421 EXPECT_EQ(sizeof(struct sockaddr_in), ainfo->ai_addrlen); in TEST_F()
446 EXPECT_EQ(sizeof(struct sockaddr_in6), ainfo->ai_addrlen); in TEST_F()
1690 EXPECT_EQ(sizeof(struct sockaddr_in), ainfo->ai_addrlen); in TEST_F()
/external/qemu/
Dqemu-sockets.c116 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()
389 if (bind(sock, local->ai_addr, local->ai_addrlen) < 0) { in inet_dgram_opts()
396 if (getnameinfo((struct sockaddr*)peer->ai_addr, peer->ai_addrlen, in inet_dgram_opts()
402 if (connect(sock,peer->ai_addr,peer->ai_addrlen) < 0) { in inet_dgram_opts()
/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/tcpdump/missing/
Daddrinfo.h76 size_t ai_addrlen; /* length of ai_addr */ member
Dgetaddrinfo.c322 pai->ai_addrlen = 0;
331 if (hints->ai_addrlen || hints->ai_canonname ||
1008 ai->ai_addrlen = afd->a_socklen;
/external/dropbear/
Dfake-rfc2553.h129 size_t ai_addrlen; /* length of ai_addr */ member
Dfake-rfc2553.c131 ai->ai_addrlen = sizeof(struct sockaddr_in); in malloc_ai()
Ddbutil.c259 if (bind(sock, res->ai_addr, res->ai_addrlen) < 0) { in dropbear_listen()
354 if (connect(sock, res->ai_addr, res->ai_addrlen) < 0) { in connect_remote()
/external/openssh/openbsd-compat/
Dfake-rfc2553.h142 size_t ai_addrlen; /* length of ai_addr */ member
Dfake-rfc2553.c136 ai->ai_addrlen = sizeof(struct sockaddr_in); in malloc_ai()
/external/ipsec-tools/src/libipsec/
Dpolicy_parse.y426 newaddr = malloc(res->ai_addrlen);
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/openssh/
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()
Dcanohost.c128 if (getnameinfo(ai->ai_addr, ai->ai_addrlen, ntop2, in get_remote_hostname()
/external/netcat/
Dnetcat.c629 ares->ai_addrlen) < 0) in remote_connect()
636 if (timeout_connect(s, res0->ai_addr, res0->ai_addrlen) == 0) in remote_connect()
738 res0->ai_addrlen) == 0) in local_listen()
/external/chromium/net/websockets/
Dwebsocket_throttle.cc45 addrinfo->ai_addrlen).c_str()); in AddrinfoToHashkey()
/external/chromium/net/socket/
Dtcp_server_socket_unittest.cc49 address.head()->ai_addr, address.head()->ai_addrlen)); in GetPeerAddress()
Dtcp_client_socket_libevent.cc247 static_cast<int>(current_ai_->ai_addrlen)))) { in DoConnect()
470 static_cast<int>(current_ai_->ai_addrlen))); in InternalWrite()
/external/opencv/otherlibs/highgui/
Dcvcap_socket.cpp229 if (connect(sockd, pAddrInfo->ai_addr, pAddrInfo->ai_addrlen) < 0 || errno != 0) in grabFrame()
/external/netperf/
Dnettest_sctp.c615 remote_res->ai_addrlen) == INVALID_SOCKET) {
1756 remote_res->ai_addrlen) == INVALID_SOCKET){
1870 remote_res->ai_addrlen,
1947 remote_res->ai_addrlen, 0, MSG_EOF, 0, 0, 0);
2826 remote_res->ai_addrlen) <0){
3883 remote_res->ai_addrlen) < 0){
3963 remote_res->ai_addrlen,
3995 remote_res->ai_addrlen,
/external/libxml2/
Dnanohttp.c1079 if (res->ai_addrlen > sizeof(sockin)) { in xmlNanoHTTPConnectHost()
1084 memcpy (&sockin, res->ai_addr, res->ai_addrlen); in xmlNanoHTTPConnectHost()
1089 if (res->ai_addrlen > sizeof(sockin6)) { in xmlNanoHTTPConnectHost()
1094 memcpy (&sockin6, res->ai_addr, res->ai_addrlen); in xmlNanoHTTPConnectHost()
/external/chromium/third_party/libevent/
Dhttp.c149 size_t ai_addrlen; member
166 ai->ai_addrlen = sizeof(struct sockaddr_in); in fake_getaddrinfo()
167 if (NULL == (ai->ai_addr = malloc(ai->ai_addrlen))) in fake_getaddrinfo()
170 memset(sa, 0, ai->ai_addrlen); in fake_getaddrinfo()
2711 r = bind(fd, ai->ai_addr, ai->ai_addrlen); in bind_socket_ai()
2801 if (connect(fd, ai->ai_addr, ai->ai_addrlen) == -1) { in socket_connect()

123