Home
last modified time | relevance | path

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

12345

/external/strace/
Dsockaddr.c67 print_sockaddr_data_un(const void *const buf, const int addrlen) in print_sockaddr_data_un() argument
70 const int un_len = addrlen > (int) sizeof(*sa_un) in print_sockaddr_data_un()
71 ? (int) sizeof(*sa_un) : addrlen; in print_sockaddr_data_un()
113 print_sockaddr_data_in(const void *const buf, const int addrlen) in print_sockaddr_data_in() argument
124 print_sockaddr_data_in6(const void *const buf, const int addrlen) in print_sockaddr_data_in6() argument
133 if (addrlen <= (int) SIN6_MIN_LEN) in print_sockaddr_data_in6()
147 print_sockaddr_data_ipx(const void *const buf, const int addrlen) in print_sockaddr_data_ipx() argument
165 print_sockaddr_data_nl(const void *const buf, const int addrlen) in print_sockaddr_data_nl() argument
174 print_sockaddr_data_ll(const void *const buf, const int addrlen) in print_sockaddr_data_ll() argument
189 addrlen - offsetof(struct sockaddr_ll, sll_addr); in print_sockaddr_data_ll()
[all …]
Dnet.c108 const kernel_ulong_t addrlen) in decode_sockbuf() argument
113 decode_netlink(tcp, fd, addr, addrlen); in decode_sockbuf()
116 printstrn(tcp, addr, addrlen); in decode_sockbuf()
173 const int addrlen = tcp->u_arg[2]; in SYS_FUNC() local
174 decode_sockaddr(tcp, tcp->u_arg[1], addrlen); in SYS_FUNC()
175 tprintf(", %d", addrlen); in SYS_FUNC()
270 const int addrlen = tcp->u_arg[5]; in SYS_FUNC() local
272 decode_sockaddr(tcp, tcp->u_arg[4], addrlen); in SYS_FUNC()
274 tprintf(", %d", addrlen); in SYS_FUNC()
/external/ltp/lib/
Dsafe_net.c134 const struct sockaddr *dest_addr, socklen_t addrlen) in safe_sendto() argument
139 rval = sendto(sockfd, buf, len, flags, dest_addr, addrlen); in safe_sendto()
145 tst_sock_addr(dest_addr, addrlen, res, sizeof(res)), in safe_sendto()
146 addrlen); in safe_sendto()
205 int sockfd, const struct sockaddr *addr, socklen_t addrlen) in safe_connect() argument
210 rval = connect(sockfd, addr, addrlen); in safe_connect()
215 sockfd, tst_sock_addr(addr, addrlen, buf, in safe_connect()
216 sizeof(buf)), addrlen); in safe_connect()
224 socklen_t *addrlen) in safe_getsockname() argument
229 rval = getsockname(sockfd, addr, addrlen); in safe_getsockname()
[all …]
/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/ltp/include/
Dtst_safe_net.h38 #define SAFE_SENDTO(strict, fd, buf, len, flags, dest_addr, addrlen) \ argument
40 dest_addr, addrlen)
49 #define SAFE_CONNECT(sockfd, addr, addrlen) \ argument
50 safe_connect(__FILE__, __LINE__, NULL, sockfd, addr, addrlen)
52 #define SAFE_GETSOCKNAME(sockfd, addr, addrlen) \ argument
54 addrlen)
Dsafe_net_fn.h42 const struct sockaddr *dest_addr, socklen_t addrlen);
52 int sockfd, const struct sockaddr *addr, socklen_t addrlen);
56 socklen_t *addrlen);
/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/openssh/
Dcanohost.c71 socklen_t addrlen; in get_socket_address() local
76 addrlen = sizeof(addr); in get_socket_address()
80 if (getpeername(sock, (struct sockaddr *)&addr, &addrlen) != 0) in get_socket_address()
83 if (getsockname(sock, (struct sockaddr *)&addr, &addrlen) != 0) in get_socket_address()
89 addrlen = sizeof(struct sockaddr_in6); in get_socket_address()
90 ipv64_normalise_mapped(&addr, &addrlen); in get_socket_address()
97 if ((r = getnameinfo((struct sockaddr *)&addr, addrlen, ntop, in get_socket_address()
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()
/external/compiler-rt/test/msan/Linux/
Dsendmsg.cc45 socklen_t addrlen = sizeof(serveraddr); in main() local
46 getsockname(sockfd, (struct sockaddr *)&serveraddr, &addrlen); in main()
56 msg.msg_namelen = addrlen; in main()
65 ret = connect(sockfd, (struct sockaddr *)&serveraddr, addrlen); in main()
72 sendto(sockfd, buf, kBufSize, 0, (struct sockaddr *)&serveraddr, addrlen); in main()
/external/ltp/testcases/kernel/syscalls/accept4/
Daccept4_01.c69 accept4_01(int fd, struct sockaddr *sockaddr, socklen_t *addrlen, int flags) in accept4_01() argument
91 args[2] = (long)addrlen; in accept4_01()
96 return ltp_syscall(__NR_accept4, fd, sockaddr, addrlen, flags); in accept4_01()
108 socklen_t addrlen; in do_test() local
121 addrlen = sizeof(struct sockaddr_in); in do_test()
123 acceptfd = accept4_01(lfd, (struct sockaddr *)&claddr, &addrlen, in do_test()
126 acceptfd = accept4(lfd, (struct sockaddr *)&claddr, &addrlen, in do_test()
/external/ltp/include/old/
Dold_safe_net.h40 #define SAFE_CONNECT(cleanup_fn, sockfd, addr, addrlen) \ argument
41 safe_connect(__FILE__, __LINE__, (cleanup_fn), sockfd, addr, addrlen)
43 #define SAFE_GETSOCKNAME(cleanup_fn, sockfd, addr, addrlen) \ argument
45 addrlen)
/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/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/ltp/utils/sctp/func_tests/
Dtest_tcp_style.c67 socklen_t addrlen; in main() local
133 addrlen = sizeof(accept_loop); in main()
135 error = accept(clt_sk[0], &accept_loop.sa, &addrlen); in main()
178 addrlen = sizeof(accept_loop); in main()
180 &addrlen); in main()
194 error = accept(accept_sk[0], &accept_loop.sa, &addrlen); in main()
199 error = accept(clt_sk[0], &accept_loop.sa, &addrlen); in main()
363 accept2_sk = test_accept(listen_sk, &accept_loop.sa, &addrlen); in main()
401 accept2_sk = test_accept(listen_sk, &accept_loop.sa, &addrlen); in main()
/external/libnfnetlink/src/
Drtnl.c208 socklen_t addrlen; in rtnl_open() local
215 addrlen = sizeof(h->rtnl_local); in rtnl_open()
227 if (bind(h->rtnl_fd, (struct sockaddr *) &h->rtnl_local, addrlen) < 0) { in rtnl_open()
234 &addrlen) < 0) { in rtnl_open()
239 if (addrlen != sizeof(h->rtnl_local)) { in rtnl_open()
/external/ltp/utils/sctp/testlib/
Dsctputil.h141 static inline int test_bind(int sk, struct sockaddr *addr, socklen_t addrlen) in test_bind() argument
143 int error = bind(sk, addr, addrlen); in test_bind()
165 static inline int test_connect(int sk, struct sockaddr *addr, socklen_t addrlen) in test_connect() argument
167 int error = connect(sk, addr, addrlen); in test_connect()
181 static inline int test_accept(int sk, struct sockaddr *addr, socklen_t *addrlen) in test_accept() argument
183 int error = accept(sk, addr, addrlen); in test_accept()
/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/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/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/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()
/external/libpcap/
Dsockutils.c1041 int sock_getmyinfo(SOCKET sock, char *address, int addrlen, char *port, int portlen, int flags, cha… in sock_getmyinfo() argument
1057 …return sock_getascii_addrport(&mysockaddr, address, addrlen, port, portlen, flags, errbuf, errbufl… in sock_getmyinfo()
1111 int sock_getascii_addrport(const struct sockaddr_storage *sockaddr, char *address, int addrlen, cha… in sock_getascii_addrport() argument
1133 strlcpy(address, SOCKET_NAME_NULL_DAD, addrlen); in sock_getascii_addrport()
1138 …if (getnameinfo((struct sockaddr *) sockaddr, sockaddrlen, address, addrlen, port, portlen, flags)… in sock_getascii_addrport()
1149 strlcpy(address, SOCKET_NO_NAME_AVAILABLE, addrlen); in sock_getascii_addrport()
1150 address[addrlen - 1] = 0; in sock_getascii_addrport()

12345