Home
last modified time | relevance | path

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

1234567891011

/third_party/musl/libc-test/src/functionalext/supplement/network/
Dgetsockopt_network.c36 int content = getsockopt(sockfd, SOL_SOCKET, SO_DEBUG, &optval, (socklen_t *)(&optlen)); in getsockopt_0100()
50 int content = getsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, &optval, (socklen_t *)(&optlen)); in getsockopt_0200()
64 int content = getsockopt(sockfd, SOL_SOCKET, SO_TYPE, &optval, (socklen_t *)(&optlen)); in getsockopt_0300()
78 int content = getsockopt(sockfd, SOL_SOCKET, SO_ERROR, &optval, (socklen_t *)(&optlen)); in getsockopt_0400()
92 int content = getsockopt(sockfd, SOL_SOCKET, SO_DONTROUTE, &optval, (socklen_t *)(&optlen)); in getsockopt_0500()
106 int content = getsockopt(sockfd, SOL_SOCKET, SO_BROADCAST, &optval, (socklen_t *)(&optlen)); in getsockopt_0600()
120 int content = getsockopt(sockfd, SOL_SOCKET, SO_SNDBUF, &optval, (socklen_t *)(&optlen)); in getsockopt_0700()
134 int content = getsockopt(sockfd, SOL_SOCKET, SO_RCVBUF, &optval, (socklen_t *)(&optlen)); in getsockopt_0800()
148 int content = getsockopt(sockfd, SOL_SOCKET, SO_KEEPALIVE, &optval, (socklen_t *)(&optlen)); in getsockopt_0900()
162 int content = getsockopt(sockfd, SOL_SOCKET, SO_OOBINLINE, &optval, (socklen_t *)(&optlen)); in getsockopt_1000()
[all …]
Daccept4.c46 rets = setsockopt(sListen, SOL_SOCKET, SO_REUSEADDR, &flag, sizeof(int)); in ServerTaskOne()
87 rets = setsockopt(sListen, SOL_SOCKET, SO_REUSEADDR, &flag, sizeof(int)); in ServerTaskTwo()
128 rets = setsockopt(sListen, SOL_SOCKET, SO_REUSEADDR, &flag, sizeof(int)); in ServerTaskThree()
169 rets = setsockopt(sListen, SOL_SOCKET, SO_REUSEADDR, &flag, sizeof(int)); in ServerTaskFive()
209 rets = setsockopt(sListen, SOL_SOCKET, SO_REUSEADDR, &flag, sizeof(int)); in ServerTaskSix()
/third_party/boost/boost/asio/
Dsocket_base.hpp125 BOOST_ASIO_OS_DEF(SOL_SOCKET), BOOST_ASIO_OS_DEF(SO_BROADCAST)>
159 BOOST_ASIO_OS_DEF(SOL_SOCKET), BOOST_ASIO_OS_DEF(SO_DEBUG)> debug;
192 BOOST_ASIO_OS_DEF(SOL_SOCKET), BOOST_ASIO_OS_DEF(SO_DONTROUTE)>
226 BOOST_ASIO_OS_DEF(SOL_SOCKET), BOOST_ASIO_OS_DEF(SO_KEEPALIVE)> keep_alive;
259 BOOST_ASIO_OS_DEF(SOL_SOCKET), BOOST_ASIO_OS_DEF(SO_SNDBUF)>
293 BOOST_ASIO_OS_DEF(SOL_SOCKET), BOOST_ASIO_OS_DEF(SO_SNDLOWAT)>
327 BOOST_ASIO_OS_DEF(SOL_SOCKET), BOOST_ASIO_OS_DEF(SO_RCVBUF)>
361 BOOST_ASIO_OS_DEF(SOL_SOCKET), BOOST_ASIO_OS_DEF(SO_RCVLOWAT)>
396 BOOST_ASIO_OS_DEF(SOL_SOCKET), BOOST_ASIO_OS_DEF(SO_REUSEADDR)>
432 BOOST_ASIO_OS_DEF(SOL_SOCKET), BOOST_ASIO_OS_DEF(SO_LINGER)>
[all …]
/third_party/boost/libs/asio/include/boost/asio/
Dsocket_base.hpp125 BOOST_ASIO_OS_DEF(SOL_SOCKET), BOOST_ASIO_OS_DEF(SO_BROADCAST)>
159 BOOST_ASIO_OS_DEF(SOL_SOCKET), BOOST_ASIO_OS_DEF(SO_DEBUG)> debug;
192 BOOST_ASIO_OS_DEF(SOL_SOCKET), BOOST_ASIO_OS_DEF(SO_DONTROUTE)>
226 BOOST_ASIO_OS_DEF(SOL_SOCKET), BOOST_ASIO_OS_DEF(SO_KEEPALIVE)> keep_alive;
259 BOOST_ASIO_OS_DEF(SOL_SOCKET), BOOST_ASIO_OS_DEF(SO_SNDBUF)>
293 BOOST_ASIO_OS_DEF(SOL_SOCKET), BOOST_ASIO_OS_DEF(SO_SNDLOWAT)>
327 BOOST_ASIO_OS_DEF(SOL_SOCKET), BOOST_ASIO_OS_DEF(SO_RCVBUF)>
361 BOOST_ASIO_OS_DEF(SOL_SOCKET), BOOST_ASIO_OS_DEF(SO_RCVLOWAT)>
396 BOOST_ASIO_OS_DEF(SOL_SOCKET), BOOST_ASIO_OS_DEF(SO_REUSEADDR)>
432 BOOST_ASIO_OS_DEF(SOL_SOCKET), BOOST_ASIO_OS_DEF(SO_LINGER)>
[all …]
/third_party/ltp/testcases/kernel/syscalls/setsockopt/
Dsetsockopt01.c35 {-1, -1, -1, SOL_SOCKET, SO_OOBINLINE, &optval, sizeof(optval),
37 {-1, -1, -1, SOL_SOCKET, SO_OOBINLINE, &optval, sizeof(optval),
39 {PF_INET, SOCK_STREAM, 0, SOL_SOCKET, SO_OOBINLINE, NULL,
41 {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()
/third_party/grpc/src/core/lib/iomgr/
Dsocket_utils_common_posix.cc59 auto err = setsockopt(fd, SOL_SOCKET, SO_ZEROCOPY, &enable, sizeof(enable)); in grpc_set_socket_zerocopy()
95 if (0 != setsockopt(fd, SOL_SOCKET, SO_NOSIGPIPE, &val, sizeof(val))) { in grpc_set_socket_no_sigpipe_if_possible()
98 if (0 != getsockopt(fd, SOL_SOCKET, SO_NOSIGPIPE, &newval, &intlen)) { in grpc_set_socket_no_sigpipe_if_possible()
138 return 0 == setsockopt(fd, SOL_SOCKET, SO_SNDBUF, &buffer_size_bytes, in grpc_set_socket_sndbuf()
145 return 0 == setsockopt(fd, SOL_SOCKET, SO_RCVBUF, &buffer_size_bytes, in grpc_set_socket_rcvbuf()
176 if (0 != setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &val, sizeof(val))) { in grpc_set_socket_reuse_addr()
179 if (0 != getsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &newval, &intlen)) { in grpc_set_socket_reuse_addr()
198 if (0 != setsockopt(fd, SOL_SOCKET, SO_REUSEPORT, &val, sizeof(val))) { in grpc_set_socket_reuse_port()
201 if (0 != getsockopt(fd, SOL_SOCKET, SO_REUSEPORT, &newval, &intlen)) { in grpc_set_socket_reuse_port()
/third_party/ltp/utils/sctp/func_tests/
Dtest_1_to_1_sockopt.c285 error = setsockopt(sk2, SOL_SOCKET, SO_LINGER, &slinger, len); in main()
293 error = getsockopt(sk2, SOL_SOCKET, SO_LINGER, &glinger, &len); in main()
309 error = getsockopt(sk2, SOL_SOCKET, SO_RCVBUF, &rcvbuf_val_get, &len); in main()
330 error = setsockopt(sk2, SOL_SOCKET, SO_RCVBUF, &rcvbuf_val_set, len); in main()
337 error = getsockopt(sk2, SOL_SOCKET, SO_RCVBUF, &rcvbuf_val_get, &len); in main()
349 error = setsockopt(sk2, SOL_SOCKET, SO_SNDBUF, &sndbuf_val_set, len); in main()
357 error = getsockopt(sk2, SOL_SOCKET, SO_SNDBUF, &sndbuf_val_get, &len); in main()
/third_party/openssl/crypto/bio/
Db_sock2.c90 if (setsockopt(sock, SOL_SOCKET, SO_KEEPALIVE, in BIO_connect()
151 if (setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, in BIO_bind()
217 if (getsockopt(sock, SOL_SOCKET, SO_TYPE, in BIO_listen()
229 if (setsockopt(sock, SOL_SOCKET, SO_KEEPALIVE, in BIO_listen()
Dbss_dgram.c216 if (getsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, in dgram_adjust_rcv_timeout()
225 if (getsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, in dgram_adjust_rcv_timeout()
261 if (setsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, in dgram_adjust_rcv_timeout()
266 if (setsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, &timeleft, in dgram_adjust_rcv_timeout()
286 if (setsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, in dgram_reset_rcv_timeout()
292 (b->num, SOL_SOCKET, SO_RCVTIMEO, &(data->socket_timeout), in dgram_reset_rcv_timeout()
596 if (setsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, in dgram_ctrl()
603 if (setsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, ptr, in dgram_ctrl()
623 if (getsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, in dgram_ctrl()
634 if (getsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, in dgram_ctrl()
[all …]
/third_party/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,
/third_party/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()
/third_party/grpc/examples/python/compression/test/
Dcompression_example_test.py31 sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT, 1)
32 if sock.getsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT) == 0:
/third_party/curl/tests/libtest/
Dlib1522.c36 #if defined(SOL_SOCKET) && defined(SO_SNDBUF) in sockopt_callback()
40 setsockopt(curlfd, SOL_SOCKET, SO_SNDBUF, in sockopt_callback()
/third_party/grpc/test/cpp/naming/
Ddns_test_util.cc61 if (setsockopt(tcp_socket_, SOL_SOCKET, SO_REUSEADDR, &val, sizeof(val)) == in FakeNonResponsiveDNSServer()
69 if (setsockopt(tcp_socket_, SOL_SOCKET, SO_REUSEADDR, &val, sizeof(val)) != in FakeNonResponsiveDNSServer()
/third_party/python/Lib/test/support/
Dsocket_helper.py93 if sock.getsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR) == 1:
99 if sock.getsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT) == 1:
109 sock.setsockopt(socket.SOL_SOCKET, socket.SO_EXCLUSIVEADDRUSE, 1)
/third_party/libcoap/src/
Dcoap_tcp.c100 …if (setsockopt(sock->fd, SOL_SOCKET, SO_REUSEADDR, OPTVAL_T(&on), sizeof(on)) == COAP_SOCKET_ERROR)
166 if (getsockopt(sock->fd, SOL_SOCKET, SO_ERROR, OPTVAL_GT(&error),
223 if (setsockopt (sock->fd, SOL_SOCKET, SO_KEEPALIVE, OPTVAL_T(&on),
229 if (setsockopt(sock->fd, SOL_SOCKET, SO_REUSEADDR, OPTVAL_T(&on),
/third_party/alsa-lib/src/
Dsocket.c56 cmsg->cmsg_level = SOL_SOCKET; in snd_send_fd()
89 cmsg->cmsg_level = SOL_SOCKET; in snd_receive_fd()
/third_party/musl/src/network/
Drecvmsg.c21 if (cmsg->cmsg_level==SOL_SOCKET) switch (cmsg->cmsg_type) { in __convert_scm_timestamps()
44 cmsg->cmsg_level = SOL_SOCKET; in __convert_scm_timestamps()
/third_party/musl/porting/liteos_a/user/src/network/
Drecvmsg.c22 if (cmsg->cmsg_level==SOL_SOCKET) switch (cmsg->cmsg_type) { in __convert_scm_timestamps()
45 cmsg->cmsg_level = SOL_SOCKET; in __convert_scm_timestamps()
/third_party/grpc/examples/python/cancellation/test/
D_cancellation_example_test.py32 sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT, 1)
33 if sock.getsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT) == 0:
/third_party/ltp/testcases/network/netstress/
Dnetstress.c152 SAFE_SETSOCKOPT_INT(sd, SOL_SOCKET, SO_BUSY_POLL, busy_poll); in init_socket_opts()
155 SAFE_SETSOCKOPT(sd, SOL_SOCKET, SO_BINDTODEVICE, dev, in init_socket_opts()
165 SAFE_SETSOCKOPT_INT(sd, SOL_SOCKET, SO_ZEROCOPY, 1); in init_socket_opts()
229 getsockopt(i->fd, SOL_SOCKET, SO_ERROR, in TST_DECLARE_ONCE_FN()
318 SAFE_SETSOCKOPT_INT(sd, SOL_SOCKET, SO_REUSEPORT, 1); in bind_before_connect()
674 SAFE_SETSOCKOPT_INT(sfd, SOL_SOCKET, SO_REUSEADDR, 1); in server_init()
676 SAFE_SETSOCKOPT_INT(sfd, SOL_SOCKET, SO_REUSEPORT, 1); in server_init()
702 SAFE_SETSOCKOPT_INT(sfd, SOL_SOCKET, SO_ZEROCOPY, 1); in server_init()
/third_party/pulseaudio/src/pulsecore/
Dsocket-util.c145 if (setsockopt(fd, SOL_SOCKET, SO_PRIORITY, (const void *) &priority, sizeof(priority)) < 0) in pa_make_socket_low_delay()
203 if (setsockopt(fd, SOL_SOCKET, SO_RCVBUF, (const void *) &bufsz, sizeof(bufsz)) < 0) { in pa_socket_set_rcvbuf()
216 if (setsockopt(fd, SOL_SOCKET, SO_SNDBUF, (const void *) &bufsz, sizeof(bufsz)) < 0) { in pa_socket_set_sndbuf()
/third_party/grpc/examples/python/multiprocessing/
Dserver.py83 sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT, 1)
84 if sock.getsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT) == 0:
/third_party/libnl/lib/
Dsocket.c645 err = getsockopt(fd, SOL_SOCKET, SO_TYPE, &so_type, &addrlen); in nl_socket_set_fd()
661 err = getsockopt(fd, SOL_SOCKET, SO_PROTOCOL, &so_protocol, &addrlen); in nl_socket_set_fd()
826 err = setsockopt(sk->s_fd, SOL_SOCKET, SO_SNDBUF, in nl_socket_set_buffer_size()
834 err = setsockopt(sk->s_fd, SOL_SOCKET, SO_RCVBUF, in nl_socket_set_buffer_size()
902 err = setsockopt(sk->s_fd, SOL_SOCKET, SO_PASSCRED, in nl_socket_set_passcred()

1234567891011