Lines Matching refs:client_fd
85 static int verify_tsk(int map_fd, int client_fd) in verify_tsk() argument
87 int err, cfd = client_fd; in verify_tsk()
123 static int verify_msk(int map_fd, int client_fd, __u32 token) in verify_msk() argument
126 int err, cfd = client_fd; in verify_msk()
158 int client_fd, prog_fd, map_fd, err; in run_test() local
175 client_fd = connect_to_fd(server_fd, 0); in run_test()
176 if (!ASSERT_GE(client_fd, 0, "connect to fd")) { in run_test()
181 err += is_mptcp ? verify_msk(map_fd, client_fd, sock_skel->bss->token) : in run_test()
182 verify_tsk(map_fd, client_fd); in run_test()
184 close(client_fd); in run_test()
235 static int verify_mptcpify(int server_fd, int client_fd) in verify_mptcpify() argument
251 if (!ASSERT_OK(getsockopt(client_fd, SOL_MPTCP, MPTCP_INFO, &info, &optlen), in verify_mptcpify()
269 int server_fd, client_fd, err = 0; in run_mptcpify() local
287 client_fd = connect_to_fd(server_fd, 0); in run_mptcpify()
288 if (!ASSERT_GE(client_fd, 0, "connect to fd")) { in run_mptcpify()
293 send_byte(client_fd); in run_mptcpify()
295 err = verify_mptcpify(server_fd, client_fd); in run_mptcpify()
297 close(client_fd); in run_mptcpify()