Lines Matching refs:server_fds
540 int server_fds[] = { [0 ... MAX_SERVERS - 1] = -1 }; in run_lookup_prog() local
549 for (i = 0; i < ARRAY_SIZE(server_fds); i++) { in run_lookup_prog()
550 server_fds[i] = make_server(t->sotype, t->listen_at.ip, in run_lookup_prog()
553 if (server_fds[i] < 0) in run_lookup_prog()
556 err = update_lookup_map(t->sock_map, i, server_fds[i]); in run_lookup_prog()
591 tcp_echo_test(client_fd, server_fds[t->accept_on]); in run_lookup_prog()
593 udp_echo_test(client_fd, server_fds[t->accept_on]); in run_lookup_prog()
599 for (i = 0; i < ARRAY_SIZE(server_fds); i++) { in run_lookup_prog()
600 if (server_fds[i] != -1) in run_lookup_prog()
601 close(server_fds[i]); in run_lookup_prog()
1029 int server_fds[] = { [0 ... MAX_SERVERS - 1] = -1 }; in run_sk_assign() local
1046 for (i = 0; i < ARRAY_SIZE(server_fds); i++) { in run_sk_assign()
1047 server_fds[i] = make_server(SOCK_STREAM, local_ip, 0, NULL); in run_sk_assign()
1048 if (server_fds[i] < 0) in run_sk_assign()
1052 server_fds[i]); in run_sk_assign()
1057 server_cookie = socket_cookie(server_fds[SERVER_B]); in run_sk_assign()
1072 for (i = 0; i < ARRAY_SIZE(server_fds); i++) { in run_sk_assign()
1073 if (server_fds[i] != -1) in run_sk_assign()
1074 close(server_fds[i]); in run_sk_assign()