Home
last modified time | relevance | path

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

12345678

/kernel/linux/linux-5.10/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.c175 if (p.protocol == SOCK_STREAM) { in build_recv_group()
246 if (p.protocol == SOCK_STREAM) { in test_recv_order()
577 .protocol = SOCK_STREAM, in main()
584 .protocol = SOCK_STREAM, in main()
590 .protocol = SOCK_STREAM, in main()
594 .protocol = SOCK_STREAM, in main()
601 .protocol = SOCK_STREAM, in main()
608 .protocol = SOCK_STREAM, in main()
614 .protocol = SOCK_STREAM, in main()
618 .protocol = SOCK_STREAM, in main()
[all …]
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()
249 test(rcv_fd, nodes, AF_INET, SOCK_STREAM); in main()
252 test(rcv_fd, nodes, AF_INET6, SOCK_STREAM); in main()
Dsocket.c28 { AF_INET, SOCK_STREAM, IPPROTO_TCP, 0, 1 },
31 { AF_INET, SOCK_STREAM, IPPROTO_UDP, -EPROTONOSUPPORT, 1 },
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()
Dtxtimestamp.c58 static int cfg_proto = SOCK_STREAM;
144 stepsize = cfg_proto == SOCK_STREAM ? cfg_payload_len : 1; in validate_key()
537 if (cfg_proto == SOCK_STREAM) { in do_test()
599 if (cfg_proto != SOCK_STREAM) { in do_test()
791 if (cfg_proto != SOCK_STREAM && cfg_payload_len > 1472) in parse_opt()
855 if (type == SOCK_STREAM && listen(fd, 10)) in do_listen()
879 if (cfg_proto == SOCK_STREAM) { in do_main()
Dnettest.c721 if (args->type == SOCK_STREAM) { in send_msg()
887 if (args->type == SOCK_STREAM) in socket_read()
902 if (type == SOCK_STREAM) { in stdin_to_socket()
948 if (args->type != SOCK_STREAM) in msg_loop()
1161 if (args->type == SOCK_STREAM && listen(sd, 1) < 0) { in lsock_init()
1209 if (args->type != SOCK_STREAM) { in do_server()
1333 if (args->type != SOCK_STREAM) in connectsock()
1408 if (args->type == SOCK_STREAM) { in do_client()
1617 .type = SOCK_STREAM, in main()
1762 ((!args.has_remote_ip && !args.prefix_len) || args.type != SOCK_STREAM)) { in main()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/filesystems/epoll/
Depoll_wakeup_test.c154 ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, sfd), 0); in TEST()
185 ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, sfd), 0); in TEST()
216 ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &sfd[0]), 0); in TEST()
217 ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &sfd[2]), 0); in TEST()
254 ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &sfd[0]), 0); in TEST()
255 ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &sfd[2]), 0); in TEST()
293 ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &sfd[0]), 0); in TEST()
332 ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &sfd[0]), 0); in TEST()
372 ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &sfd[0]), 0); in TEST()
373 ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, &sfd[2]), 0); in TEST()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
Dsk_assign.c73 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()
Dsk_lookup.c176 if (sotype == SOCK_STREAM) { in make_server()
200 if (sotype == SOCK_STREAM) { in make_server()
656 if (t->sotype == SOCK_STREAM) in run_lookup_prog()
679 .sotype = SOCK_STREAM, in test_redirect_lookup()
687 .sotype = SOCK_STREAM, in test_redirect_lookup()
696 .sotype = SOCK_STREAM, in test_redirect_lookup()
706 .sotype = SOCK_STREAM, in test_redirect_lookup()
715 .sotype = SOCK_STREAM, in test_redirect_lookup()
723 .sotype = SOCK_STREAM, in test_redirect_lookup()
731 .sotype = SOCK_STREAM, in test_redirect_lookup()
[all …]
Dconnect_force_port.c140 server_fd = start_server(AF_INET, SOCK_STREAM, NULL, 60123, 0); in test_connect_force_port()
143 CHECK_FAIL(run_test(cgroup_fd, server_fd, AF_INET, SOCK_STREAM)); in test_connect_force_port()
146 server_fd = start_server(AF_INET6, SOCK_STREAM, NULL, 60124, 0); in test_connect_force_port()
149 CHECK_FAIL(run_test(cgroup_fd, server_fd, AF_INET6, SOCK_STREAM)); in test_connect_force_port()
Dselect_reuseport.c264 if (type == SOCK_STREAM) { in check_data()
312 if (type == SOCK_STREAM) in check_data()
438 if (type == SOCK_STREAM) { in do_test()
643 if (type == SOCK_STREAM) { in prepare_sk_fds()
776 case SOCK_STREAM: in sotype_str()
801 .need_sotype = SOCK_STREAM), in test_config()
835 { SOCK_STREAM, AF_INET }, in test_all()
836 { SOCK_STREAM, AF_INET, BIND_INANY }, in test_all()
837 { SOCK_STREAM, AF_INET6 }, in test_all()
838 { SOCK_STREAM, AF_INET6, BIND_INANY }, in test_all()
Dcgroup_skb_sk_lookup.c16 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()
Dsockmap_ktls.c16 s = socket(family, SOCK_STREAM, 0); in tcp_server()
55 cli = socket(family, SOCK_STREAM, 0); in test_sockmap_ktls_disconnect_after_delete()
Dsockmap_listen.c1203 if (sotype == SOCK_STREAM) { in test_reuseport_select_listening()
1273 if (sotype == SOCK_STREAM) { in test_reuseport_select_connected()
1472 case SOCK_STREAM: in sotype_str()
1490 TEST(test_insert_bound, SOCK_STREAM), in test_ops()
1502 TEST(test_destroy_orphan_child, SOCK_STREAM), in test_ops()
1503 TEST(test_syn_recv_insert_delete, SOCK_STREAM), in test_ops()
1504 TEST(test_race_insert_listen, SOCK_STREAM), in test_ops()
1506 TEST(test_clone_after_delete, SOCK_STREAM), in test_ops()
1507 TEST(test_accept_after_delete, SOCK_STREAM), in test_ops()
1508 TEST(test_accept_before_delete, SOCK_STREAM), in test_ops()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/
Dtest_sock.c125 SOCK_STREAM,
139 SOCK_STREAM,
209 SOCK_STREAM,
223 SOCK_STREAM,
253 SOCK_STREAM,
283 SOCK_STREAM,
297 SOCK_STREAM,
311 SOCK_STREAM,
Dtest_sock_addr.c111 SOCK_STREAM,
125 SOCK_STREAM,
139 SOCK_STREAM,
167 SOCK_STREAM,
181 SOCK_STREAM,
195 SOCK_STREAM,
225 SOCK_STREAM,
239 SOCK_STREAM,
253 SOCK_STREAM,
281 SOCK_STREAM,
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
Dconnect4_prog.c117 if (ctx->type == SOCK_STREAM) { in set_keepalive()
139 if (ctx->type == SOCK_STREAM) { in set_notsent_lowat()
170 if (ctx->type != SOCK_STREAM && ctx->type != SOCK_DGRAM) in connect_v4_prog()
172 else if (ctx->type == SOCK_STREAM) in connect_v4_prog()
191 if (ctx->type == SOCK_STREAM && set_cc(ctx)) in connect_v4_prog()
Dconnect6_prog.c47 if (ctx->type != SOCK_STREAM && ctx->type != SOCK_DGRAM) in connect_v6_prog()
49 else if (ctx->type == SOCK_STREAM) in connect_v6_prog()
/kernel/liteos_m/components/net/test/
Dnet_socket_test_013.c51 lsfd = socket(AF_INET, SOCK_STREAM, 0); in SampleTcpServer()
87 sfd = socket(AF_INET, SOCK_STREAM, 0); in SampleTcpClient()
Dnet_socket_test_012.c58 lsfd = socket(AF_INET, SOCK_STREAM, 0); in SampleTcpServer()
95 sfd = socket(AF_INET, SOCK_STREAM, 0); in SampleTcpClient()
Dnet_socket_test_010.c58 lsfd = socket(AF_INET, SOCK_STREAM, 0); in SampleTcpServer()
112 sfd = socket(AF_INET, SOCK_STREAM, 0); in SampleTcpClient()
/kernel/linux/linux-5.10/samples/bpf/
Dtest_probe_write_user_user.c59 assert((serverfd = socket(AF_INET, SOCK_STREAM, 0)) > 0); in main()
60 assert((clientfd = socket(AF_INET, SOCK_STREAM, 0)) > 0); in main()
/kernel/linux/linux-5.10/security/tomoyo/
Dnetwork.c34 [SOCK_STREAM] = "stream",
140 [SOCK_STREAM] = {
163 [SOCK_STREAM] = {
658 if (!family || (type != SOCK_STREAM && type != SOCK_SEQPACKET)) in tomoyo_socket_listen_permission()
701 case SOCK_STREAM: in tomoyo_socket_connect_permission()
733 case SOCK_STREAM: in tomoyo_socket_bind_permission()
/kernel/liteos_a/testsuites/unittest/container/smoke/
DIt_net_container_006.cpp50 client = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); in TcpClient()
96 server = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); in ChildFunc()

12345678