Home
last modified time | relevance | path

Searched refs:getsockopt (Results 1 – 23 of 23) sorted by relevance

/system/netd/libnetdutils/
DSyscallsTest.cpp110 TEST_F(SyscallsTest, getsockopt) { in TEST_F() argument
119 EXPECT_CALL(mSyscalls, getsockopt(kFd, kLevel, kOptname, &expected, &optLen)) in TEST_F()
121 EXPECT_EQ(status::ok, sys.getsockopt(kFd, kLevel, kOptname, &expected, &optLen)); in TEST_F()
125 EXPECT_CALL(mSyscalls, getsockopt(kFd, kLevel, kOptname, &expected, &optLen)) in TEST_F()
127 EXPECT_EQ(kError, sys.getsockopt(kFd, kLevel, kOptname, &expected, &optLen)); in TEST_F()
DSyscalls.cpp68 Status getsockopt(Fd sock, int level, int optname, void* optval, in getsockopt() function in android::netdutils::RealSyscalls
70 auto rv = ::getsockopt(sock.get(), level, optname, optval, optlen); in getsockopt()
/system/netd/server/
DFwmarkServer.cpp157 if (getsockopt(*socketFd, SOL_SOCKET, SO_DOMAIN, &family, &familyLen) == -1) { in processClient()
166 if (getsockopt(*socketFd, SOL_SOCKET, SO_MARK, &fwmark.intValue, &fwmarkLen) == -1) { in processClient()
230 const int ret = getsockopt(*socketFd, SOL_SOCKET, SO_PROTOCOL, &socketProto, &intSize); in processClient()
DXfrmControllerTest.cpp146 EXPECT_CALL(mockSyscalls, getsockopt(Fd(sockFd), IPPROTO_UDP, UDP_ENCAP, _, _)) in TEST_F()
184 EXPECT_CALL(mockSyscalls, getsockopt(Fd(sockFd), IPPROTO_UDP, UDP_ENCAP, _, _)) in TEST_F()
195 EXPECT_CALL(mockSyscalls, getsockopt(Fd(sockFd), IPPROTO_UDP, UDP_ENCAP, _, _)) in TEST_F()
DXfrmController.cpp473 getSyscallInstance().getsockopt(Fd(fd), IPPROTO_UDP, UDP_ENCAP, &optval, &optlen); in ipSecSetEncapSocketOwner()
/system/netd/libnetdutils/include/netdutils/
DSyscalls.h52 virtual Status getsockopt(Fd sock, int level, int optname, void *optval,
125 Status getsockopt(Fd sock, int level, int optname, void* optval, socklen_t* optlen) const { in getsockopt() function
126 return getsockopt(sock, level, optname, optval, optlen); in getsockopt()
DMockSyscalls.h40 MOCK_CONST_METHOD5(getsockopt, Status(Fd sock, int level, int optname, void* optval,
/system/nvram/hal/
Dfake-nvram-seccomp-x86.policy19 getsockopt: 1
Dfake-nvram-seccomp-arm64.policy19 getsockopt: 1
Dfake-nvram-seccomp-x86_64.policy19 getsockopt: 1
Dfake-nvram-seccomp-arm.policy19 getsockopt: 1
/system/core/libcutils/
Dsocket_network_client_unix.cpp98 if (getsockopt(s, SOL_SOCKET, SO_ERROR, &error, &len) < 0) { in socket_network_client_timeout()
Duevent.cpp111 getsockopt(s, SOL_SOCKET, SO_RCVBUF, &buf_sz_readback, &optlen) < 0) { in uevent_open_socket()
/system/bpf/libbpf_android/
DBpfUtils.cpp53 int res = getsockopt(sockFd, SOL_SOCKET, SO_COOKIE, &sock_cookie, &cookie_len); in getSocketCookie()
/system/bt/gd/shim/
Ddumpsys_test.cc89 getsockopt(sockfd, SOL_SOCKET, SO_RCVBUF, (void*)&socket_buffer_size, &optlen); in GetSocketBufferSize()
/system/core/adb/libs/adbconnection/
Dadbconnection_client.cpp45 if (getsockopt(fd, SOL_SOCKET, SO_PEERCRED, &cr, &cr_length) != 0) { in SocketPeerIsTrusted()
/system/netd/client/
DNetdClient.cpp104 if (getsockopt(socketFd, SOL_SOCKET, SO_DOMAIN, &family, &familyLen) == -1) { in checkSocket()
136 if (getsockopt(acceptedSocket, SOL_SOCKET, SO_DOMAIN, &family, &familyLen) == -1) { in netdClientAccept4()
465 if (getsockopt(socketFd, SOL_SOCKET, SO_MARK, &fwmark.intValue, &fwmarkLen) == -1) { in getNetworkForSocket()
/system/core/libsysutils/src/
DSocketClient.cpp59 int err = getsockopt(socket, SOL_SOCKET, SO_PEERCRED, &creds, &szCreds); in init()
/system/core/debuggerd/tombstoned/
Dtombstoned.cpp314 int ret = getsockopt(sockfd, SOL_SOCKET, SO_PEERCRED, &cr, &len); in crash_request_cb()
/system/core/adb/
Dsocket_spec.cpp429 if (getsockopt(fd, SOL_SOCKET, SO_TYPE, &dummy_sock_type, &dummy_sock_type_size)) {
Dtest_adb.py326 linger = sock.getsockopt(socket.SOL_SOCKET, socket.SO_LINGER, 16)
/system/core/init/
Dproperty_service.cpp528 if (getsockopt(s, SOL_SOCKET, SO_PEERCRED, &cr, &cr_size) < 0) { in handle_property_set_fd()
/system/netd/tests/
Dbinder_test.cpp3341 EXPECT_NE(-1, getsockopt(testSocket, SOL_SOCKET, SO_MARK, &(fwmark->intValue), &fwmarkLen)); in sendIPv6PacketFromUid()
3469 EXPECT_EQ(0, getsockopt(sockFd, SOL_SOCKET, SO_MARK, &fwmark.intValue, &fwmarkLen)); in createIpv6SocketAndCheckMark()