/system/netd/libnetdutils/ |
D | SocketOption.cpp | 32 return sys.setsockopt(sock, level, optname, &on, sizeof(on)); in enableSockopt() 40 RETURN_IF_NOT_OK(sys.setsockopt(sock, SOL_TCP, TCP_KEEPIDLE, &idleTime, sizeof(idleTime))); in enableTcpKeepAlives() 43 RETURN_IF_NOT_OK(sys.setsockopt(sock, SOL_TCP, TCP_KEEPCNT, &numProbes, sizeof(numProbes))); in enableTcpKeepAlives() 46 RETURN_IF_NOT_OK(sys.setsockopt(sock, SOL_TCP, TCP_KEEPINTVL, &probeInterval, in enableTcpKeepAlives()
|
D | SyscallsTest.cpp | 91 TEST_F(SyscallsTest, setsockopt) { in TEST_F() argument 99 EXPECT_CALL(mSyscalls, setsockopt(kFd, kLevel, kOptname, &expected, sizeof(expected))) in TEST_F() 101 EXPECT_EQ(status::ok, sys.setsockopt(kFd, kLevel, kOptname, expected)); in TEST_F() 105 EXPECT_CALL(mSyscalls, setsockopt(kFd, kLevel, kOptname, &expected, sizeof(expected))) in TEST_F() 107 EXPECT_EQ(kError, sys.setsockopt(kFd, kLevel, kOptname, expected)); in TEST_F()
|
D | Syscalls.cpp | 77 Status setsockopt(Fd sock, int level, int optname, const void* optval, in setsockopt() function in android::netdutils::RealSyscalls 79 auto rv = ::setsockopt(sock.get(), level, optname, optval, optlen); in setsockopt()
|
/system/vold/ |
D | NetlinkManager.cpp | 65 if ((setsockopt(mSock, SOL_SOCKET, SO_RCVBUFFORCE, &sz, sizeof(sz)) < 0) && in start() 66 (setsockopt(mSock, SOL_SOCKET, SO_RCVBUF, &sz, sizeof(sz)) < 0)) { in start() 71 if (setsockopt(mSock, SOL_SOCKET, SO_PASSCRED, &on, sizeof(on)) < 0) { in start()
|
/system/core/libcutils/ |
D | uevent.cpp | 110 if (setsockopt(s, SOL_SOCKET, SO_RCVBUF, &buf_sz, sizeof(buf_sz)) < 0 || in uevent_open_socket() 120 if (setsockopt(s, SOL_SOCKET, SO_RCVBUFFORCE, &buf_sz, sizeof(buf_sz)) < 0) { in uevent_open_socket() 126 setsockopt(s, SOL_SOCKET, SO_PASSCRED, &on, sizeof(on)); in uevent_open_socket()
|
D | socket_inaddr_any_server_windows.cpp | 53 if (setsockopt(sock, SOL_SOCKET, SO_EXCLUSIVEADDRUSE, (char*)&exclusive, in socket_inaddr_any_server() 55 setsockopt(sock, IPPROTO_IPV6, IPV6_V6ONLY, (char*)&v6_only, in socket_inaddr_any_server()
|
D | socket_inaddr_any_server_unix.cpp | 47 setsockopt(s, SOL_SOCKET, SO_REUSEADDR, (const char *) &n, sizeof(n)); in socket_inaddr_any_server()
|
D | socket_local_server_unix.cpp | 80 setsockopt(s, SOL_SOCKET, SO_REUSEADDR, &n, sizeof(n));
|
/system/netd/server/ |
D | NetlinkManager.cpp | 88 if (setsockopt(*sock, SOL_SOCKET, SO_RCVBUFFORCE, &sz, sizeof(sz)) < 0 && in setupSocket() 89 setsockopt(*sock, SOL_SOCKET, SO_RCVBUF, &sz, sizeof(sz)) < 0) { in setupSocket() 95 if (setsockopt(*sock, SOL_SOCKET, SO_PASSCRED, &on, sizeof(on)) < 0) { in setupSocket()
|
/system/extras/tests/tcp_nuke_addr/ |
D | tcp_nuke_addr_test.cpp | 36 if (setsockopt(s, SOL_SOCKET, SO_LINGER, &l, sizeof(l)) == -1) { in setSoLinger() 40 if (setsockopt(s, SOL_TCP, TCP_LINGER2, &nolinger, sizeof(nolinger)) == -1) { in setSoLinger()
|
/system/bt/osi/src/socket_utils/ |
D | socket_local_server.cc | 66 setsockopt(s, SOL_SOCKET, SO_REUSEADDR, &n, sizeof(n));
|
/system/netd/libnetdutils/include/netdutils/ |
D | Syscalls.h | 55 virtual Status setsockopt(Fd sock, int level, int optname, const void* optval, 130 Status setsockopt(Fd sock, int level, int optname, const SockoptT& opt) const { in setsockopt() function 131 return setsockopt(sock, level, optname, &opt, sizeof(opt)); in setsockopt()
|
D | MockSyscalls.h | 42 MOCK_CONST_METHOD5(setsockopt, Status(Fd sock, int level, int optname, const void* optval,
|
/system/chre/host/common/ |
D | socket_client.cc | 240 if ((ret = setsockopt(sockFd, SOL_SOCKET, SO_SNDBUF, &sndbuf, in tryConnect() 245 } else if ((ret = setsockopt(sockFd, SOL_SOCKET, SO_SNDTIMEO, &timeout, in tryConnect()
|
/system/logging/logd/ |
D | LogListener.cpp | 132 if (setsockopt(sock, SOL_SOCKET, SO_PASSCRED, &on, sizeof(on))) { in GetLogSocket()
|
/system/core/libappfuse/ |
D | FuseBuffer.cc | 152 if (setsockopt(fds[0], SOL_SOCKET, SO_SNDBUF, &kMaxMessageSize, sizeof(int)) != 0 || in SetupMessageSockets() 153 setsockopt(fds[1], SOL_SOCKET, SO_SNDBUF, &kMaxMessageSize, sizeof(int)) != 0) { in SetupMessageSockets()
|
/system/extras/multinetwork/ |
D | httpurl.cpp | 161 setsockopt(fd, SOL_SOCKET, SO_RCVTIMEO, &timeo, sizeof(timeo)); in makeTcpSocket() 162 setsockopt(fd, SOL_SOCKET, SO_SNDTIMEO, &timeo, sizeof(timeo)); in makeTcpSocket()
|
/system/bt/gd/shim/ |
D | dumpsys_test.cc | 95 … ASSERT_EQ(0, setsockopt(sockfd, SOL_SOCKET, SO_RCVBUF, (const void*)&socket_buffer_size, optlen)); in SetSocketBufferSize()
|
/system/bt/hci/src/ |
D | btsnoop_net.cc | 103 if (setsockopt(listen_socket_, SOL_SOCKET, SO_REUSEADDR, &enable, in listen_fn_()
|
/system/core/debuggerd/client/ |
D | debuggerd_client.cpp | 146 if (setsockopt(sockfd, SOL_SOCKET, SO_RCVTIMEO, &timeout, sizeof(timeout)) != 0) { in debuggerd_trigger_dump() 150 if (setsockopt(sockfd, SOL_SOCKET, SO_SNDTIMEO, &timeout, sizeof(timeout)) != 0) { in debuggerd_trigger_dump()
|
/system/logging/liblog/ |
D | logd_reader.cpp | 63 if (setsockopt(fd, SOL_SOCKET, SO_SNDTIMEO, &t, sizeof(t)) == -1) { in socket_local_client() 66 if (setsockopt(fd, SOL_SOCKET, SO_RCVTIMEO, &t, sizeof(t)) == -1) { in socket_local_client()
|
/system/bt/vendor_libs/test_vendor_lib/model/setup/ |
D | test_channel_transport.cc | 44 if (setsockopt(listen_fd_, SOL_SOCKET, SO_REUSEADDR, &enable, sizeof(int)) < 0) { in SetUp()
|
/system/netd/tests/ |
D | tun_interface.cpp | 140 if (setsockopt(s, SOL_SOCKET, SO_RCVTIMEO, &timeout, sizeof(timeout)) == -1) return -errno; in addAddress()
|
/system/core/libstats/push_compat/ |
D | statsd_writer.c | 97 setsockopt(sock, SOL_SOCKET, SO_SNDBUF, &sndbuf, bufLen); in statsdOpen()
|
/system/bt/osi/src/ |
D | socket.cc | 61 if (setsockopt(ret->fd, SOL_SOCKET, SO_REUSEADDR, &enable, sizeof(enable)) == in socket_new()
|