Lines Matching refs:rcv
175 bool do_recv(int rcv, int read_size, struct tstamps expected) in do_recv() argument
198 r = recvmsg(rcv, &hdr, flags); in do_recv()
254 void config_so_flags(int rcv, struct options o) in config_so_flags() argument
258 if (setsockopt(rcv, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on)) < 0) in config_so_flags()
262 setsockopt(rcv, SOL_SOCKET, SO_TIMESTAMP, in config_so_flags()
267 setsockopt(rcv, SOL_SOCKET, SO_TIMESTAMPNS, in config_so_flags()
272 setsockopt(rcv, SOL_SOCKET, SO_TIMESTAMPING, in config_so_flags()
286 int src, dst, rcv, port; in run_test_case() local
326 rcv = accept(dst, NULL, NULL); in run_test_case()
327 if (rcv < 0) in run_test_case()
331 rcv = dst; in run_test_case()
334 config_so_flags(rcv, test_cases[test_num].sockopt); in run_test_case()
338 failed = do_recv(rcv, read_size, test_cases[test_num].expected); in run_test_case()
340 close(rcv); in run_test_case()