Home
last modified time | relevance | path

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

1234567

/linux/tools/testing/selftests/net/
A 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()
A Dreuseport_bpf.c175 if (p.protocol == SOCK_STREAM) { in build_recv_group()
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()
625 .protocol = SOCK_STREAM, in main()
[all …]
A Dso_netns_cookie.c30 sock1 = socket(AF_INET, SOCK_STREAM, 0); in main()
44 sock2 = socket(AF_INET, SOCK_STREAM, 0); in main()
A 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()
A 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()
A Dsocket.c28 { AF_INET, SOCK_STREAM, IPPROTO_TCP, 0, 1 },
31 { AF_INET, SOCK_STREAM, IPPROTO_UDP, -EPROTONOSUPPORT, 1 },
A 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()
A Dnettest.c953 if (args->type == SOCK_STREAM) { in send_msg()
1119 if (args->type == SOCK_STREAM) in socket_read()
1134 if (type == SOCK_STREAM) { in stdin_to_socket()
1180 if (args->type != SOCK_STREAM) in msg_loop()
1428 if (args->type == SOCK_STREAM && listen(sd, 1) < 0) { in lsock_init()
1507 if (args->type != SOCK_STREAM) { in do_server()
1635 if (args->type != SOCK_STREAM) in connectsock()
1732 if (args->type == SOCK_STREAM) { in do_client()
1896 .type = SOCK_STREAM, in main()
2054 args.type != SOCK_STREAM)) { in main()
[all …]
A Dreuseport_addr_any.c87 if (proto == SOCK_STREAM && listen(rcv_fds[i], 10)) in build_rcv_fd()
178 if (proto == SOCK_STREAM || proto == SOCK_DCCP) { in receive_once()
273 test_proto(SOCK_STREAM, "TCP"); in main()
/linux/tools/testing/selftests/filesystems/epoll/
A 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()
848 ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, sfd), 0); in TEST()
888 ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, sfd), 0); in TEST()
928 ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, sfd), 0); in TEST()
968 ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, sfd), 0); in TEST()
1009 ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, sfd), 0); in TEST()
1057 ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, sfd), 0); in TEST()
1105 ASSERT_EQ(socketpair(AF_UNIX, SOCK_STREAM, 0, sfd), 0); in TEST()
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
A 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()
A Dsk_lookup.c679 .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()
740 .sotype = SOCK_STREAM, in test_redirect_lookup()
750 .sotype = SOCK_STREAM, in test_redirect_lookup()
915 .sotype = SOCK_STREAM, in test_drop_on_lookup()
[all …]
A 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()
A Dselect_reuseport.c265 if (type == SOCK_STREAM) { in check_data()
313 if (type == SOCK_STREAM) in check_data()
439 if (type == SOCK_STREAM) { in do_test()
644 if (type == SOCK_STREAM) { in prepare_sk_fds()
777 case SOCK_STREAM: in sotype_str()
802 .need_sotype = SOCK_STREAM), in test_config()
836 { SOCK_STREAM, AF_INET }, in test_all()
837 { SOCK_STREAM, AF_INET, BIND_INANY }, in test_all()
838 { SOCK_STREAM, AF_INET6 }, in test_all()
839 { SOCK_STREAM, AF_INET6, BIND_INANY }, in test_all()
A Dsockmap_listen.c354 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()
1467 case SOCK_STREAM: in sotype_str()
1485 TEST(test_insert_bound, SOCK_STREAM), in test_ops()
1497 TEST(test_destroy_orphan_child, SOCK_STREAM), in test_ops()
1499 TEST(test_race_insert_listen, SOCK_STREAM), in test_ops()
1501 TEST(test_clone_after_delete, SOCK_STREAM), in test_ops()
1502 TEST(test_accept_after_delete, SOCK_STREAM), in test_ops()
1996 test_ops(skel, map, family, SOCK_STREAM); in run_tests()
[all …]
A 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()
A 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()
A 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()
/linux/tools/testing/selftests/bpf/
A 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,
A Dtest_sock_addr.c115 SOCK_STREAM,
129 SOCK_STREAM,
143 SOCK_STREAM,
171 SOCK_STREAM,
185 SOCK_STREAM,
199 SOCK_STREAM,
229 SOCK_STREAM,
243 SOCK_STREAM,
257 SOCK_STREAM,
285 SOCK_STREAM,
[all …]
/linux/tools/testing/selftests/bpf/progs/
A Dconnect4_prog.c115 if (ctx->type == SOCK_STREAM) { in set_keepalive()
137 if (ctx->type == SOCK_STREAM) { in set_notsent_lowat()
168 if (ctx->type != SOCK_STREAM && ctx->type != SOCK_DGRAM) in connect_v4_prog()
170 else if (ctx->type == SOCK_STREAM) in connect_v4_prog()
189 if (ctx->type == SOCK_STREAM && set_cc(ctx)) in connect_v4_prog()
A Dconnect6_prog.c45 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/security/tomoyo/
A 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()
/linux/samples/bpf/
A 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()
/linux/net/llc/
A Daf_llc.c111 else if (sk->sk_type == SOCK_STREAM) in llc_ui_header_len()
183 if (likely(sock->type == SOCK_DGRAM || sock->type == SOCK_STREAM)) { in llc_ui_create()
474 if (unlikely(sk->sk_type != SOCK_STREAM)) in llc_ui_connect()
542 if (unlikely(sk->sk_type != SOCK_STREAM)) in llc_ui_listen()
686 if (unlikely(sk->sk_type != SOCK_STREAM)) in llc_ui_accept()
755 if (unlikely(sk->sk_type == SOCK_STREAM && sk->sk_state == TCP_LISTEN)) in llc_ui_recvmsg()
814 if (sk->sk_type == SOCK_STREAM && sk->sk_state == TCP_CLOSE) { in llc_ui_recvmsg()
866 if (sk->sk_type != SOCK_STREAM) in llc_ui_recvmsg()
976 if (!(sk->sk_type == SOCK_STREAM && !addr->sllc_ua)) in llc_ui_sendmsg()

Completed in 44 milliseconds

1234567