Searched refs:rcv_fds (Results 1 – 3 of 3) sorted by relevance
/linux-6.1.9/tools/testing/selftests/net/ |
D | reuseport_dualstack.c | 31 static void build_rcv_fd(int family, int proto, int *rcv_fds, int count) in build_rcv_fd() argument 56 rcv_fds[i] = socket(family, proto, 0); in build_rcv_fd() 57 if (rcv_fds[i] < 0) in build_rcv_fd() 61 if (setsockopt(rcv_fds[i], SOL_SOCKET, SO_REUSEPORT, &opt, in build_rcv_fd() 65 if (bind(rcv_fds[i], (struct sockaddr *)&addr, sizeof(addr))) in build_rcv_fd() 68 if (proto == SOCK_STREAM && listen(rcv_fds[i], 10)) in build_rcv_fd() 128 static void test(int *rcv_fds, int count, int proto) in test() argument 141 ev.data.fd = rcv_fds[i]; in test() 142 if (epoll_ctl(epfd, EPOLL_CTL_ADD, rcv_fds[i], &ev)) in test() 161 int rcv_fds[32], i; in main() local [all …]
|
D | reuseport_addr_any.c | 34 static void build_rcv_fd(int family, int proto, int *rcv_fds, int count, in build_rcv_fd() argument 75 rcv_fds[i] = socket(family, proto, 0); in build_rcv_fd() 76 if (rcv_fds[i] < 0) in build_rcv_fd() 80 if (setsockopt(rcv_fds[i], SOL_SOCKET, SO_REUSEPORT, &opt, in build_rcv_fd() 84 if (bind(rcv_fds[i], addr, sz)) in build_rcv_fd() 87 if (proto == SOCK_STREAM && listen(rcv_fds[i], 10)) in build_rcv_fd() 90 if (setsockopt(rcv_fds[i], SOL_DCCP, in build_rcv_fd() 95 if (listen(rcv_fds[i], 10)) in build_rcv_fd() 194 static void test(int *rcv_fds, int count, int family, int proto, int fd) in test() argument 205 ev.data.fd = rcv_fds[i]; in test() [all …]
|
D | tcp_fastopen_backup_key.c | 43 static int rcv_fds[N_LISTEN]; variable 89 static void build_rcv_fd(int family, int proto, int *rcv_fds) in build_rcv_fd() argument 124 rcv_fds[i] = socket(family, proto, 0); in build_rcv_fd() 125 if (rcv_fds[i] < 0) in build_rcv_fd() 127 if (setsockopt(rcv_fds[i], SOL_SOCKET, SO_REUSEPORT, &opt, in build_rcv_fd() 130 if (bind(rcv_fds[i], addr, sz)) in build_rcv_fd() 132 if (setsockopt(rcv_fds[i], SOL_TCP, TCP_FASTOPEN, &qlen, in build_rcv_fd() 135 set_keys(rcv_fds[i], keys); in build_rcv_fd() 136 if (proto == SOCK_STREAM && listen(rcv_fds[i], 10)) in build_rcv_fd() 205 if (rcv_fds[i] == fd) in is_listen_fd() [all …]
|