Home
last modified time | relevance | path

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

12345678

/external/strace/
Dsockaddr.c70 print_sockaddr_data_un(const void *const buf, const int addrlen) in print_sockaddr_data_un() argument
73 const int un_len = addrlen > (int) sizeof(*sa_un) in print_sockaddr_data_un()
74 ? (int) sizeof(*sa_un) : addrlen; in print_sockaddr_data_un()
163 print_sockaddr_data_in(const void *const buf, const int addrlen) in print_sockaddr_data_in() argument
174 print_sockaddr_data_in6(const void *const buf, const int addrlen) in print_sockaddr_data_in6() argument
182 if (addrlen <= (int) SIN6_MIN_LEN) in print_sockaddr_data_in6()
303 print_sockaddr_data_ax25(const void *const buf, const int addrlen) in print_sockaddr_data_ax25() argument
306 size_t addrlen_us = MAX(addrlen, 0); in print_sockaddr_data_ax25()
353 print_sockaddr_data_ipx(const void *const buf, const int addrlen) in print_sockaddr_data_ipx() argument
380 print_sockaddr_data_x25(const void *const buf, const int addrlen) in print_sockaddr_data_x25() argument
[all …]
Dbind.c38 const int addrlen = tcp->u_arg[2]; in SYS_FUNC() local
39 decode_sockaddr(tcp, tcp->u_arg[1], addrlen); in SYS_FUNC()
40 tprintf(", %d", addrlen); in SYS_FUNC()
/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 …]
/external/ltp/lib/
Dsafe_net.c87 socklen_t addrlen = sizeof(ss); in tst_getsockport() local
90 safe_getsockname(file, lineno, NULL, sockfd, sa, &addrlen); in tst_getsockport()
210 const struct sockaddr *dest_addr, socklen_t addrlen) in safe_sendto() argument
215 rval = sendto(sockfd, buf, len, flags, dest_addr, addrlen); in safe_sendto()
221 tst_sock_addr(dest_addr, addrlen, res, sizeof(res)), in safe_sendto()
222 addrlen); in safe_sendto()
326 int sockfd, struct sockaddr *addr, socklen_t *addrlen) in safe_accept() argument
330 rval = accept(sockfd, addr, addrlen); in safe_accept()
335 sockfd, addr, *addrlen); in safe_accept()
342 int sockfd, const struct sockaddr *addr, socklen_t addrlen) in safe_connect() argument
[all …]
/external/ltp/include/
Dtst_safe_net.h50 #define SAFE_SENDTO(strict, fd, buf, len, flags, dest_addr, addrlen) \ argument
52 dest_addr, addrlen)
67 #define SAFE_ACCEPT(sockfd, addr, addrlen) \ argument
68 safe_accept(__FILE__, __LINE__, NULL, sockfd, addr, addrlen)
70 #define SAFE_CONNECT(sockfd, addr, addrlen) \ argument
71 safe_connect(__FILE__, __LINE__, NULL, sockfd, addr, addrlen)
73 #define SAFE_GETSOCKNAME(sockfd, addr, addrlen) \ argument
75 addrlen)
Dsafe_net_fn.h45 const struct sockaddr *dest_addr, socklen_t addrlen);
61 int sockfd, struct sockaddr *addr, socklen_t *addrlen);
64 int sockfd, const struct sockaddr *addr, socklen_t addrlen);
68 socklen_t *addrlen);
/external/llvm-project/compiler-rt/test/tsan/
Dfd_socket_connect_norace.cpp15 socklen_t addrlen; variable
21 if (connect(c, addr, addrlen)) { in ClientThread()
34 addrlen = sizeof(addr4); in main()
43 addrlen = sizeof(addr6); in main()
48 bind(s, addr, addrlen); in main()
49 getsockname(s, addr, &addrlen); in main()
Dfd_socket_norace.cpp15 socklen_t addrlen; variable
21 if (connect(c, addr, addrlen)) { in ClientThread()
38 addrlen = sizeof(addr4); in main()
47 addrlen = sizeof(addr6); in main()
52 bind(s, addr, addrlen); in main()
53 getsockname(s, addr, &addrlen); in main()
/external/ltp/testcases/kernel/syscalls/accept4/
Daccept4_01.c43 accept4_01(int fd, struct sockaddr *sockaddr, socklen_t *addrlen, int flags) in accept4_01() argument
50 args[2] = (long)addrlen; in accept4_01()
55 return tst_syscall(__NR_accept4, fd, sockaddr, addrlen, flags); in accept4_01()
111 socklen_t addrlen; in verify_accept4() local
115 addrlen = sizeof(*accept_addr); in verify_accept4()
118 TEST(accept4_01(listening_fd, (struct sockaddr *)accept_addr, &addrlen, in verify_accept4()
121 TEST(accept4(listening_fd, (struct sockaddr *)accept_addr, &addrlen, in verify_accept4()
/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.c137 const char *host, struct sockaddr *addr, socklen_t addrlen) in record_login() argument
145 login_set_addr(li, addr, addrlen); in record_login()
153 const char *host, struct sockaddr *addr, socklen_t addrlen) in record_utmp_only() argument
158 login_set_addr(li, addr, addrlen); in record_utmp_only()
/external/rust/crates/grpcio-sys/grpc/third_party/cares/cares/
Dares__get_hostent.c39 size_t addrlen, linesize, naliases; in ares__get_hostent() local
136 addrlen = 0; in ares__get_hostent()
146 addrlen = sizeof(addr.addrV4); in ares__get_hostent()
149 if ((family == AF_INET6) || ((family == AF_UNSPEC) && (!addrlen))) in ares__get_hostent()
155 addrlen = sizeof(addr.addrV6); in ares__get_hostent()
158 if (!addrlen) in ares__get_hostent()
185 hostent->h_addr_list[0] = ares_malloc(addrlen); in ares__get_hostent()
221 hostent->h_length = aresx_uztoss(addrlen); in ares__get_hostent()
Dares_gethostbyaddr.c64 void ares_gethostbyaddr(ares_channel channel, const void *addr, int addrlen, in ares_gethostbyaddr() argument
75 if ((family == AF_INET && addrlen != sizeof(aquery->addr.addrV4)) || in ares_gethostbyaddr()
76 (family == AF_INET6 && addrlen != sizeof(aquery->addr.addrV6))) in ares_gethostbyaddr()
141 size_t addrlen; in addr_callback() local
148 addrlen = sizeof(aquery->addr.addrV4); in addr_callback()
150 (int)addrlen, AF_INET, &host); in addr_callback()
154 addrlen = sizeof(aquery->addr.addrV6); in addr_callback()
156 (int)addrlen, AF_INET6, &host); in addr_callback()
/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/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/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);
209 extern int Curl_os400_getpeername(int sd, struct sockaddr *addr, int *addrlen);
210 extern int Curl_os400_getsockname(int sd, struct sockaddr *addr, int *addrlen);
/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/
Dandroid-cloexec-accept.cpp7 extern "C" int accept(int sockfd, struct sockaddr *addr, socklen_t *addrlen);
16 int accept(int sockfd, struct sockaddr *addr, socklen_t *addrlen);
24 int accept(int sockfd, struct sockaddr *addr, socklen_t *addrlen);
Dandroid-cloexec-accept4.cpp18 extern "C" int accept4(int sockfd, struct sockaddr *addr, socklen_t *addrlen, int flags);
43 int accept4(int sockfd, struct sockaddr *addr, socklen_t *addrlen, int flags);
61 int accept4(int sockfd, struct sockaddr *addr, socklen_t *addrlen, int flags);
/external/linux-kselftest/tools/testing/selftests/net/
Dreuseaddr_conflict.c26 int addrlen; in open_port() local
45 addrlen = sizeof(addr6); in open_port()
48 addrlen = sizeof(addr4); in open_port()
68 if (bind(fd, addr, addrlen) < 0) { in open_port()
/external/openscreen/third_party/chromium_quic/demo/
Dserver.cc81 socklen_t addrlen = sizeof(client_address); in main() local
83 (struct sockaddr*)(&client_address), &addrlen); in main()
140 socklen_t addrlen = sizeof(peer_address); in main() local
144 (struct sockaddr*)(&peer_address), &addrlen); in main()
146 addrlen != sizeof(peer_address)) { in main()
/external/libchromeos-rs/src/
Dnet.rs197 let mut addrlen = size_of::<sockaddr_in>() as socklen_t; in local_port() localVariable
203 &mut addrlen as *mut socklen_t, in local_port()
211 assert_eq!(addrlen as usize, size_of::<sockaddr_in>()); in local_port()
226 let mut addrlen = size_of::<sockaddr_in6>() as socklen_t; in local_port() localVariable
232 &mut addrlen as *mut socklen_t, in local_port()
240 assert_eq!(addrlen as usize, size_of::<sockaddr_in>()); in local_port()
/external/libnl/lib/
Dsocket.c619 socklen_t addrlen; in nl_socket_set_fd() local
628 addrlen = sizeof(local); in nl_socket_set_fd()
630 &addrlen); in nl_socket_set_fd()
636 if (addrlen != sizeof(local)) in nl_socket_set_fd()
644 addrlen = sizeof(so_type); in nl_socket_set_fd()
645 err = getsockopt(fd, SOL_SOCKET, SO_TYPE, &so_type, &addrlen); in nl_socket_set_fd()
651 if (addrlen != sizeof(so_type)) in nl_socket_set_fd()
660 addrlen = sizeof(so_protocol); in nl_socket_set_fd()
661 err = getsockopt(fd, SOL_SOCKET, SO_PROTOCOL, &so_protocol, &addrlen); in nl_socket_set_fd()
669 if (addrlen != sizeof(so_protocol)) in nl_socket_set_fd()
/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/curl/packages/OS400/
Dos400sys.c1308 Curl_os400_connect(int sd, struct sockaddr * destaddr, int addrlen) in Curl_os400_connect() argument
1313 i = sockaddr2ebcdic(&laddr, destaddr, addrlen); in Curl_os400_connect()
1323 Curl_os400_bind(int sd, struct sockaddr * localaddr, int addrlen) in Curl_os400_bind() argument
1328 i = sockaddr2ebcdic(&laddr, localaddr, addrlen); in Curl_os400_bind()
1339 struct sockaddr * dstaddr, int addrlen) in Curl_os400_sendto() argument
1344 i = sockaddr2ebcdic(&laddr, dstaddr, addrlen); in Curl_os400_sendto()
1355 struct sockaddr * fromaddr, int * addrlen) in Curl_os400_recvfrom() argument
1361 if(!fromaddr || !addrlen || *addrlen <= 0) in Curl_os400_recvfrom()
1362 return recvfrom(sd, buffer, buflen, flags, fromaddr, addrlen); in Curl_os400_recvfrom()
1374 laddrlen = sockaddr2ascii(fromaddr, *addrlen, &laddr, laddrlen); in Curl_os400_recvfrom()
[all …]

12345678