Home
last modified time | relevance | path

Searched refs:SOCK_STREAM (Results 1 – 25 of 207) sorted by relevance

123456789

/Linux-v6.6/tools/testing/selftests/net/
Dreuseport_dualstack.c68 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()
Dreuseport_bpf.c173 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 …]
Dbind_timewait.c49 server_fd = socket(AF_INET, SOCK_STREAM, 0); in create_timewait_socket()
61 client_fd = socket(AF_INET, SOCK_STREAM, 0); in create_timewait_socket()
82 fd = socket(AF_INET, SOCK_STREAM, 0);
Dso_netns_cookie.c30 sock1 = socket(AF_INET, SOCK_STREAM, 0); in main()
44 sock2 = socket(AF_INET, SOCK_STREAM, 0); in main()
Dsk_connect_zero_addr.c21 fd1 = socket(AF_INET6, SOCK_STREAM, IPPROTO_IP); in main()
42 fd2 = socket(AF_INET6, SOCK_STREAM, IPPROTO_IP); in main()
Dsocket.c30 { AF_INET, SOCK_STREAM, IPPROTO_TCP, 0, 1 },
33 { AF_INET, SOCK_STREAM, IPPROTO_UDP, -EPROTONOSUPPORT, 1 },
Dsk_bind_sendto_listen.c21 fd1 = socket(AF_INET6, SOCK_STREAM, IPPROTO_IP); in main()
43 fd2 = socket(AF_INET6, SOCK_STREAM, IPPROTO_IP); in main()
Dreuseport_bpf_cpu.c72 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()
Dreuseport_bpf_numa.c68 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()
/Linux-v6.6/tools/testing/selftests/filesystems/epoll/
Depoll_wakeup_test.c169 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.6/tools/testing/selftests/net/af_unix/
Dunix_connect.c32 .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.6/tools/testing/selftests/bpf/prog_tests/
Dvrf_socket_lookup.c217 if (sotype == SOCK_STREAM) in test_lookup()
297 _test_vrf_socket_lookup(skel, SOCK_STREAM, false, false); in test_vrf_socket_lookup()
299 _test_vrf_socket_lookup(skel, SOCK_STREAM, false, false); in test_vrf_socket_lookup()
301 _test_vrf_socket_lookup(skel, SOCK_STREAM, false, false); in test_vrf_socket_lookup()
303 _test_vrf_socket_lookup(skel, SOCK_STREAM, true, false); in test_vrf_socket_lookup()
305 _test_vrf_socket_lookup(skel, SOCK_STREAM, true, false); in test_vrf_socket_lookup()
307 _test_vrf_socket_lookup(skel, SOCK_STREAM, true, false); in test_vrf_socket_lookup()
Dsk_assign.c89 if (type == SOCK_STREAM && CHECK_FAIL(listen(fd, 128) == -1)) in start_server()
150 if (type == SOCK_STREAM) in rcv_msg()
170 if (type == SOCK_STREAM) { in run_test()
197 if (type == SOCK_STREAM && in run_test()
272 TEST("ipv4 tcp port redir", AF_INET, SOCK_STREAM, false), in test_sk_assign()
273 TEST("ipv4 tcp addr redir", AF_INET, SOCK_STREAM, true), in test_sk_assign()
274 TEST("ipv6 tcp port redir", AF_INET6, SOCK_STREAM, false), in test_sk_assign()
275 TEST("ipv6 tcp addr redir", AF_INET6, SOCK_STREAM, true), in test_sk_assign()
Dsk_lookup.c175 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 …]
Dconnect_force_port.c141 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()
Dassign_reuse.c142 if (sotype == SOCK_STREAM) in run_assign_reuse()
152 if (sotype == SOCK_STREAM) in run_assign_reuse()
186 run_assign_reuse(AF_INET, SOCK_STREAM, "127.0.0.1", PORT); in test_assign_reuse()
188 run_assign_reuse(AF_INET6, SOCK_STREAM, "::1", PORT); in test_assign_reuse()
Dselect_reuseport.c255 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()
Dsockmap_ktls.c17 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()
Dsockmap_listen.c64 if (sotype == SOCK_STREAM) { in test_insert_opened()
979 if (sotype == SOCK_STREAM) { in test_reuseport_select_listening()
1049 if (sotype == SOCK_STREAM) { in test_reuseport_select_connected()
1243 case SOCK_STREAM: in sotype_str()
1262 TEST(test_insert_bound, SOCK_STREAM), in test_ops()
1274 TEST(test_destroy_orphan_child, SOCK_STREAM), in test_ops()
1275 TEST(test_syn_recv_insert_delete, SOCK_STREAM), in test_ops()
1276 TEST(test_race_insert_listen, SOCK_STREAM), in test_ops()
1278 TEST(test_clone_after_delete, SOCK_STREAM), in test_ops()
1279 TEST(test_accept_after_delete, SOCK_STREAM), in test_ops()
[all …]
Dcgroup_v1v2.c52 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()
Dsockmap_basic.c34 s = socket(AF_INET, SOCK_STREAM, 0); in connected_socket_v4()
379 s = socket_loopback(AF_INET, SOCK_STREAM); in test_sockmap_skb_verdict_shutdown()
382 err = create_pair(s, AF_INET, SOCK_STREAM, &c1, &p1); in test_sockmap_skb_verdict_shutdown()
444 s = socket_loopback(AF_INET, SOCK_STREAM); in test_sockmap_skb_verdict_fionread()
447 err = create_socket_pairs(s, AF_INET, SOCK_STREAM, &c0, &c1, &p0, &p1); in test_sockmap_skb_verdict_fionread()
495 s = socket_loopback(AF_INET, SOCK_STREAM); in test_sockmap_skb_verdict_peek()
499 err = create_pair(s, AF_INET, SOCK_STREAM, &c1, &p1); in test_sockmap_skb_verdict_peek()
/Linux-v6.6/tools/testing/selftests/bpf/
Dtest_sock.c111 .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,
Dtest_sock_addr.c114 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.6/tools/testing/selftests/bpf/progs/
Dconnect4_prog.c116 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()
/Linux-v6.6/net/handshake/
Dhandshake-test.c152 err = __sock_create(&init_net, PF_INET, SOCK_STREAM, IPPROTO_TCP, in handshake_req_submit_test1()
193 err = __sock_create(&init_net, PF_INET, SOCK_STREAM, IPPROTO_TCP, in handshake_req_submit_test3()
219 err = __sock_create(&init_net, PF_INET, SOCK_STREAM, IPPROTO_TCP, in handshake_req_submit_test4()
254 err = __sock_create(&init_net, PF_INET, SOCK_STREAM, IPPROTO_TCP, in handshake_req_submit_test5()
292 err = __sock_create(&init_net, PF_INET, SOCK_STREAM, IPPROTO_TCP, in handshake_req_submit_test6()
324 err = __sock_create(&init_net, PF_INET, SOCK_STREAM, IPPROTO_TCP, in handshake_req_cancel_test1()
360 err = __sock_create(&init_net, PF_INET, SOCK_STREAM, IPPROTO_TCP, in handshake_req_cancel_test2()
402 err = __sock_create(&init_net, PF_INET, SOCK_STREAM, IPPROTO_TCP, in handshake_req_cancel_test3()
460 err = __sock_create(&init_net, PF_INET, SOCK_STREAM, IPPROTO_TCP, in handshake_req_destroy_test1()

123456789