Lines Matching refs:fdr
513 static void run_one(struct testcase *test, int fdt, int fdr,
546 ret = recv_one(fdr, 0);
553 ret = recv_one(fdr, 0);
560 ret = recv_one(fdr, MSG_DONTWAIT);
565 static void run_all(int fdt, int fdr, struct sockaddr *addr, socklen_t alen)
575 run_one(test, fdt, fdr, addr, alen);
582 int fdr, fdt, val;
584 fdr = socket(addr->sa_family, SOCK_DGRAM, 0);
585 if (fdr == -1)
588 if (bind(fdr, addr, alen))
592 if (setsockopt(fdr, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)))
604 run_all(fdt, fdr, addr, alen);
618 run_all(fdt, fdr, addr, 0 /* use connected addr */);
623 if (close(fdr))