/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | sock_addr.c | 528 SOCK_DGRAM, 544 SOCK_DGRAM, 624 SOCK_DGRAM, 640 SOCK_DGRAM, 722 SOCK_DGRAM, 738 SOCK_DGRAM, 786 SOCK_DGRAM, 802 SOCK_DGRAM, 852 SOCK_DGRAM, 868 SOCK_DGRAM, [all …]
|
H A D | sk_lookup.c | 115 if (co->sotype == SOCK_DGRAM) { in setsockopts() 124 if (co->sotype == SOCK_DGRAM && co->family == AF_INET6) { in setsockopts() 355 fd = start_server_addr(SOCK_DGRAM, dst_addr, sizeof(*dst_addr), NULL); in udp_recv_send() 693 .sotype = SOCK_DGRAM, in test_redirect_lookup() 701 .sotype = SOCK_DGRAM, in test_redirect_lookup() 710 .sotype = SOCK_DGRAM, in test_redirect_lookup() 720 .sotype = SOCK_DGRAM, in test_redirect_lookup() 731 .sotype = SOCK_DGRAM, in test_redirect_lookup() 740 .sotype = SOCK_DGRAM, in test_redirect_lookup() 748 .sotype = SOCK_DGRAM, in test_redirect_lookup() [all …]
|
H A D | udp_limit.c | 32 fd1 = socket(AF_INET, SOCK_DGRAM, 0); in test_udp_limit() 36 fd2 = socket(AF_INET, SOCK_DGRAM, 0); in test_udp_limit() 44 fd1 = socket(AF_INET, SOCK_DGRAM, 0); in test_udp_limit()
|
H A D | connect_force_port.c | 153 server_fd = start_server(AF_INET, SOCK_DGRAM, NULL, 60123, 0); in test_connect_force_port() 156 CHECK_FAIL(run_test(cgroup_fd, server_fd, AF_INET, SOCK_DGRAM)); in test_connect_force_port() 159 server_fd = start_server(AF_INET6, SOCK_DGRAM, NULL, 60124, 0); in test_connect_force_port() 162 CHECK_FAIL(run_test(cgroup_fd, server_fd, AF_INET6, SOCK_DGRAM)); in test_connect_force_port()
|
H A D | sk_assign.c | 154 else if (type == SOCK_DGRAM && in run_test() 229 TEST("ipv4 udp port redir", AF_INET, SOCK_DGRAM, false), in test_sk_assign() 230 TEST("ipv4 udp addr redir", AF_INET, SOCK_DGRAM, true), in test_sk_assign() 231 TEST("ipv6 udp port redir", AF_INET6, SOCK_DGRAM, false), in test_sk_assign() 232 TEST("ipv6 udp addr redir", AF_INET6, SOCK_DGRAM, true), in test_sk_assign()
|
H A D | sockmap_listen.c | 1114 if (sotype == SOCK_DGRAM) { in test_reuseport_select_connected() 1181 if (sotype == SOCK_DGRAM) { in test_reuseport_mixed_groups() 1269 case SOCK_DGRAM: in sotype_str() 1651 err = inet_socketpair(family, SOCK_DGRAM, &p0, &c0); in udp_redir_to_connected() 1654 err = inet_socketpair(family, SOCK_DGRAM, &p1, &c1); in udp_redir_to_connected() 1740 inet_unix_redir_to_connected(family, SOCK_DGRAM, sock_map, verdict_map, in inet_unix_skb_redir_to_connected() 1745 inet_unix_redir_to_connected(family, SOCK_DGRAM, sock_map, verdict_map, in inet_unix_skb_redir_to_connected() 1793 unix_inet_redir_to_connected(family, SOCK_DGRAM, in unix_inet_skb_redir_to_connected() 1800 unix_inet_redir_to_connected(family, SOCK_DGRAM, in unix_inet_skb_redir_to_connected() 1813 unix_inet_redir_to_connected(family, SOCK_DGRAM, in unix_inet_skb_redir_to_connected() [all …]
|
H A D | sock_iter_batch.c | 128 do_test(SOCK_DGRAM, true); in test_sock_iter_batch() 129 do_test(SOCK_DGRAM, false); in test_sock_iter_batch()
|
H A D | sock_destroy.c | 117 serv = start_server(AF_INET6, SOCK_DGRAM, NULL, 0, 0); in test_udp_client() 153 listen_fds = start_reuseport_server(AF_INET6, SOCK_DGRAM, in test_udp_server()
|
H A D | assign_reuse.c | 190 run_assign_reuse(AF_INET, SOCK_DGRAM, "127.0.0.1", PORT); in test_assign_reuse() 192 run_assign_reuse(AF_INET6, SOCK_DGRAM, "::1", PORT); in test_assign_reuse()
|
H A D | crypto_sanity.c | 147 sockfd = socket(AF_INET6, SOCK_DGRAM, 0); in test_crypto_sanity() 172 sockfd = socket(AF_INET6, SOCK_DGRAM, 0); in test_crypto_sanity()
|
/linux/tools/testing/selftests/net/ |
H A D | reuseport_dualstack.c | 164 build_rcv_fd(AF_INET, SOCK_DGRAM, rcv_fds, 5); in main() 165 build_rcv_fd(AF_INET6, SOCK_DGRAM, &(rcv_fds[5]), 5); in main() 166 test(rcv_fds, 10, SOCK_DGRAM); in main() 171 build_rcv_fd(AF_INET6, SOCK_DGRAM, rcv_fds, 5); in main() 172 build_rcv_fd(AF_INET, SOCK_DGRAM, &(rcv_fds[5]), 5); in main() 173 test(rcv_fds, 10, SOCK_DGRAM); in main() 181 build_rcv_fd(AF_INET, SOCK_DGRAM, rcv_fds, 16); in main() 182 build_rcv_fd(AF_INET6, SOCK_DGRAM, &(rcv_fds[16]), 16); in main() 183 test(rcv_fds, 32, SOCK_DGRAM); in main() 188 build_rcv_fd(AF_INET6, SOCK_DGRAM, rcv_fds, 16); in main() [all …]
|
H A D | reuseport_bpf.c | 393 fd1 = socket(AF_INET, SOCK_DGRAM, 0); in test_filter_without_bind() 396 fd2 = socket(AF_INET, SOCK_DGRAM, 0); in test_filter_without_bind() 467 .protocol = SOCK_DGRAM, in main() 474 .protocol = SOCK_DGRAM, in main() 481 .protocol = SOCK_DGRAM, in main() 488 .protocol = SOCK_DGRAM, in main() 494 .protocol = SOCK_DGRAM, in main() 498 .protocol = SOCK_DGRAM, in main() 505 .protocol = SOCK_DGRAM, in main() 512 .protocol = SOCK_DGRAM, in main() [all …]
|
H A D | socket.c | 31 { AF_INET, SOCK_DGRAM, IPPROTO_TCP, -EPROTONOSUPPORT, 1 }, 32 { AF_INET, SOCK_DGRAM, IPPROTO_UDP, 0, 1 },
|
H A D | psock_lib.h | 81 fds[0] = socket(PF_INET, SOCK_DGRAM, 0); in pair_udp_open() 82 fds[1] = socket(PF_INET, SOCK_DGRAM, 0); in pair_udp_open()
|
H A D | sk_so_peek_off.c | 23 int type = (proto == IPPROTO_TCP ? SOCK_STREAM : SOCK_DGRAM); in sk_peek_offset_probe() 59 int type = (proto == IPPROTO_TCP ? SOCK_STREAM : SOCK_DGRAM); in sk_peek_offset_test()
|
/linux/tools/testing/selftests/landlock/ |
H A D | scoped_abstract_unix_test.c | 109 dgram_client = socket(AF_UNIX, SOCK_DGRAM, 0); in TEST_F() 144 dgram_server = socket(AF_UNIX, SOCK_DGRAM, 0); in TEST_F() 209 dgram_server = socket(AF_UNIX, SOCK_DGRAM, 0); in TEST_F() 240 dgram_client = socket(AF_UNIX, SOCK_DGRAM, 0); in TEST_F() 358 dgram_client = socket(AF_UNIX, SOCK_DGRAM, 0); in TEST_F() 422 dgram_server_child = socket(AF_UNIX, SOCK_DGRAM, 0); in TEST_F() 449 dgram_server_parent = socket(AF_UNIX, SOCK_DGRAM, 0); in TEST_F() 485 .type = SOCK_DGRAM, in FIXTURE_VARIANT_ADD() 492 .type = SOCK_DGRAM, in FIXTURE_VARIANT_ADD() 704 ASSERT_EQ(0, socketpair(AF_UNIX, SOCK_DGRAM, 0, unnamed_sockets)); in TEST_F() [all …]
|
H A D | net_test.c | 318 .type = SOCK_DGRAM, in FIXTURE_VARIANT_ADD() 328 .type = SOCK_DGRAM, in FIXTURE_VARIANT_ADD() 348 .type = SOCK_DGRAM, in FIXTURE_VARIANT_ADD() 378 .type = SOCK_DGRAM, in FIXTURE_VARIANT_ADD() 388 .type = SOCK_DGRAM, in FIXTURE_VARIANT_ADD() 408 .type = SOCK_DGRAM, in FIXTURE_VARIANT_ADD() 859 .type = SOCK_DGRAM, in FIXTURE_VARIANT_ADD() 866 .type = SOCK_DGRAM, in FIXTURE_VARIANT_ADD() 921 unix_dgram_fd = socket(AF_UNIX, SOCK_DGRAM | SOCK_CLOEXEC, 0); in TEST_F()
|
/linux/tools/testing/selftests/net/af_unix/ |
H A D | unix_connect.c | 68 .type = SOCK_DGRAM, in FIXTURE_VARIANT_ADD() 77 .type = SOCK_DGRAM, in FIXTURE_VARIANT_ADD() 86 .type = SOCK_DGRAM, in FIXTURE_VARIANT_ADD() 95 .type = SOCK_DGRAM, in FIXTURE_VARIANT_ADD()
|
H A D | scm_pidfd.c | 246 .type = SOCK_DGRAM, in FIXTURE_VARIANT_ADD() 252 .type = SOCK_DGRAM, in FIXTURE_VARIANT_ADD() 310 if (variant->type == SOCK_DGRAM) { in client() 344 if (variant->type == SOCK_DGRAM) in client() 416 if (variant->type == SOCK_DGRAM) { in TEST_F()
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | udp_limit.c | 21 if (ctx->type != SOCK_DGRAM) in sock() 49 if (ctx->type != SOCK_DGRAM) in sock_release()
|
H A D | recvmsg4_prog.c | 28 if (ctx->type != SOCK_STREAM && ctx->type != SOCK_DGRAM) in recvmsg4_prog()
|
/linux/net/rxrpc/ |
H A D | utils.c | 22 srx->transport_type = SOCK_DGRAM; in rxrpc_extract_addr_from_skb() 31 srx->transport_type = SOCK_DGRAM; in rxrpc_extract_addr_from_skb()
|
/linux/security/tomoyo/ |
H A D | network.c | 35 [SOCK_DGRAM] = "dgram", 147 [SOCK_DGRAM] = { 170 [SOCK_DGRAM] = { 697 case SOCK_DGRAM: in tomoyo_socket_connect_permission() 734 case SOCK_DGRAM: in tomoyo_socket_bind_permission() 766 (type != SOCK_DGRAM && type != SOCK_RAW)) in tomoyo_socket_sendmsg_permission()
|
/linux/arch/mips/include/asm/ |
H A D | socket.h | 30 SOCK_DGRAM = 1, enumerator
|
/linux/net/unix/ |
H A D | unix_bpf.c | 44 if (sk->sk_type == SOCK_DGRAM) in __unix_recvmsg() 149 if (sk->sk_type != SOCK_DGRAM) in unix_dgram_bpf_update_proto()
|