Home
last modified time | relevance | path

Searched refs:socklen_t (Results 1 – 25 of 49) sorted by relevance

12

/system/netd/libnetdutils/include/netdutils/
DMockSyscalls.h39 MOCK_CONST_METHOD3(getsockname, Status(Fd sock, sockaddr* addr, socklen_t* addrlen));
41 socklen_t *optlen));
43 socklen_t optlen));
45 MOCK_CONST_METHOD3(bind, Status(Fd sock, const sockaddr* addr, socklen_t addrlen));
46 MOCK_CONST_METHOD3(connect, Status(Fd sock, const sockaddr* addr, socklen_t addrlen));
57 const sockaddr* dst, socklen_t dstlen));
59 socklen_t* srclen));
DSyscalls.h50 virtual Status getsockname(Fd sock, sockaddr* addr, socklen_t* addrlen) const = 0;
53 socklen_t *optlen) const = 0;
56 socklen_t optlen) const = 0;
58 virtual Status bind(Fd sock, const sockaddr* addr, socklen_t addrlen) const = 0;
60 virtual Status connect(Fd sock, const sockaddr* addr, socklen_t addrlen) const = 0;
75 socklen_t dstlen) const = 0;
78 socklen_t* srclen) const = 0;
119 socklen_t addrlen = sizeof(addr); in getsockname()
125 Status getsockopt(Fd sock, int level, int optname, void* optval, socklen_t* optlen) const { in getsockopt()
174 socklen_t addrlen = sizeof(addr); in recvfrom()
/system/netd/libnetdutils/
DSyscalls.cpp60 Status getsockname(Fd sock, sockaddr* addr, socklen_t* addrlen) const override { in getsockname()
69 socklen_t* optlen) const override { in getsockopt()
78 socklen_t optlen) const override { in setsockopt()
86 Status bind(Fd sock, const sockaddr* addr, socklen_t addrlen) const override { in bind()
94 Status connect(Fd sock, const sockaddr* addr, socklen_t addrlen) const override { in connect()
154 socklen_t dstlen) const override { in sendto()
163 socklen_t* srclen) const override { in recvfrom()
DSyscallsTest.cpp76 .WillOnce(Invoke([expected](Fd, sockaddr* addr, socklen_t* addrlen) { in TEST_F()
78 EXPECT_EQ(*addrlen, static_cast<socklen_t>(sizeof(expected))); in TEST_F()
115 socklen_t optLen = 0; in TEST_F()
190 [expected, used](Fd, const Slice, int, sockaddr* src, socklen_t* srclen) { in TEST_F()
/system/core/adb/sysdeps/posix/
Dnetwork.cpp38 static sockaddr* loopback_addr4(sockaddr_storage* addr, socklen_t* addrlen, int port) { in loopback_addr4()
48 static sockaddr* loopback_addr6(sockaddr_storage* addr, socklen_t* addrlen, int port) { in loopback_addr6()
66 socklen_t addrlen = sizeof(addr_storage); in _network_loopback_client()
104 socklen_t addrlen = sizeof(addr_storage); in _network_loopback_server()
/system/netd/client/
DNetdClient.cpp65 typedef int (*Accept4FunctionType)(int, sockaddr*, socklen_t*, int);
66 typedef int (*ConnectFunctionType)(int, const sockaddr*, socklen_t);
72 typedef int (*SendtoFunctionType)(int, const void*, size_t, int, const sockaddr*, socklen_t);
103 socklen_t familyLen = sizeof(family); in checkSocket()
126 int netdClientAccept4(int sockfd, sockaddr* addr, socklen_t* addrlen, int flags) { in netdClientAccept4()
135 socklen_t familyLen = sizeof(family); in netdClientAccept4()
149 int netdClientConnect(int sockfd, const sockaddr* addr, socklen_t addrlen) { in netdClientConnect()
235 socklen_t addrlen) { in netdClientSendto()
464 socklen_t fwmarkLen = sizeof(fwmark.intValue); in getNetworkForSocket()
/system/bt/osi/include/socket_utils/
Dsocket_local.h36 struct sockaddr_un* p_addr, socklen_t* alen);
/system/bt/osi/src/socket_utils/
Dsocket_local_client.cc35 struct sockaddr_un* p_addr, socklen_t* alen) { in osi_socket_make_sockaddr_un()
115 socklen_t alen; in osi_socket_local_client_connect()
Dsocket_local_server.cc44 socklen_t alen;
/system/core/libcutils/
Dsocket_local_client_unix.cpp46 struct sockaddr_un *p_addr, socklen_t *alen) in socket_make_sockaddr_un()
126 socklen_t alen; in socket_local_client_connect()
Dsocket_local_unix.h37 struct sockaddr_un *p_addr, socklen_t *alen);
Dsockets.cpp36 socklen_t addr_size = sizeof(addr); in socket_get_local_port()
Dsocket_local_server_unix.cpp58 socklen_t alen;
Dsockets_unix.cpp61 socklen_t addrlen = sizeof(addr); in android_get_control_socket()
Dsocket_network_client_unix.cpp96 socklen_t len = sizeof(error); in socket_network_client_timeout()
Duevent.cpp99 socklen_t optlen = sizeof(buf_sz_readback); in uevent_open_socket()
/system/bt/gd/shim/
Ddumpsys_test.cc88 socklen_t optlen = sizeof(socket_buffer_size); in GetSocketBufferSize()
94 socklen_t optlen = sizeof(socket_buffer_size); in SetSocketBufferSize()
/system/netd/tests/benchmarks/
Dconnect_benchmark.cpp89 socklen_t len = sizeof(sin); in bindAndListen()
135 socklen_t clientlen = sizeof(client); in ipv4_loopback()
192 socklen_t clientlen = sizeof(client); in ipv6_loopback()
/system/bt/vendor_libs/test_vendor_lib/model/devices/
Dserver_port_factory.cc37 socklen_t sockaddr_in_size = sizeof(struct sockaddr_in); in SetUp()
78 socklen_t sockaddr_in_size = sizeof(struct sockaddr_in); in Accept()
/system/netd/server/
DFwmarkServer.cpp156 socklen_t familyLen = sizeof(family); in processClient()
165 socklen_t fwmarkLen = sizeof(fwmark.intValue); in processClient()
229 socklen_t intSize = sizeof(socketProto); in processClient()
/system/core/libcutils/include/cutils/
Dsockets.h31 typedef int socklen_t; typedef
/system/core/libcutils/include_vndk/cutils/
Dsockets.h31 typedef int socklen_t; typedef
/system/core/init/
Dproperty_service_test.cpp44 socklen_t addr_len = strlen(property_service_socket) + offsetof(sockaddr_un, sun_path) + 1; in TEST()
/system/core/fastboot/
Dsocket.cpp122 socklen_t addr_size_ = 0;
158 socklen_t* addr_size_ptr = nullptr; in Receive()
/system/bpf/libbpf_android/
DBpfUtils.cpp52 socklen_t cookie_len = sizeof(sock_cookie); in getSocketCookie()

12