Searched refs:addr_size (Results 1 – 4 of 4) sorted by relevance
/system/core/libcutils/ |
D | sockets.cpp | 40 socklen_t addr_size = sizeof(addr); in socket_get_local_port() local 42 if (getsockname(sock, reinterpret_cast<sockaddr*>(&addr), &addr_size) == 0) { in socket_get_local_port()
|
/system/connectivity/shill/net/ |
D | ip_address_unittest.cc | 92 ssize_t addr_size; in TestAddress() local 96 addr_size = sizeof(sockaddr_in6); in TestAddress() 100 addr_size = sizeof(sockaddr_in); in TestAddress() 102 IPAddress from_short_sockaddr(addr, addr_size - 1); in TestAddress() 104 IPAddress from_sockaddr(addr, addr_size); in TestAddress() 113 EXPECT_FALSE(from_short_sockaddr.IntoSockAddr(addr2, addr_size)); in TestAddress() 115 EXPECT_FALSE(from_sockaddr.IntoSockAddr(addr2, addr_size - 1)); in TestAddress() 117 EXPECT_TRUE(from_sockaddr.IntoSockAddr(addr2, addr_size)); in TestAddress()
|
/system/core/libcutils/tests/ |
D | sockets_test.cpp | 39 socklen_t addr_size = sizeof(addr); in TestConnectedSockets() local 45 reinterpret_cast<sockaddr*>(&addr), &addr_size)); in TestConnectedSockets() 54 reinterpret_cast<sockaddr*>(&addr), addr_size)); in TestConnectedSockets()
|
/system/core/init/ |
D | property_service.cpp | 239 socklen_t addr_size = sizeof(addr); in handle_property_set_fd() local 246 if ((s = accept(property_set_fd, (struct sockaddr *) &addr, &addr_size)) < 0) { in handle_property_set_fd()
|