Home
last modified time | relevance | path

Searched refs:optval (Results 1 – 7 of 7) sorted by relevance

/system/netd/libnetdutils/include/netdutils/
DSyscalls.h52 virtual Status getsockopt(Fd sock, int level, int optname, void *optval,
55 virtual Status setsockopt(Fd sock, int level, int optname, const void* optval,
125 Status getsockopt(Fd sock, int level, int optname, void* optval, socklen_t* optlen) const { in getsockopt() argument
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,
42 MOCK_CONST_METHOD5(setsockopt, Status(Fd sock, int level, int optname, const void* optval,
/system/netd/libnetdutils/
DSyscalls.cpp68 Status getsockopt(Fd sock, int level, int optname, void* optval, in getsockopt() argument
70 auto rv = ::getsockopt(sock.get(), level, optname, optval, optlen); in getsockopt()
77 Status setsockopt(Fd sock, int level, int optname, const void* optval, in setsockopt() argument
79 auto rv = ::setsockopt(sock.get(), level, optname, optval, optlen); in setsockopt()
/system/core/adb/
Dsysdeps.h179 extern int adb_setsockopt(int fd, int level, int optname, const void* optval, socklen_t optle…
545 static __inline__ int adb_setsockopt( int fd, int level, int optname, const void* optval, sock… in adb_setsockopt() argument
547 return setsockopt( fd, level, optname, optval, optlen ); in adb_setsockopt()
Dsysdeps_win32.cpp1008 int adb_setsockopt(int fd, int level, int optname, const void* optval, socklen_t optlen) { in adb_setsockopt() argument
1022 setsockopt(fh->fh_socket, level, optname, reinterpret_cast<const char*>(optval), optlen); in adb_setsockopt()
/system/netd/server/
DXfrmController.cpp471 int optval; in ipSecSetEncapSocketOwner() local
472 socklen_t optlen = sizeof(optval); in ipSecSetEncapSocketOwner()
474 getSyscallInstance().getsockopt(Fd(fd), IPPROTO_UDP, UDP_ENCAP, &optval, &optlen); in ipSecSetEncapSocketOwner()
478 if (optval != UDP_ENCAP_ESPINUDP && optval != UDP_ENCAP_ESPINUDP_NON_IKE) { in ipSecSetEncapSocketOwner()
DXfrmControllerTest.cpp549 const void* optval; in TEST_P() local
560 .WillOnce(DoAll(SaveArg<3>(&optval), SaveArg<4>(&optlen), in TEST_P()
566 EXPECT_EQ(nullptr, optval); in TEST_P()