| /linux/tools/testing/selftests/bpf/prog_tests/ |
| A D | connect_force_port.c | 141 server_fd = start_server(AF_INET, SOCK_STREAM, NULL, 60123, 0); in test_connect_force_port() 147 server_fd = start_server(AF_INET6, SOCK_STREAM, NULL, 60124, 0); in test_connect_force_port() 153 server_fd = start_server(AF_INET, SOCK_DGRAM, NULL, 60123, 0); in test_connect_force_port() 159 server_fd = start_server(AF_INET6, SOCK_DGRAM, NULL, 60124, 0); in test_connect_force_port()
|
| A D | setget_sockopt.c | 49 sfd = start_server(family, SOCK_STREAM, in test_tcp() 77 sfd = start_server(family, SOCK_DGRAM, in test_udp() 96 sfd = start_server(family, SOCK_STREAM, in test_ktls() 166 sfd = start_server(family, SOCK_STREAM, in test_nonstandard_opt()
|
| A D | cgroup_v1v2.c | 54 server_fd = start_server(AF_INET, SOCK_STREAM, NULL, port, 0); in test_cgroup_v1v2() 69 server_fd = start_server(AF_INET, SOCK_STREAM, NULL, port, 0); in test_cgroup_v1v2()
|
| A D | sock_destroy.c | 39 serv = start_server(AF_INET6, SOCK_STREAM, NULL, 0, 0); in test_tcp_client() 76 serv = start_server(AF_INET6, SOCK_STREAM, NULL, 0, 0); in test_tcp_server() 117 serv = start_server(AF_INET6, SOCK_DGRAM, NULL, 0, 0); in test_udp_client()
|
| A D | btf_skc_cls_ingress.c | 83 listen_fd = start_server(AF_INET6, SOCK_STREAM, "::1", 0, 0); in test_conn() 138 listen_fd = start_server(AF_INET6, SOCK_STREAM, "::1", 0, 0); in test_syncookie()
|
| A D | ns_current_pid_tgid.c | 105 server_fd = start_server(AF_INET, SOCK_STREAM, NULL, 0, 0); in test_current_pid_tgid_cgrp() 151 server_fd = start_server(AF_INET6, SOCK_STREAM, "::1", 0, 0); in test_current_pid_tgid_sk_msg()
|
| A D | sock_addr.c | 284 int (*start_server)(int family, int type, const char *addr_str, member 321 .start_server = start_server, 332 .start_server = kernel_start_server, 343 .start_server = kernel_start_server, 2289 serv = test->ops->start_server(test->socket_family, test->socket_type, in test_bind() 2332 serv = start_server(test->socket_family, test->socket_type, in test_connect() 2396 serv = start_server(test->socket_family, test->socket_type, in test_xmsg() 2495 serv = test->ops->start_server(test->socket_family, test->socket_type, in test_getsockname() 2524 serv = start_server(test->socket_family, test->socket_type, in test_getpeername()
|
| A D | load_bytes_relative.c | 26 server_fd = start_server(AF_INET, SOCK_STREAM, NULL, 0, 0); in test_load_bytes_relative()
|
| A D | mptcp.c | 216 server_fd = start_server(AF_INET, SOCK_STREAM, NULL, 0, 0); in test_base() 294 server_fd = start_server(AF_INET, SOCK_STREAM, NULL, 0, 0); in run_mptcpify()
|
| A D | cgroup_skb_sk_lookup.c | 16 serv_sk = start_server(AF_INET6, SOCK_STREAM, NULL, 0, 0); in run_lookup_test()
|
| A D | socket_cookie.c | 48 server_fd = start_server(AF_INET6, SOCK_STREAM, "::1", 0, 0); in test_socket_cookie()
|
| A D | cgroup_tcp_skb.c | 80 *listen_fd = start_server(AF_INET6, SOCK_STREAM, NULL, 0, 0); in talk_to_cgroup() 121 *listen_fd = start_server(AF_INET6, SOCK_STREAM, NULL, 0, 0); in talk_to_outside()
|
| A D | netns_cookie.c | 41 server_fd = start_server(AF_INET6, SOCK_STREAM, "::1", 0, 0); in test_netns_cookie()
|
| A D | sk_storage_tracing.c | 53 listen_fd = start_server(AF_INET6, SOCK_STREAM, LO_ADDR6, 0, 0); in do_test()
|
| A D | tcp_custom_syncookie.c | 96 server = start_server(test_case->family, test_case->type, test_case->addr, 0, 0); in create_connection()
|
| A D | tcpbpf_user.c | 54 listen_fd = start_server(AF_INET6, SOCK_STREAM, LO_ADDR6, 0, 0); in run_test()
|
| A D | tcp_rtt.c | 169 server_fd = start_server(AF_INET, SOCK_STREAM, NULL, 0, 0); in test_tcp_rtt()
|
| A D | test_local_storage.c | 154 serv_sk = start_server(AF_INET6, SOCK_STREAM, NULL, 0, 0); in test_test_local_storage()
|
| A D | xdp_synproxy.c | 128 server_fd = start_server(AF_INET, SOCK_STREAM, "198.18.0.2", 8080, 0); in test_synproxy()
|
| A D | bpf_iter_setsockopt.c | 113 listen_fd = start_server(AF_INET6, SOCK_STREAM, "::1", 0, 0); in do_bpf_iter_setsockopt()
|
| A D | bpf_nf.c | 76 srv_fd = start_server(AF_INET, SOCK_STREAM, "127.0.0.1", srv_port, TIMEOUT_MS); in test_bpf_nf_ct()
|
| A D | ip_check_defrag.c | 193 srv_fd = start_server(family, SOCK_DGRAM, NULL, SERVER_PORT, 0); in test_bpf_ip_check_defrag_ok()
|
| A D | vrf_socket_lookup.c | 88 fd = start_server(AF_INET, sotype, ip, port, TIMEOUT_MS); in make_server()
|
| /linux/tools/testing/selftests/net/ |
| A D | tcp_inq.c | 59 void *start_server(void *arg) in start_server() function 136 if (pthread_create(&server_thread, NULL, start_server, in main()
|
| /linux/tools/testing/selftests/bpf/ |
| A D | network_helpers.h | 60 int start_server(int family, int type, const char *addr, __u16 port,
|