| H A D | reuseport_addr_any.c | 29 static void build_rcv_fd(int family, int proto, int *rcv_fds, int count, 70 rcv_fds[i] = socket(family, proto, 0); in build_rcv_fd() 71 if (rcv_fds[i] < 0) in build_rcv_fd() 75 if (setsockopt(rcv_fds[i], SOL_SOCKET, SO_REUSEPORT, &opt, in build_rcv_fd() 79 if (bind(rcv_fds[i], addr, sz)) in build_rcv_fd() 82 if (proto == SOCK_STREAM && listen(rcv_fds[i], 10)) in build_rcv_fd() 175 static void test(int *rcv_fds, int count, int family, int proto, int fd) in receive_once() 186 ev.data.fd = rcv_fds[i]; in receive_once() 187 if (epoll_ctl(epfd, EPOLL_CTL_ADD, rcv_fds[i], &ev)) in receive_once() 212 int rcv_fds[1 in test() 34 build_rcv_fd(int family,int proto,int * rcv_fds,int count,const char * addr_str) build_rcv_fd() argument 194 test(int * rcv_fds,int count,int family,int proto,int fd) test() argument 231 int rcv_fds[10], i; run_one_test() local [all...] |