Home
last modified time | relevance | path

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

/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dassign_reuse.c40 int fd_cl = -1, ret; in echo_test_udp() local
42 fd_cl = connect_to_fd(fd_sv, 100); in echo_test_udp()
43 ASSERT_GT(fd_cl, 0, "create_client"); in echo_test_udp()
44 ASSERT_EQ(getsockname(fd_cl, (void *)&addr, &len), 0, "getsockname"); in echo_test_udp()
46 ASSERT_EQ(send(fd_cl, buff, sizeof(buff), 0), 1, "send_client"); in echo_test_udp()
50 close(fd_cl); in echo_test_udp()
56 ASSERT_EQ(recv(fd_cl, buff, sizeof(buff), 0), 1, "recv_client"); in echo_test_udp()
57 close(fd_cl); in echo_test_udp()
64 int fd_cl = -1, fd_sv_cl = -1; in echo_test_tcp() local
66 fd_cl = connect_to_fd(fd_sv, 100); in echo_test_tcp()
[all …]