Lines Matching full:rcv
193 bool do_recv(int rcv, int read_size, struct tstamps expected) in do_recv() argument
216 r = recvmsg(rcv, &hdr, flags); in do_recv()
272 void config_so_flags(int rcv, struct options o) in config_so_flags() argument
276 if (setsockopt(rcv, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on)) < 0) in config_so_flags()
280 setsockopt(rcv, SOL_SOCKET, SO_TIMESTAMP, in config_so_flags()
285 setsockopt(rcv, SOL_SOCKET, SO_TIMESTAMPNS, in config_so_flags()
290 setsockopt(rcv, SOL_SOCKET, SO_TIMESTAMPING, in config_so_flags()
304 int src, dst, rcv, port; in run_test_case() local
344 rcv = accept(dst, NULL, NULL); in run_test_case()
345 if (rcv < 0) in run_test_case()
349 rcv = dst; in run_test_case()
352 config_so_flags(rcv, test_cases[test_num].sockopt); in run_test_case()
356 failed = do_recv(rcv, read_size, test_cases[test_num].expected); in run_test_case()
358 close(rcv); in run_test_case()