Home
last modified time | relevance | path

Searched refs:getsockopt (Results 1 – 21 of 21) 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.cpp146 if (getsockopt(*socketFd, SOL_SOCKET, SO_DOMAIN, &family, &familyLen) == -1) { in processClient()
155 if (getsockopt(*socketFd, SOL_SOCKET, SO_MARK, &fwmark.intValue, &fwmarkLen) == -1) { in processClient()
219 const int ret = getsockopt(*socketFd, SOL_SOCKET, SO_PROTOCOL, &socketProto, &intSize); in processClient()
DXfrmControllerTest.cpp147 EXPECT_CALL(mockSyscalls, getsockopt(Fd(sockFd), IPPROTO_UDP, UDP_ENCAP, _, _)) in TEST_F()
185 EXPECT_CALL(mockSyscalls, getsockopt(Fd(sockFd), IPPROTO_UDP, UDP_ENCAP, _, _)) in TEST_F()
196 EXPECT_CALL(mockSyscalls, getsockopt(Fd(sockFd), IPPROTO_UDP, UDP_ENCAP, _, _)) in TEST_F()
DXfrmController.cpp474 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-arm64.policy19 getsockopt: 1
Dfake-nvram-seccomp-arm.policy19 getsockopt: 1
Dfake-nvram-seccomp-x86.policy19 getsockopt: 1
Dfake-nvram-seccomp-x86_64.policy19 getsockopt: 1
/system/core/libcutils/
Duevent.cpp111 getsockopt(s, SOL_SOCKET, SO_RCVBUF, &buf_sz_readback, &optlen) < 0) { in uevent_open_socket()
Dsocket_network_client_unix.cpp98 if (getsockopt(s, SOL_SOCKET, SO_ERROR, &error, &len) < 0) { in socket_network_client_timeout()
/system/netd/client/
DNetdClient.cpp74 if (getsockopt(socketFd, SOL_SOCKET, SO_DOMAIN, &family, &familyLen) == -1) { in checkSocket()
106 if (getsockopt(acceptedSocket, SOL_SOCKET, SO_DOMAIN, &family, &familyLen) == -1) { in netdClientAccept4()
355 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/bpf/libbpf_android/
DBpfUtils.cpp208 int res = getsockopt(sockFd, SOL_SOCKET, SO_COOKIE, &sock_cookie, &cookie_len); in getSocketCookie()
/system/core/debuggerd/tombstoned/
Dtombstoned.cpp314 int ret = getsockopt(sockfd, SOL_SOCKET, SO_PEERCRED, &cr, &len); in crash_request_cb()
/system/core/adb/
Dtest_adb.py298 linger = sock.getsockopt(socket.SOL_SOCKET, socket.SO_LINGER, 16)
/system/netd/resolv/
Dres_send.cpp738 getsockopt(statp->_vcsock, SOL_SOCKET, SO_MARK, &old_mark, &mark_size) < 0 || in send_vc()
963 if (getsockopt(sock, SOL_SOCKET, SO_ERROR, &error, &len) < 0 || error) { in retrying_poll()
/system/core/init/
Dproperty_service.cpp526 if (getsockopt(s, SOL_SOCKET, SO_PEERCRED, &cr, &cr_size) < 0) { in handle_property_set_fd()
/system/netd/tests/
Dbinder_test.cpp3175 EXPECT_NE(-1, getsockopt(testSocket, SOL_SOCKET, SO_MARK, &(fwmark->intValue), &fwmarkLen)); in sendIPv6PacketFromUid()