Home
last modified time | relevance | path

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

123

/external/linux-tools-perf/src/tools/perf/ui/browsers/
Dmap.c18 u8 addrlen; member
30 mb->addrlen, sym->start, mb->addrlen, sym->end, in map_browser__write()
33 width = self->width - ((mb->addrlen * 2) + 4); in map_browser__write()
128 mb.addrlen = snprintf(tmp, sizeof(tmp), "%" PRIx64, maxaddr); in map__browse()
/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()
Dchannels.c1168 u_int have, need, i, found, nmethods, addrlen, af; in channel_decode_socks5() local
1214 addrlen = 4; in channel_decode_socks5()
1218 addrlen = p[sizeof(s5_req)]; in channel_decode_socks5()
1222 addrlen = 16; in channel_decode_socks5()
1229 need = sizeof(s5_req) + addrlen + 2; in channel_decode_socks5()
1237 buffer_get(&c->input, &dest_addr, addrlen); in channel_decode_socks5()
1239 dest_addr[addrlen] = '\0'; in channel_decode_socks5()
1243 if (addrlen >= NI_MAXHOST) { in channel_decode_socks5()
1346 socklen_t addrlen; in channel_post_x11_listener() local
1352 addrlen = sizeof(addr); in channel_post_x11_listener()
[all …]
/external/strace/tests/
Dunix-yy-accept.awk5 addrlen = length(addr) + 3
7 …\[(" r_i ")\\]>, \\{sa_family=AF_(LOCAL|UNIX|FILE), sun_path=\"" addr "\"\\}, " addrlen "\\) += 0$"
16 …r "\"\\]>, \\{sa_family=AF_(LOCAL|UNIX|FILE), sun_path=\"" addr "\"\\}, \\[" addrlen "\\]\\) += 0$"
Dunix-yy-connect.awk4 addrlen = length(addr) + 3
8 …\[(" r_i ")\\]>, \\{sa_family=AF_(LOCAL|UNIX|FILE), sun_path=\"" addr "\"\\}, " addrlen "\\) += 0$"
/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.c165 socklen_t addrlen = sizeof(addr); in rfbHttpCheckFds() local
204 …rfbScreen->httpSock = accept(rfbScreen->httpListenSock, (struct sockaddr *)&addr, &addrlen)) < 0) { in rfbHttpCheckFds()
210 …fbScreen->httpSock = accept(rfbScreen->httpListen6Sock, (struct sockaddr *)&addr, &addrlen)) < 0) { in rfbHttpCheckFds()
219 …if(getnameinfo((struct sockaddr*)&addr, addrlen, host, sizeof(host), NULL, 0, NI_NUMERICHOST) != 0… in rfbHttpCheckFds()
267 socklen_t addrlen = sizeof(addr); in httpProcessInput() local
388 getpeername(rfbScreen->httpSock, (struct sockaddr *)&addr, &addrlen); in httpProcessInput()
391 …if(getnameinfo((struct sockaddr*)&addr, addrlen, host, sizeof(host), NULL, 0, NI_NUMERICHOST) != 0… in httpProcessInput()
Dsockets.c264 socklen_t addrlen = sizeof(addr); in rfbCheckFds() local
328 (struct sockaddr *)&addr, &addrlen) < 0) { in rfbCheckFds()
334 (memcmp(&addr, &rfbScreen->udpRemoteAddr, addrlen) != 0)) in rfbCheckFds()
339 memcpy(&rfbScreen->udpRemoteAddr, &addr, addrlen); in rfbCheckFds()
343 (struct sockaddr *)&addr, addrlen) < 0) { in rfbCheckFds()
389 socklen_t addrlen = sizeof(addr); in rfbProcessNewConnection() local
411 (struct sockaddr *)&addr, &addrlen)) < 0) { in rfbProcessNewConnection()
440 …if(getnameinfo((struct sockaddr*)&addr, addrlen, host, sizeof(host), NULL, 0, NI_NUMERICHOST) != 0… in rfbProcessNewConnection()
/external/libvncserver/x11vnc/
Dinet.h52 extern char *ipv6_getnameinfo(struct sockaddr *paddr, int addrlen);
53 extern char *ipv6_getipaddr(struct sockaddr *paddr, int addrlen);
Dinet.c57 char *ipv6_getnameinfo(struct sockaddr *paddr, int addrlen);
58 char *ipv6_getipaddr(struct sockaddr *paddr, int addrlen);
514 char *ipv6_getnameinfo(struct sockaddr *paddr, int addrlen) { in ipv6_getnameinfo() argument
520 if (getnameinfo(paddr, addrlen, name, sizeof(name), NULL, 0, 0) == 0) { in ipv6_getnameinfo()
527 char *ipv6_getipaddr(struct sockaddr *paddr, int addrlen) { in ipv6_getipaddr() argument
533 if (getnameinfo(paddr, addrlen, name, sizeof(name), NULL, 0, NI_NUMERICHOST) == 0) { in ipv6_getipaddr()
/external/libvncserver/libvncclient/
Dsockets.c602 socklen_t addrlen = sizeof(addr); in AcceptTcpConnection() local
605 sock = accept(listenSock, (struct sockaddr *) &addr, &addrlen); in AcceptTcpConnection()
658 socklen_t addrlen = sizeof(addr);
660 if(getsockname(sock, &addr, &addrlen) != 0) {
734 socklen_t addrlen = sizeof(struct sockaddr_in); local
736 getpeername(sock, (struct sockaddr *)&peeraddr, &addrlen);
737 getsockname(sock, (struct sockaddr *)&myaddr, &addrlen);
/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/
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 …]
Dnettest_sctp.c1067 int addrlen; in recv_sctp_stream() local
1218 addrlen = sizeof(myaddr_in); in recv_sctp_stream()
1221 &addrlen) == -1){ in recv_sctp_stream()
1272 addrlen = sizeof(peeraddr); in recv_sctp_stream()
1276 &addrlen)) == INVALID_SOCKET) { in recv_sctp_stream()
2228 int addrlen; in recv_sctp_stream_1toMany() local
2386 addrlen = sizeof(myaddr_in); in recv_sctp_stream_1toMany()
2389 &addrlen) == -1){ in recv_sctp_stream_1toMany()
3269 int addrlen; in recv_sctp_rr() local
3398 addrlen = sizeof(myaddr_in); in recv_sctp_rr()
[all …]
Dnettest_bsd.c4233 netperf_socklen_t addrlen; in recv_tcp_stream() local
4390 addrlen = sizeof(myaddr_in); in recv_tcp_stream()
4393 &addrlen) == SOCKET_ERROR){ in recv_tcp_stream()
4436 addrlen = sizeof(peeraddr_in); in recv_tcp_stream()
4440 &addrlen)) == INVALID_SOCKET) { in recv_tcp_stream()
4574 netperf_socklen_t addrlen; in recv_tcp_maerts() local
4724 addrlen = sizeof(myaddr_in); in recv_tcp_maerts()
4727 &addrlen) == SOCKET_ERROR){ in recv_tcp_maerts()
4770 addrlen = sizeof(peeraddr_in); in recv_tcp_maerts()
4786 &addrlen)) == INVALID_SOCKET) { in recv_tcp_maerts()
[all …]
Dnettest_unix.c710 int addrlen; in recv_stream_stream() local
877 addrlen = sizeof(myaddr_un); in recv_stream_stream()
880 &addrlen) == SOCKET_ERROR){ in recv_stream_stream()
915 addrlen = sizeof(peeraddr_un); in recv_stream_stream()
919 &addrlen)) == INVALID_SOCKET) { in recv_stream_stream()
2744 int addrlen; in recv_dg_rr() local
2915 addrlen = sizeof(peeraddr_un); in recv_dg_rr()
2916 bzero((char *)&peeraddr_un, addrlen); in recv_dg_rr()
2931 &addrlen) != dg_rr_request->request_size) { in recv_dg_rr()
2951 addrlen) != dg_rr_request->response_size) { in recv_dg_rr()
[all …]
/external/wpa_supplicant_8/wpa_supplicant/
Dctrl_iface_unix.c40 socklen_t addrlen; member
86 dst->addrlen = fromlen; in wpa_supplicant_ctrl_iface_attach()
105 if (fromlen == dst->addrlen && in wpa_supplicant_ctrl_iface_detach()
135 if (fromlen == dst->addrlen && in wpa_supplicant_ctrl_iface_level()
714 (u8 *) dst->addr.sun_path, dst->addrlen - in wpa_supplicant_ctrl_iface_send()
717 msg.msg_namelen = dst->addrlen; in wpa_supplicant_ctrl_iface_send()
734 dst->addrlen); in wpa_supplicant_ctrl_iface_send()
/external/libnl/lib/
Dnl.c109 socklen_t addrlen; in nl_connect() local
130 addrlen = sizeof(sk->s_local); in nl_connect()
132 &addrlen); in nl_connect()
138 if (addrlen != sizeof(sk->s_local)) { in nl_connect()
/external/strace/
Dnet.c204 printsock(struct tcb *tcp, long addr, int addrlen) in printsock() argument
241 if (addrlen < 2 || addrlen > (int) sizeof(addrbuf)) in printsock()
242 addrlen = sizeof(addrbuf); in printsock()
245 if (umoven(tcp, addr, addrlen, addrbuf.pad) < 0) { in printsock()
257 if (addrlen == 2) { in printsock()
/external/toybox/toys/pending/
Dtraceroute.c245 unsigned addrlen = sizeof(struct sockaddr_storage); in do_trace() local
249 MSG_DONTWAIT, (struct sockaddr *) &from, &addrlen); in do_trace()
294 if (addrlen > 0) { in do_trace()
409 if (addrlen > 0) { in do_trace()
/external/iputils/ninfod/
Dninfod.c313 p->addrlen = msgh.msg_namelen; in ni_recv()
350 msgh.msg_namelen = p->addrlen; in ni_send()
738 p->addrlen, in main()
Dninfod.h62 socklen_t addrlen; member

123