Home
last modified time | relevance | path

Searched refs:SOL_SOCKET (Results 1 – 25 of 379) sorted by relevance

12345678910>>...16

/external/parameter-framework/asio-1.10.6/include/asio/
Dsocket_base.hpp77 ASIO_OS_DEF(SOL_SOCKET), ASIO_OS_DEF(SO_BROADCAST)>
107 ASIO_OS_DEF(SOL_SOCKET), ASIO_OS_DEF(SO_DEBUG)> debug;
136 ASIO_OS_DEF(SOL_SOCKET), ASIO_OS_DEF(SO_DONTROUTE)>
166 ASIO_OS_DEF(SOL_SOCKET), ASIO_OS_DEF(SO_KEEPALIVE)> keep_alive;
195 ASIO_OS_DEF(SOL_SOCKET), ASIO_OS_DEF(SO_SNDBUF)>
225 ASIO_OS_DEF(SOL_SOCKET), ASIO_OS_DEF(SO_SNDLOWAT)>
255 ASIO_OS_DEF(SOL_SOCKET), ASIO_OS_DEF(SO_RCVBUF)>
285 ASIO_OS_DEF(SOL_SOCKET), ASIO_OS_DEF(SO_RCVLOWAT)>
316 ASIO_OS_DEF(SOL_SOCKET), ASIO_OS_DEF(SO_REUSEADDR)>
348 ASIO_OS_DEF(SOL_SOCKET), ASIO_OS_DEF(SO_LINGER)>
/external/strace/tests/
Dsock_filter-v.c125 int rc = getsockopt(fd, SOL_SOCKET, SO_GET_FILTER, val, len); in get_filter()
133 int rc = setsockopt(fd, SOL_SOCKET, SO_ATTACH_FILTER, val, len); in set_filter()
162 fd, XLAT_ARGS(SOL_SOCKET), XLAT_ARGS(SO_GET_FILTER), in main()
169 fd, XLAT_ARGS(SOL_SOCKET), XLAT_ARGS(SO_GET_FILTER), errstr); in main()
176 fd, XLAT_ARGS(SOL_SOCKET), XLAT_ARGS(SO_ATTACH_FILTER), in main()
184 fd, XLAT_ARGS(SOL_SOCKET), XLAT_ARGS(SO_ATTACH_FILTER), prog, in main()
188 rc = setsockopt(fd, SOL_SOCKET, SO_ATTACH_REUSEPORT_CBPF, in main()
192 fd, XLAT_ARGS(SOL_SOCKET), XLAT_ARGS(SO_ATTACH_REUSEPORT_CBPF), in main()
203 fd, XLAT_ARGS(SOL_SOCKET), XLAT_ARGS(SO_GET_FILTER), efault, in main()
210 fd, XLAT_ARGS(SOL_SOCKET), XLAT_ARGS(SO_GET_FILTER), efault, in main()
[all …]
Dmsg_control.c109 cmsg->cmsg_level = SOL_SOCKET; in test_scm_rights1()
165 cmsg[0]->cmsg_level = SOL_SOCKET; in test_scm_rights2()
174 cmsg[1]->cmsg_level = SOL_SOCKET; in test_scm_rights2()
213 cmsg->cmsg_level = SOL_SOCKET; in test_scm_rights3()
240 cmsg->cmsg_level = SOL_SOCKET; in test_scm_timestamp()
263 cmsg->cmsg_level = SOL_SOCKET; in test_scm_timestamp()
285 cmsg->cmsg_level = SOL_SOCKET; in test_scm_timestampns()
308 cmsg->cmsg_level = SOL_SOCKET; in test_scm_timestampns()
331 cmsg->cmsg_level = SOL_SOCKET; in test_scm_timestamping()
363 cmsg->cmsg_level = SOL_SOCKET; in test_scm_timestamping()
[all …]
/external/strace/tests-m32/
Dsock_filter-v.c125 int rc = getsockopt(fd, SOL_SOCKET, SO_GET_FILTER, val, len); in get_filter()
133 int rc = setsockopt(fd, SOL_SOCKET, SO_ATTACH_FILTER, val, len); in set_filter()
162 fd, XLAT_ARGS(SOL_SOCKET), XLAT_ARGS(SO_GET_FILTER), in main()
169 fd, XLAT_ARGS(SOL_SOCKET), XLAT_ARGS(SO_GET_FILTER), errstr); in main()
176 fd, XLAT_ARGS(SOL_SOCKET), XLAT_ARGS(SO_ATTACH_FILTER), in main()
184 fd, XLAT_ARGS(SOL_SOCKET), XLAT_ARGS(SO_ATTACH_FILTER), prog, in main()
188 rc = setsockopt(fd, SOL_SOCKET, SO_ATTACH_REUSEPORT_CBPF, in main()
192 fd, XLAT_ARGS(SOL_SOCKET), XLAT_ARGS(SO_ATTACH_REUSEPORT_CBPF), in main()
203 fd, XLAT_ARGS(SOL_SOCKET), XLAT_ARGS(SO_GET_FILTER), efault, in main()
210 fd, XLAT_ARGS(SOL_SOCKET), XLAT_ARGS(SO_GET_FILTER), efault, in main()
[all …]
Dmsg_control.c109 cmsg->cmsg_level = SOL_SOCKET; in test_scm_rights1()
165 cmsg[0]->cmsg_level = SOL_SOCKET; in test_scm_rights2()
174 cmsg[1]->cmsg_level = SOL_SOCKET; in test_scm_rights2()
213 cmsg->cmsg_level = SOL_SOCKET; in test_scm_rights3()
240 cmsg->cmsg_level = SOL_SOCKET; in test_scm_timestamp()
263 cmsg->cmsg_level = SOL_SOCKET; in test_scm_timestamp()
285 cmsg->cmsg_level = SOL_SOCKET; in test_scm_timestampns()
308 cmsg->cmsg_level = SOL_SOCKET; in test_scm_timestampns()
331 cmsg->cmsg_level = SOL_SOCKET; in test_scm_timestamping()
363 cmsg->cmsg_level = SOL_SOCKET; in test_scm_timestamping()
[all …]
/external/strace/tests-mx32/
Dsock_filter-v.c125 int rc = getsockopt(fd, SOL_SOCKET, SO_GET_FILTER, val, len); in get_filter()
133 int rc = setsockopt(fd, SOL_SOCKET, SO_ATTACH_FILTER, val, len); in set_filter()
162 fd, XLAT_ARGS(SOL_SOCKET), XLAT_ARGS(SO_GET_FILTER), in main()
169 fd, XLAT_ARGS(SOL_SOCKET), XLAT_ARGS(SO_GET_FILTER), errstr); in main()
176 fd, XLAT_ARGS(SOL_SOCKET), XLAT_ARGS(SO_ATTACH_FILTER), in main()
184 fd, XLAT_ARGS(SOL_SOCKET), XLAT_ARGS(SO_ATTACH_FILTER), prog, in main()
188 rc = setsockopt(fd, SOL_SOCKET, SO_ATTACH_REUSEPORT_CBPF, in main()
192 fd, XLAT_ARGS(SOL_SOCKET), XLAT_ARGS(SO_ATTACH_REUSEPORT_CBPF), in main()
203 fd, XLAT_ARGS(SOL_SOCKET), XLAT_ARGS(SO_GET_FILTER), efault, in main()
210 fd, XLAT_ARGS(SOL_SOCKET), XLAT_ARGS(SO_GET_FILTER), efault, in main()
[all …]
Dmsg_control.c109 cmsg->cmsg_level = SOL_SOCKET; in test_scm_rights1()
165 cmsg[0]->cmsg_level = SOL_SOCKET; in test_scm_rights2()
174 cmsg[1]->cmsg_level = SOL_SOCKET; in test_scm_rights2()
213 cmsg->cmsg_level = SOL_SOCKET; in test_scm_rights3()
240 cmsg->cmsg_level = SOL_SOCKET; in test_scm_timestamp()
263 cmsg->cmsg_level = SOL_SOCKET; in test_scm_timestamp()
285 cmsg->cmsg_level = SOL_SOCKET; in test_scm_timestampns()
308 cmsg->cmsg_level = SOL_SOCKET; in test_scm_timestampns()
331 cmsg->cmsg_level = SOL_SOCKET; in test_scm_timestamping()
363 cmsg->cmsg_level = SOL_SOCKET; in test_scm_timestamping()
[all …]
/external/strace/xlat/
Dsocketlayers.h14 #if defined(SOL_SOCKET) || (defined(HAVE_DECL_SOL_SOCKET) && HAVE_DECL_SOL_SOCKET)
16 static_assert((SOL_SOCKET) == (1), "SOL_SOCKET != 1");
19 # define SOL_SOCKET 1
268 #if defined(SOL_SOCKET) || (defined(HAVE_DECL_SOL_SOCKET) && HAVE_DECL_SOL_SOCKET)
270 static_assert((SOL_SOCKET) == (0xffff), "SOL_SOCKET != 0xffff");
273 # define SOL_SOCKET 0xffff
285 XLAT(SOL_SOCKET),
323 XLAT(SOL_SOCKET),
Dsocketlayers.in4 SOL_SOCKET 1
42 SOL_SOCKET 0xffff
/external/libchrome/base/posix/
Dunix_domain_socket.cc45 if (setsockopt(raw_socks[0], SOL_SOCKET, SO_NOSIGPIPE, &no_sigpipe, in CreateSocketPair()
48 if (setsockopt(raw_socks[1], SOL_SOCKET, SO_NOSIGPIPE, &no_sigpipe, in CreateSocketPair()
61 return setsockopt(fd, SOL_SOCKET, SO_PASSCRED, &enable, sizeof(enable)) == 0; in EnableReceiveProcessId()
88 cmsg->cmsg_level = SOL_SOCKET; in SendMsg()
104 DPCHECK(getsockopt(fd, SOL_SOCKET, SO_NOSIGPIPE, &no_sigpipe, in SendMsg()
172 if (cmsg->cmsg_level == SOL_SOCKET && cmsg->cmsg_type == SCM_RIGHTS) { in RecvMsgWithFlags()
181 if (cmsg->cmsg_level == SOL_SOCKET && in RecvMsgWithFlags()
/external/grpc-grpc/src/core/lib/iomgr/
Dsocket_utils_common_posix.cc75 if (0 != setsockopt(fd, SOL_SOCKET, SO_NOSIGPIPE, &val, sizeof(val))) { in grpc_set_socket_no_sigpipe_if_possible()
78 if (0 != getsockopt(fd, SOL_SOCKET, SO_NOSIGPIPE, &newval, &intlen)) { in grpc_set_socket_no_sigpipe_if_possible()
111 return 0 == setsockopt(fd, SOL_SOCKET, SO_SNDBUF, &buffer_size_bytes, in grpc_set_socket_sndbuf()
118 return 0 == setsockopt(fd, SOL_SOCKET, SO_RCVBUF, &buffer_size_bytes, in grpc_set_socket_rcvbuf()
149 if (0 != setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &val, sizeof(val))) { in grpc_set_socket_reuse_addr()
152 if (0 != getsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &newval, &intlen)) { in grpc_set_socket_reuse_addr()
171 if (0 != setsockopt(fd, SOL_SOCKET, SO_REUSEPORT, &val, sizeof(val))) { in grpc_set_socket_reuse_port()
174 if (0 != getsockopt(fd, SOL_SOCKET, SO_REUSEPORT, &newval, &intlen)) { in grpc_set_socket_reuse_port()
/external/iperf3/src/
Diperf_tcp.c221 if (setsockopt(s, SOL_SOCKET, SO_RCVBUF, &opt, sizeof(opt)) < 0) { in iperf_tcp_listen()
229 if (setsockopt(s, SOL_SOCKET, SO_SNDBUF, &opt, sizeof(opt)) < 0) { in iperf_tcp_listen()
247 if (setsockopt(s, SOL_SOCKET, SO_MAX_PACING_RATE, &fqrate, sizeof(fqrate)) < 0) { in iperf_tcp_listen()
262 if (setsockopt(s, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)) < 0) { in iperf_tcp_listen()
315 if (getsockopt(s, SOL_SOCKET, SO_SNDBUF, &sndbuf_actual, &optlen) < 0) { in iperf_tcp_listen()
332 if (getsockopt(s, SOL_SOCKET, SO_RCVBUF, &rcvbuf_actual, &optlen) < 0) { in iperf_tcp_listen()
487 if (setsockopt(s, SOL_SOCKET, SO_RCVBUF, &opt, sizeof(opt)) < 0) { in iperf_tcp_connect()
495 if (setsockopt(s, SOL_SOCKET, SO_SNDBUF, &opt, sizeof(opt)) < 0) { in iperf_tcp_connect()
507 if (getsockopt(s, SOL_SOCKET, SO_SNDBUF, &sndbuf_actual, &optlen) < 0) { in iperf_tcp_connect()
525 if (getsockopt(s, SOL_SOCKET, SO_RCVBUF, &rcvbuf_actual, &optlen) < 0) { in iperf_tcp_connect()
[all …]
Diperf_udp.c273 if (setsockopt(s, SOL_SOCKET, SO_RCVBUF, &opt, sizeof(opt)) < 0) { in iperf_udp_buffercheck()
277 if (setsockopt(s, SOL_SOCKET, SO_SNDBUF, &opt, sizeof(opt)) < 0) { in iperf_udp_buffercheck()
285 if (getsockopt(s, SOL_SOCKET, SO_SNDBUF, &sndbuf_actual, &optlen) < 0) { in iperf_udp_buffercheck()
307 if (getsockopt(s, SOL_SOCKET, SO_RCVBUF, &rcvbuf_actual, &optlen) < 0) { in iperf_udp_buffercheck()
402 if (setsockopt(s, SOL_SOCKET, SO_MAX_PACING_RATE, &fqrate, sizeof(fqrate)) < 0) { in iperf_udp_accept()
514 if (setsockopt(s, SOL_SOCKET, SO_MAX_PACING_RATE, &fqrate, sizeof(fqrate)) < 0) { in iperf_udp_connect()
533 setsockopt(s, SOL_SOCKET, SO_RCVTIMEO, (struct timeval *)&tv, sizeof(struct timeval)); in iperf_udp_connect()
/external/ltp/utils/sctp/func_tests/
Dtest_1_to_1_sockopt.c281 error = setsockopt(sk2, SOL_SOCKET, SO_LINGER, &slinger, len); in main()
289 error = getsockopt(sk2, SOL_SOCKET, SO_LINGER, &glinger, &len); in main()
305 error = getsockopt(sk2, SOL_SOCKET, SO_RCVBUF, &rcvbuf_val_get, &len); in main()
326 error = setsockopt(sk2, SOL_SOCKET, SO_RCVBUF, &rcvbuf_val_set, len); in main()
333 error = getsockopt(sk2, SOL_SOCKET, SO_RCVBUF, &rcvbuf_val_get, &len); in main()
345 error = setsockopt(sk2, SOL_SOCKET, SO_SNDBUF, &sndbuf_val_set, len); in main()
353 error = getsockopt(sk2, SOL_SOCKET, SO_SNDBUF, &sndbuf_val_get, &len); in main()
/external/ltp/testcases/kernel/syscalls/setsockopt/
Dsetsockopt01.c86 PF_INET, SOCK_STREAM, 0, SOL_SOCKET, SO_OOBINLINE, &optval,
91 PF_INET, SOCK_STREAM, 0, SOL_SOCKET, SO_OOBINLINE, &optval,
98 PF_INET, SOCK_STREAM, 0, SOL_SOCKET, SO_OOBINLINE, 0,
105 PF_INET, SOCK_STREAM, 0, SOL_SOCKET, SO_OOBINLINE, &optval, 0,
Dsetsockopt04.c36 SAFE_SETSOCKOPT(sockfd, SOL_SOCKET, SO_SNDBUFFORCE, &sndbuf, optlen); in run()
37 SAFE_GETSOCKOPT(sockfd, SOL_SOCKET, SO_SNDBUF, &rec_sndbuf, &optlen); in run()
/external/ltp/testcases/kernel/syscalls/getsockopt/
Dgetsockopt01.c86 PF_INET, SOCK_STREAM, 0, SOL_SOCKET, SO_OOBINLINE, &optval,
90 PF_INET, SOCK_STREAM, 0, SOL_SOCKET, SO_OOBINLINE, &optval,
96 PF_INET, SOCK_STREAM, 0, SOL_SOCKET, SO_OOBINLINE, 0, &optlen,
100 PF_INET, SOCK_STREAM, 0, SOL_SOCKET, SO_OOBINLINE, &optval, 0,
/external/linux-kselftest/tools/testing/selftests/net/
Dreuseport_bpf.c126 if (setsockopt(fd, SOL_SOCKET, SO_ATTACH_REUSEPORT_EBPF, &bpf_fd, in attach_ebpf()
148 if (setsockopt(fd, SOL_SOCKET, SO_ATTACH_REUSEPORT_CBPF, &p, sizeof(p))) in attach_cbpf()
165 if (setsockopt(fd[i], SOL_SOCKET, SO_REUSEPORT, &opt, in build_recv_group()
199 if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &one, sizeof(one))) in send_from()
322 if (setsockopt(fd1, SOL_SOCKET, SO_REUSEPORT, &opt, sizeof(opt))) in test_extra_filter()
324 if (setsockopt(fd2, SOL_SOCKET, SO_REUSEPORT, &opt, sizeof(opt))) in test_extra_filter()
378 if (!setsockopt(fd, SOL_SOCKET, SO_ATTACH_REUSEPORT_EBPF, &bpf_fd, in test_filter_no_reuseport()
383 if (!setsockopt(fd, SOL_SOCKET, SO_ATTACH_REUSEPORT_CBPF, &cprog, in test_filter_no_reuseport()
401 if (setsockopt(fd1, SOL_SOCKET, SO_REUSEPORT, &opt, sizeof(opt))) in test_filter_without_bind()
403 if (setsockopt(fd2, SOL_SOCKET, SO_REUSEPORT, &opt, sizeof(opt))) in test_filter_without_bind()
Dtcp_mmap.c241 if (rcvbuf && setsockopt(fd, SOL_SOCKET, in apply_rcvsnd_buf()
246 if (sndbuf && setsockopt(fd, SOL_SOCKET, in apply_rcvsnd_buf()
288 if (setsockopt(fdlisten, SOL_SOCKET, SO_RCVLOWAT, in do_accept()
417 setsockopt(fdlisten, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on)); in main()
463 setsockopt(fd, SOL_SOCKET, SO_MAX_PACING_RATE, in main()
467 if (zflg && setsockopt(fd, SOL_SOCKET, SO_ZEROCOPY, in main()
/external/linux-kselftest/tools/testing/selftests/networking/timestamping/
Dtimestamping.c158 case SOL_SOCKET: in printpacket()
411 setsockopt(sock, SOL_SOCKET, SO_TIMESTAMP, in main()
416 setsockopt(sock, SOL_SOCKET, SO_TIMESTAMPNS, in main()
421 setsockopt(sock, SOL_SOCKET, SO_TIMESTAMPING, in main()
433 if (getsockopt(sock, SOL_SOCKET, SO_TIMESTAMP, &val, &len) < 0) in main()
438 if (getsockopt(sock, SOL_SOCKET, SO_TIMESTAMPNS, &val, &len) < 0) in main()
444 if (getsockopt(sock, SOL_SOCKET, SO_TIMESTAMPING, &val, &len) < 0) { in main()
Drxtimestamp.c204 if (cmsg->cmsg_level != SOL_SOCKET) in do_recv()
253 if (setsockopt(rcv, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on)) < 0) in config_so_flags()
257 setsockopt(rcv, SOL_SOCKET, SO_TIMESTAMP, in config_so_flags()
262 setsockopt(rcv, SOL_SOCKET, SO_TIMESTAMPNS, in config_so_flags()
267 setsockopt(rcv, SOL_SOCKET, SO_TIMESTAMPING, in config_so_flags()
/external/dnsmasq/src/
Dnetwork.c254 if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)) == -1 || in create_ipv6_listener()
255 setsockopt(tcpfd, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)) == -1 || in create_ipv6_listener()
296 if (setsockopt(tcpfd, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)) == -1 || in create_wildcard_listeners()
302 setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)) == -1 || !fix_fd(fd) || in create_wildcard_listeners()
314 if (mark != 0 && (setsockopt(fd, SOL_SOCKET, SO_MARK, &mark, sizeof(mark)) == -1 || in create_wildcard_listeners()
315 setsockopt(tcpfd, SOL_SOCKET, SO_MARK, &mark, sizeof(mark)) == -1 || in create_wildcard_listeners()
316 setsockopt(l6->fd, SOL_SOCKET, SO_MARK, &mark, sizeof(mark)) == -1 || in create_wildcard_listeners()
317 setsockopt(l6->tcpfd, SOL_SOCKET, SO_MARK, &mark, sizeof(mark)) == -1)) { in create_wildcard_listeners()
368 setsockopt(new->fd, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)) == -1 || in create_bound_listener()
369 setsockopt(new->tcpfd, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)) == -1 || in create_bound_listener()
[all …]
/external/honggfuzz/examples/linux_kernel_ip/
Dtun.c106 if (setsockopt(udp_sock, SOL_SOCKET, SO_NO_CHECK, (void*)&disable, sizeof(disable)) == -1) { in main()
109 if (setsockopt(tcp_sock, SOL_SOCKET, SO_NO_CHECK, (void*)&disable, sizeof(disable)) == -1) { in main()
114 if (setsockopt(sctp_sock, SOL_SOCKET, SO_NO_CHECK, (void*)&disable, sizeof(disable)) == -1) { in main()
117 … if (setsockopt(udp_lite_sock, SOL_SOCKET, SO_NO_CHECK, (void*)&disable, sizeof(disable)) == -1) { in main()
/external/iputils/
Dping_common.c596 setsockopt(icmp_sock, SOL_SOCKET, SO_SNDBUF, (char *)&sndbuf, sizeof(sndbuf)); in sock_setbufs()
601 setsockopt(icmp_sock, SOL_SOCKET, SO_RCVBUF, (char *)&hold, sizeof(hold)); in sock_setbufs()
602 if (getsockopt(icmp_sock, SOL_SOCKET, SO_RCVBUF, (char *)&hold, &tmplen) == 0) { in sock_setbufs()
614 ret = setsockopt(icmp_sock, SOL_SOCKET, SO_MARK, &mark, sizeof(mark)); in sock_setmark()
650 setsockopt(icmp_sock, SOL_SOCKET, SO_DEBUG, (char *)&hold, sizeof(hold)); in setup()
652 setsockopt(icmp_sock, SOL_SOCKET, SO_DONTROUTE, (char *)&hold, sizeof(hold)); in setup()
657 if (setsockopt(icmp_sock, SOL_SOCKET, SO_TIMESTAMP, &on, sizeof(on))) in setup()
674 setsockopt(icmp_sock, SOL_SOCKET, SO_SNDTIMEO, (char*)&tv, sizeof(tv)); in setup()
680 if (setsockopt(icmp_sock, SOL_SOCKET, SO_RCVTIMEO, (char*)&tv, sizeof(tv))) in setup()
834 if (c->cmsg_level != SOL_SOCKET || in main_loop()
/external/selinux/libselinux/src/
Dgetpeercon.c26 ret = getsockopt(fd, SOL_SOCKET, SO_PEERSEC, buf, &size); in getpeercon_raw()
36 ret = getsockopt(fd, SOL_SOCKET, SO_PEERSEC, buf, &size); in getpeercon_raw()

12345678910>>...16