Home
last modified time | relevance | path

Searched refs:server_fds (Results 1 – 1 of 1) sorted by relevance

/Linux-v6.6/tools/testing/selftests/bpf/prog_tests/
Dsk_lookup.c600 int server_fds[] = { [0 ... MAX_SERVERS - 1] = -1 }; in run_lookup_prog() local
609 for (i = 0; i < ARRAY_SIZE(server_fds); i++) { in run_lookup_prog()
610 server_fds[i] = make_server(t->sotype, t->listen_at.ip, in run_lookup_prog()
613 if (server_fds[i] < 0) in run_lookup_prog()
616 err = update_lookup_map(t->sock_map, i, server_fds[i]); in run_lookup_prog()
656 tcp_echo_test(client_fd, server_fds[t->accept_on]); in run_lookup_prog()
658 udp_echo_test(client_fd, server_fds[t->accept_on]); in run_lookup_prog()
664 for (i = 0; i < ARRAY_SIZE(server_fds); i++) { in run_lookup_prog()
665 if (server_fds[i] != -1) in run_lookup_prog()
666 close(server_fds[i]); in run_lookup_prog()
[all …]