Home
last modified time | relevance | path

Searched refs:addrlen (Results 1 – 25 of 96) sorted by relevance

1234

/external/parameter-framework/asio-1.10.6/include/asio/detail/
Dsocket_ops.hpp64 std::size_t* addrlen, asio::error_code& ec);
68 std::size_t* addrlen, asio::error_code& ec);
72 state_type state, socket_addr_type* addr, std::size_t* addrlen,
77 std::size_t addrlen, asio::error_code& ec);
92 std::size_t addrlen, asio::error_code& ec);
95 std::size_t addrlen, asio::error_code& ec);
131 std::size_t* addrlen, asio::error_code& ec);
135 std::size_t* addrlen, asio::error_code& ec);
140 socket_addr_type* addr, std::size_t* addrlen,
173 std::size_t addrlen, asio::error_code& ec);
[all …]
Dreactive_socket_accept_op.hpp50 std::size_t addrlen = o->peer_endpoint_ ? o->peer_endpoint_->capacity() : 0; in do_perform() local
54 o->peer_endpoint_ ? &addrlen : 0, o->ec_, new_socket); in do_perform()
61 o->peer_endpoint_->resize(addrlen); in do_perform()
/external/c-ares/
Dares__get_hostent.c41 size_t addrlen, linesize, naliases; in ares__get_hostent() local
138 addrlen = 0; in ares__get_hostent()
148 addrlen = sizeof(addr.addrV4); in ares__get_hostent()
151 if ((family == AF_INET6) || ((family == AF_UNSPEC) && (!addrlen))) in ares__get_hostent()
157 addrlen = sizeof(addr.addrV6); in ares__get_hostent()
160 if (!addrlen) in ares__get_hostent()
187 hostent->h_addr_list[0] = malloc(addrlen); in ares__get_hostent()
223 hostent->h_length = (int)addrlen; in ares__get_hostent()
Dares_gethostbyaddr.c71 void ares_gethostbyaddr(ares_channel channel, const void *addr, int addrlen, in ares_gethostbyaddr() argument
82 if ((family == AF_INET && addrlen != sizeof(aquery->addr.addrV4)) || in ares_gethostbyaddr()
83 (family == AF_INET6 && addrlen != sizeof(aquery->addr.addrV6))) in ares_gethostbyaddr()
148 size_t addrlen; in addr_callback() local
155 addrlen = sizeof(aquery->addr.addrV4); in addr_callback()
157 (int)addrlen, AF_INET, &host); in addr_callback()
161 addrlen = sizeof(aquery->addr.addrV6); in addr_callback()
163 (int)addrlen, AF_INET6, &host); in addr_callback()
Dares_parse_ptr_reply.c48 int addrlen, int family, struct hostent **host) in ares_parse_ptr_reply() argument
181 hostent->h_addr_list[0] = malloc(addrlen); in ares_parse_ptr_reply()
193 hostent->h_length = addrlen; in ares_parse_ptr_reply()
194 memcpy(hostent->h_addr_list[0], addr, addrlen); in ares_parse_ptr_reply()
/external/parameter-framework/asio-1.10.6/include/asio/detail/impl/
Dsocket_ops.ipp68 socket_type s, socket_addr_type* addr, std::size_t* addrlen)
70 SockLenType tmp_addrlen = addrlen ? (SockLenType)*addrlen : 0;
71 socket_type result = ::accept(s, addr, addrlen ? &tmp_addrlen : 0);
72 if (addrlen)
73 *addrlen = (std::size_t)tmp_addrlen;
78 std::size_t* addrlen, asio::error_code& ec)
89 &msghdr::msg_namelen, s, addr, addrlen), ec);
109 socket_addr_type* addr, std::size_t* addrlen, asio::error_code& ec)
115 socket_type new_socket = socket_ops::accept(s, addr, addrlen, ec);
154 state_type state, socket_addr_type* addr, std::size_t* addrlen,
[all …]
/external/openssh/
Dsshlogin.c128 const char *host, struct sockaddr *addr, socklen_t addrlen) in record_login() argument
136 login_set_addr(li, addr, addrlen); in record_login()
144 const char *host, struct sockaddr *addr, socklen_t addrlen) in record_utmp_only() argument
149 login_set_addr(li, addr, addrlen); in record_utmp_only()
Dcanohost.c244 socklen_t addrlen; in get_socket_address() local
249 addrlen = sizeof(addr); in get_socket_address()
253 if (getpeername(sock, (struct sockaddr *)&addr, &addrlen) in get_socket_address()
257 if (getsockname(sock, (struct sockaddr *)&addr, &addrlen) in get_socket_address()
264 addrlen = sizeof(struct sockaddr_in6); in get_socket_address()
265 ipv64_normalise_mapped(&addr, &addrlen); in get_socket_address()
272 if ((r = getnameinfo((struct sockaddr *)&addr, addrlen, ntop, in get_socket_address()
Dsshconnect.c333 socklen_t addrlen, int *timeoutp) in timeout_connect() argument
343 result = connect(sockfd, serv_addr, addrlen); in timeout_connect()
348 rc = connect(sockfd, serv_addr, addrlen); in timeout_connect()
748 socklen_t addrlen; in get_hostfile_hostname_ipaddr() local
752 addrlen = 0; in get_hostfile_hostname_ipaddr()
755 addrlen = sizeof(struct sockaddr_in); in get_hostfile_hostname_ipaddr()
758 addrlen = sizeof(struct sockaddr_in6); in get_hostfile_hostname_ipaddr()
761 addrlen = sizeof(struct sockaddr); in get_hostfile_hostname_ipaddr()
771 if (getnameinfo(hostaddr, addrlen, in get_hostfile_hostname_ipaddr()
/external/strace/tests/
Dunix-yy-accept.awk33 addrlen = length(addr) + 3
41 …de_listen "\\]>, \\{sa_family=AF_(LOCAL|UNIX|FILE), sun_path=\"" addr "\"\\}, " addrlen "\\) += 0$"
43 …r "\"\\]>, \\{sa_family=AF_(LOCAL|UNIX|FILE), sun_path=\"" addr "\"\\}, \\[" addrlen "\\]\\) += 0$"
Dunix-yy-connect.awk32 addrlen = length(addr) + 3
42 …\[" inode "\\]>, \\{sa_family=AF_(LOCAL|UNIX|FILE), sun_path=\"" addr "\"\\}, " addrlen "\\) += 0$"
/external/libmicrohttpd/src/microspdy/
Ddaemon.c191 socklen_t addrlen; in SPDYF_start_daemon_va() local
256 addrlen = sizeof (struct sockaddr_in6); in SPDYF_start_daemon_va()
260 if (NULL == (servaddr6 = malloc (addrlen))) in SPDYF_start_daemon_va()
265 memset (servaddr6, 0, addrlen); in SPDYF_start_daemon_va()
288 addrlen = sizeof (struct sockaddr_in); in SPDYF_start_daemon_va()
292 if (NULL == (servaddr4 = malloc (addrlen))) in SPDYF_start_daemon_va()
297 memset (servaddr4, 0, addrlen); in SPDYF_start_daemon_va()
333 if (-1 == bind (daemon->socket_fd, daemon->address, addrlen)) in SPDYF_start_daemon_va()
/external/curl/lib/
Dsetup-os400.h203 extern int Curl_os400_connect(int sd, struct sockaddr * destaddr, int addrlen);
204 extern int Curl_os400_bind(int sd, struct sockaddr * localaddr, int addrlen);
206 struct sockaddr * dstaddr, int addrlen);
208 struct sockaddr * fromaddr, int * addrlen);
/external/curl/packages/OS400/
Dos400sys.c1239 Curl_os400_connect(int sd, struct sockaddr * destaddr, int addrlen) in Curl_os400_connect() argument
1245 i = convert_sockaddr(&laddr, destaddr, addrlen); in Curl_os400_connect()
1255 Curl_os400_bind(int sd, struct sockaddr * localaddr, int addrlen) in Curl_os400_bind() argument
1261 i = convert_sockaddr(&laddr, localaddr, addrlen); in Curl_os400_bind()
1272 struct sockaddr * dstaddr, int addrlen) in Curl_os400_sendto() argument
1278 i = convert_sockaddr(&laddr, dstaddr, addrlen); in Curl_os400_sendto()
1289 struct sockaddr * fromaddr, int * addrlen) in Curl_os400_recvfrom() argument
1299 if(!fromaddr || !addrlen || *addrlen <= 0) in Curl_os400_recvfrom()
1300 return recvfrom(sd, buffer, buflen, flags, fromaddr, addrlen); in Curl_os400_recvfrom()
1315 i = *addrlen - offsetof(struct sockaddr_un, sun_path); in Curl_os400_recvfrom()
[all …]
/external/dnsmasq/src/
Dcache.c303 int addrlen = (flags & F_IPV6) ? IN6ADDRSZ : INADDRSZ; in cache_scan_free() local
305 int addrlen = INADDRSZ; in cache_scan_free() local
323 memcmp(&crecp->addr.addr, addr, addrlen) == 0) in cache_scan_free()
584 int addrlen = (prot == F_IPV6) ? IN6ADDRSZ : INADDRSZ; in cache_find_by_addr() local
586 int addrlen = INADDRSZ; in cache_find_by_addr() local
607 memcmp(&crecp->addr.addr, addr, addrlen) == 0) in cache_find_by_addr()
638 memcmp(&ans->addr.addr, addr, addrlen) == 0) in cache_find_by_addr()
644 static void add_hosts_entry(struct crec *cache, struct all_addr *addr, int addrlen, in add_hosts_entry() argument
655 if (memcmp(&lookup->addr.addr, addr, addrlen) == 0) in add_hosts_entry()
678 memcmp(&lookup->addr.addr, addr, addrlen) == 0) in add_hosts_entry()
[all …]
/external/libvncserver/libvncserver/
Dhttpd.c177 socklen_t addrlen = sizeof(addr); in rfbHttpCheckFds() local
216 …rfbScreen->httpSock = accept(rfbScreen->httpListenSock, (struct sockaddr *)&addr, &addrlen)) < 0) { in rfbHttpCheckFds()
222 …fbScreen->httpSock = accept(rfbScreen->httpListen6Sock, (struct sockaddr *)&addr, &addrlen)) < 0) { in rfbHttpCheckFds()
231 …if(getnameinfo((struct sockaddr*)&addr, addrlen, host, sizeof(host), NULL, 0, NI_NUMERICHOST) != 0… in rfbHttpCheckFds()
279 socklen_t addrlen = sizeof(addr); in httpProcessInput() local
400 getpeername(rfbScreen->httpSock, (struct sockaddr *)&addr, &addrlen); in httpProcessInput()
404 …if(getnameinfo((struct sockaddr*)&addr, addrlen, host, sizeof(host), NULL, 0, NI_NUMERICHOST) != 0… in httpProcessInput()
Dsockets.c289 socklen_t addrlen = sizeof(addr); in rfbCheckFds() local
353 (struct sockaddr *)&addr, &addrlen) < 0) { in rfbCheckFds()
359 (memcmp(&addr, &rfbScreen->udpRemoteAddr, addrlen) != 0)) in rfbCheckFds()
364 memcpy(&rfbScreen->udpRemoteAddr, &addr, addrlen); in rfbCheckFds()
368 (struct sockaddr *)&addr, addrlen) < 0) { in rfbCheckFds()
414 socklen_t addrlen = sizeof(addr); in rfbProcessNewConnection() local
436 (struct sockaddr *)&addr, &addrlen)) < 0) { in rfbProcessNewConnection()
466 …if(getnameinfo((struct sockaddr*)&addr, addrlen, host, sizeof(host), NULL, 0, NI_NUMERICHOST) != 0… in rfbProcessNewConnection()
/external/wpa_supplicant_8/src/common/
Dctrl_iface_common.c125 dst->addrlen = fromlen; in ctrl_iface_attach()
141 &dst->addr, dst->addrlen)) { in ctrl_iface_detach()
163 &dst->addr, dst->addrlen)) { in ctrl_iface_level()
/external/libvncserver/libvncclient/
Dsockets.c620 socklen_t addrlen = sizeof(addr); in AcceptTcpConnection() local
623 sock = accept(listenSock, (struct sockaddr *) &addr, &addrlen); in AcceptTcpConnection()
676 socklen_t addrlen = sizeof(addr);
678 if(getsockname(sock, &addr, &addrlen) != 0) {
752 socklen_t addrlen = sizeof(struct sockaddr_in); local
754 getpeername(sock, (struct sockaddr *)&peeraddr, &addrlen);
755 getsockname(sock, (struct sockaddr *)&myaddr, &addrlen);
/external/libmicrohttpd/src/microhttpd/
Ddaemon.c267 socklen_t addrlen, in MHD_ip_addr_to_key() argument
273 if (sizeof (struct sockaddr_in) == addrlen) in MHD_ip_addr_to_key()
283 if (sizeof (struct sockaddr_in6) == addrlen) in MHD_ip_addr_to_key()
309 socklen_t addrlen) in MHD_ip_limit_add() argument
325 if (MHD_NO == MHD_ip_addr_to_key (addr, addrlen, key)) in MHD_ip_limit_add()
373 socklen_t addrlen) in MHD_ip_limit_del() argument
384 if (MHD_NO == MHD_ip_addr_to_key (addr, addrlen, &search_key)) in MHD_ip_limit_del()
1350 socklen_t addrlen, in internal_add_connection() argument
1373 addr, addrlen, in internal_add_connection()
1413 (MHD_NO == MHD_ip_limit_add (daemon, addr, addrlen)) ) in internal_add_connection()
[all …]
Dtest_daemon.c50 apc_nothing (void *cls, const struct sockaddr *addr, socklen_t addrlen) in apc_nothing() argument
56 apc_all (void *cls, const struct sockaddr *addr, socklen_t addrlen) in apc_all() argument
/external/clang/test/Analysis/
Dcasts.c22 socklen_t addrlen = sizeof(storage); in f() local
23 getsockname(sock, sockaddr, &addrlen); in f()
/external/iptables/libipq/
Dlibipq.c127 unsigned int addrlen; in ipq_netlink_recvfrom() local
135 addrlen = sizeof(h->peer); in ipq_netlink_recvfrom()
168 (struct sockaddr *)&h->peer, &addrlen); in ipq_netlink_recvfrom()
173 if (addrlen != sizeof(h->peer)) { in ipq_netlink_recvfrom()
/external/netperf/src/
Dnettest_sdp.c1573 netperf_socklen_t addrlen; in recv_sdp_stream() local
1733 addrlen = sizeof(myaddr_in); in recv_sdp_stream()
1736 &addrlen) == SOCKET_ERROR){ in recv_sdp_stream()
1778 addrlen = sizeof(peeraddr_in); in recv_sdp_stream()
1782 &addrlen)) == INVALID_SOCKET) { in recv_sdp_stream()
1916 netperf_socklen_t addrlen; in recv_sdp_maerts() local
2069 addrlen = sizeof(myaddr_in); in recv_sdp_maerts()
2072 &addrlen) == SOCKET_ERROR){ in recv_sdp_maerts()
2114 addrlen = sizeof(peeraddr_in); in recv_sdp_maerts()
2130 &addrlen)) == INVALID_SOCKET) { in recv_sdp_maerts()
[all …]
/external/webrtc/webrtc/base/
Dmacasyncsocket.cc58 socklen_t addrlen = sizeof(addr); in GetLocalAddress() local
60 reinterpret_cast<sockaddr*>(&addr), &addrlen); in GetLocalAddress()
74 socklen_t addrlen = sizeof(addr); in GetRemoteAddress() local
76 reinterpret_cast<sockaddr*>(&addr), &addrlen); in GetRemoteAddress()

1234