/Linux-v6.1/tools/testing/selftests/net/ |
D | reuseport_dualstack.c | 68 if (proto == SOCK_STREAM && listen(rcv_fds[i], 10)) in build_rcv_fd() 112 if (proto == SOCK_STREAM) { in receive_once() 195 build_rcv_fd(AF_INET, SOCK_STREAM, rcv_fds, 5); in main() 196 build_rcv_fd(AF_INET6, SOCK_STREAM, &(rcv_fds[5]), 5); in main() 197 test(rcv_fds, 10, SOCK_STREAM); in main() 202 build_rcv_fd(AF_INET6, SOCK_STREAM, rcv_fds, 5); in main() 203 build_rcv_fd(AF_INET, SOCK_STREAM, &(rcv_fds[5]), 5); in main() 204 test(rcv_fds, 10, SOCK_STREAM); in main()
|
D | reuseport_bpf.c | 173 if (p.protocol == SOCK_STREAM) { in build_recv_group() 244 if (p.protocol == SOCK_STREAM) { in test_recv_order() 575 .protocol = SOCK_STREAM, in main() 582 .protocol = SOCK_STREAM, in main() 588 .protocol = SOCK_STREAM, in main() 592 .protocol = SOCK_STREAM, in main() 599 .protocol = SOCK_STREAM, in main() 606 .protocol = SOCK_STREAM, in main() 612 .protocol = SOCK_STREAM, in main() 616 .protocol = SOCK_STREAM, in main() [all …]
|
D | so_netns_cookie.c | 30 sock1 = socket(AF_INET, SOCK_STREAM, 0); in main() 44 sock2 = socket(AF_INET, SOCK_STREAM, 0); in main()
|
D | sk_connect_zero_addr.c | 21 fd1 = socket(AF_INET6, SOCK_STREAM, IPPROTO_IP); in main() 42 fd2 = socket(AF_INET6, SOCK_STREAM, IPPROTO_IP); in main()
|
D | socket.c | 30 { AF_INET, SOCK_STREAM, IPPROTO_TCP, 0, 1 }, 33 { AF_INET, SOCK_STREAM, IPPROTO_UDP, -EPROTONOSUPPORT, 1 },
|
D | sk_bind_sendto_listen.c | 21 fd1 = socket(AF_INET6, SOCK_STREAM, IPPROTO_IP); in main() 43 fd2 = socket(AF_INET6, SOCK_STREAM, IPPROTO_IP); in main()
|
D | reuseport_bpf_cpu.c | 72 if (proto == SOCK_STREAM && listen(rcv_fd[i], len * 10)) in build_rcv_group() 161 if (proto == SOCK_STREAM) { in receive_on_cpu() 250 test(rcv_fd, cpus, AF_INET, SOCK_STREAM); in main() 253 test(rcv_fd, cpus, AF_INET6, SOCK_STREAM); in main()
|
D | reuseport_bpf_numa.c | 68 if (proto == SOCK_STREAM && listen(rcv_fd[i], len * 10)) in build_rcv_group() 171 if (proto == SOCK_STREAM) { in receive_on_node() 253 test(rcv_fd, nodes, AF_INET, SOCK_STREAM); in main() 256 test(rcv_fd, nodes, AF_INET6, SOCK_STREAM); in main()
|
D | bind_bhash.c | 36 sock_fd = socket(domain, SOCK_STREAM, 0); in bind_socket() 43 hint.ai_socktype = SOCK_STREAM; in bind_socket()
|
/Linux-v6.1/tools/testing/selftests/filesystems/epoll/ |
D | epoll_wakeup_test.c | 169 ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, sfd), 0); in TEST() 200 ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, sfd), 0); in TEST() 231 ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &sfd[0]), 0); in TEST() 232 ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &sfd[2]), 0); in TEST() 269 ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &sfd[0]), 0); in TEST() 270 ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &sfd[2]), 0); in TEST() 308 ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &sfd[0]), 0); in TEST() 347 ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &sfd[0]), 0); in TEST() 387 ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &sfd[0]), 0); in TEST() 388 ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &sfd[2]), 0); in TEST() [all …]
|
/Linux-v6.1/tools/testing/selftests/net/af_unix/ |
D | unix_connect.c | 32 .type = SOCK_STREAM, in FIXTURE_VARIANT_ADD() 41 .type = SOCK_STREAM, in FIXTURE_VARIANT_ADD() 50 .type = SOCK_STREAM, in FIXTURE_VARIANT_ADD() 59 .type = SOCK_STREAM, in FIXTURE_VARIANT_ADD() 133 if (variant->type == SOCK_STREAM) { in TEST_F()
|
/Linux-v6.1/tools/testing/selftests/bpf/prog_tests/ |
D | sk_assign.c | 73 if (type == SOCK_STREAM && CHECK_FAIL(listen(fd, 128) == -1)) in start_server() 136 if (type == SOCK_STREAM) in rcv_msg() 157 if (type == SOCK_STREAM) { in run_test() 184 if (type == SOCK_STREAM && in run_test() 259 TEST("ipv4 tcp port redir", AF_INET, SOCK_STREAM, false), in test_sk_assign() 260 TEST("ipv4 tcp addr redir", AF_INET, SOCK_STREAM, true), in test_sk_assign() 261 TEST("ipv6 tcp port redir", AF_INET6, SOCK_STREAM, false), in test_sk_assign() 262 TEST("ipv6 tcp addr redir", AF_INET6, SOCK_STREAM, true), in test_sk_assign()
|
D | sk_lookup.c | 175 if (sotype == SOCK_STREAM) { in make_server() 199 if (sotype == SOCK_STREAM) { in make_server() 655 if (t->sotype == SOCK_STREAM) in run_lookup_prog() 678 .sotype = SOCK_STREAM, in test_redirect_lookup() 686 .sotype = SOCK_STREAM, in test_redirect_lookup() 695 .sotype = SOCK_STREAM, in test_redirect_lookup() 705 .sotype = SOCK_STREAM, in test_redirect_lookup() 714 .sotype = SOCK_STREAM, in test_redirect_lookup() 722 .sotype = SOCK_STREAM, in test_redirect_lookup() 730 .sotype = SOCK_STREAM, in test_redirect_lookup() [all …]
|
D | connect_force_port.c | 141 server_fd = start_server(AF_INET, SOCK_STREAM, NULL, 60123, 0); in test_connect_force_port() 144 CHECK_FAIL(run_test(cgroup_fd, server_fd, AF_INET, SOCK_STREAM)); in test_connect_force_port() 147 server_fd = start_server(AF_INET6, SOCK_STREAM, NULL, 60124, 0); in test_connect_force_port() 150 CHECK_FAIL(run_test(cgroup_fd, server_fd, AF_INET6, SOCK_STREAM)); in test_connect_force_port()
|
D | select_reuseport.c | 255 if (type == SOCK_STREAM) { in check_data() 303 if (type == SOCK_STREAM) in check_data() 429 if (type == SOCK_STREAM) { in do_test() 634 if (type == SOCK_STREAM) { in prepare_sk_fds() 767 case SOCK_STREAM: in sotype_str() 792 .need_sotype = SOCK_STREAM), in test_config() 826 { SOCK_STREAM, AF_INET }, in test_all() 827 { SOCK_STREAM, AF_INET, BIND_INANY }, in test_all() 828 { SOCK_STREAM, AF_INET6 }, in test_all() 829 { SOCK_STREAM, AF_INET6, BIND_INANY }, in test_all()
|
D | sockmap_ktls.c | 17 s = socket(family, SOCK_STREAM, 0); in tcp_server() 50 cli = socket(family, SOCK_STREAM, 0); in test_sockmap_ktls_disconnect_after_delete() 101 s = socket(family, SOCK_STREAM, 0); in test_sockmap_ktls_update_fails_when_sock_has_ulp()
|
D | cgroup_v1v2.c | 52 server_fd = start_server(AF_INET, SOCK_STREAM, NULL, port, 0); in test_cgroup_v1v2() 67 server_fd = start_server(AF_INET, SOCK_STREAM, NULL, port, 0); in test_cgroup_v1v2()
|
D | cgroup_skb_sk_lookup.c | 16 serv_sk = start_server(AF_INET6, SOCK_STREAM, NULL, 0, 0); in run_lookup_test() 84 out_sk = socket(AF_INET6, SOCK_STREAM, 0); in test_cgroup_skb_sk_lookup()
|
D | lsm_cgroup.c | 178 fd = socket(AF_UNIX, SOCK_STREAM, 0); in test_lsm_cgroup_functional() 184 fd = socket(AF_INET6, SOCK_STREAM, 0); in test_lsm_cgroup_functional() 217 listen_fd = start_server(AF_INET6, SOCK_STREAM, "::1", 0, 0); in test_lsm_cgroup_functional() 268 fd = socket(AF_INET6, SOCK_STREAM, 0); in test_lsm_cgroup_functional()
|
D | sockmap_listen.c | 354 if (sotype == SOCK_STREAM) { in test_insert_opened() 1203 if (sotype == SOCK_STREAM) { in test_reuseport_select_listening() 1273 if (sotype == SOCK_STREAM) { in test_reuseport_select_connected() 1465 case SOCK_STREAM: in sotype_str() 1483 TEST(test_insert_bound, SOCK_STREAM), in test_ops() 1495 TEST(test_destroy_orphan_child, SOCK_STREAM), in test_ops() 1496 TEST(test_syn_recv_insert_delete, SOCK_STREAM), in test_ops() 1497 TEST(test_race_insert_listen, SOCK_STREAM), in test_ops() 1499 TEST(test_clone_after_delete, SOCK_STREAM), in test_ops() 1500 TEST(test_accept_after_delete, SOCK_STREAM), in test_ops() [all …]
|
/Linux-v6.1/tools/testing/selftests/bpf/ |
D | test_sock.c | 111 .type = SOCK_STREAM, 125 .type = SOCK_STREAM, 179 .type = SOCK_STREAM, 192 .type = SOCK_STREAM, 221 .type = SOCK_STREAM, 251 .type = SOCK_STREAM, 281 .type = SOCK_STREAM, 343 .type = SOCK_STREAM, 358 .type = SOCK_STREAM, 371 .type = SOCK_STREAM,
|
D | test_sock_addr.c | 114 SOCK_STREAM, 128 SOCK_STREAM, 142 SOCK_STREAM, 170 SOCK_STREAM, 184 SOCK_STREAM, 198 SOCK_STREAM, 228 SOCK_STREAM, 242 SOCK_STREAM, 256 SOCK_STREAM, 284 SOCK_STREAM, [all …]
|
/Linux-v6.1/tools/testing/selftests/bpf/progs/ |
D | connect4_prog.c | 116 if (ctx->type == SOCK_STREAM) { in set_keepalive() 138 if (ctx->type == SOCK_STREAM) { in set_notsent_lowat() 169 if (ctx->type != SOCK_STREAM && ctx->type != SOCK_DGRAM) in connect_v4_prog() 171 else if (ctx->type == SOCK_STREAM) in connect_v4_prog() 190 if (ctx->type == SOCK_STREAM && set_cc(ctx)) in connect_v4_prog()
|
D | connect6_prog.c | 45 if (ctx->type != SOCK_STREAM && ctx->type != SOCK_DGRAM) in connect_v6_prog() 47 else if (ctx->type == SOCK_STREAM) in connect_v6_prog()
|
/Linux-v6.1/tools/testing/selftests/netfilter/ |
D | connect_close.c | 42 int s = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); in do_connect() 53 int c, one = 1, s = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); in do_accept()
|