Home
last modified time | relevance | path

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

/test/vts-testcase/kernel/api/bpf_native_test/
DBpfTest.cpp98 int recvSock, sendSock, recv_len; in workerThread() local
103 recvSock = socket(PF_INET6, SOCK_DGRAM, IPPROTO_UDP); in workerThread()
104 EXPECT_NE(-1, recvSock); in workerThread()
107 EXPECT_NE(-1, bind(recvSock, (struct sockaddr *)&remote, sizeof(remote))); in workerThread()
108 EXPECT_EQ(0, getsockname(recvSock, (struct sockaddr *)&remote, &slen)); in workerThread()
111 EXPECT_NE(-1, setsockopt(recvSock, SOL_SOCKET, SO_ATTACH_BPF, &prog_fd, in workerThread()
122 recv_len = recvfrom(recvSock, &buf, sizeof(buf), 0, in workerThread()