Searched refs:testSocket (Results 1 – 1 of 1) sorted by relevance
/system/netd/tests/ |
D | binder_test.cpp | 3340 unique_fd testSocket(socket(AF_INET6, SOCK_DGRAM | SOCK_CLOEXEC, 0)); in sendIPv6PacketFromUid() local 3341 if (testSocket < 0) return false; in sendIPv6PacketFromUid() 3348 if (doConnect && connect(testSocket, (sockaddr*)&dst6, sizeof(dst6)) == -1) return false; in sendIPv6PacketFromUid() 3351 EXPECT_NE(-1, getsockopt(testSocket, SOL_SOCKET, SO_MARK, &(fwmark->intValue), &fwmarkLen)); in sendIPv6PacketFromUid() 3358 checkDataReceived(testSocket, tunFd, nullptr, 0); in sendIPv6PacketFromUid() 3360 checkDataReceived(testSocket, tunFd, (sockaddr*)&dst6, sizeof(dst6)); in sendIPv6PacketFromUid()
|