Home
last modified time | relevance | path

Searched refs:server6 (Results 1 – 4 of 4) sorted by relevance

/system/netd/tests/
Dnetd_client_test.cpp43 static const sockaddr_in6 server6 = { in checkNetworkConnectivity() local
47 int ret = connect(sock, reinterpret_cast<const sockaddr*>(&server6), sizeof(server6)); in checkNetworkConnectivity()
Dsock_diag_test.cpp80 sockaddr_in6 server6 = { .sin6_family = AF_INET6, .sin6_port = htons(port) }; in TEST_F() local
83 ASSERT_EQ(0, connect(v6socket, (sockaddr *) &server6, sizeof(server6))) in TEST_F()
Dbinder_test.cpp707 struct sockaddr_in6 server6 = { .sin6_family = AF_INET6, .sin6_addr = sTun.dstAddr() }; in fakeRemoteSocketPair() local
708 ASSERT_EQ(0, bind(*serverSocket, (struct sockaddr *) &server6, sizeof(server6))); in fakeRemoteSocketPair()
710 socklen_t addrlen = sizeof(server6); in fakeRemoteSocketPair()
711 ASSERT_EQ(0, getsockname(*serverSocket, (struct sockaddr *) &server6, &addrlen)); in fakeRemoteSocketPair()
717 ASSERT_EQ(0, connect(*clientSocket, (struct sockaddr *) &server6, sizeof(server6))); in fakeRemoteSocketPair()
721 accept4(*serverSocket, (struct sockaddr*)&server6, &addrlen, SOCK_CLOEXEC)); in fakeRemoteSocketPair()
724 ASSERT_EQ(0, memcmp(&client6, &server6, sizeof(client6))); in fakeRemoteSocketPair()
/system/netd/server/
DSockDiagTest.cpp88 sockaddr_in6 server6 = { .sin6_family = AF_INET6, .sin6_port = htons(port) }; in TEST_F() local
91 ASSERT_EQ(0, connect(v6socket, (sockaddr *) &server6, sizeof(server6))) in TEST_F()