/linux-6.3-rc2/tools/testing/selftests/net/ |
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() 183 test(rcv_fds, 32, SOCK_DGRAM); in main() 188 build_rcv_fd(AF_INET6, SOCK_DGRAM, rcv_fds, 16); in main() 189 build_rcv_fd(AF_INET, SOCK_DGRAM, &(rcv_fds[16]), 16); in main() [all …]
|
A D | reuseport_bpf.c | 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() 519 .protocol = SOCK_DGRAM, in main() 526 .protocol = SOCK_DGRAM, in main() [all …]
|
A D | socket.c | 31 { AF_INET, SOCK_DGRAM, IPPROTO_TCP, -EPROTONOSUPPORT, 1 }, 32 { AF_INET, SOCK_DGRAM, IPPROTO_UDP, 0, 1 },
|
A D | psock_lib.h | 79 fds[0] = socket(PF_INET, SOCK_DGRAM, 0); in pair_udp_open() 80 fds[1] = socket(PF_INET, SOCK_DGRAM, 0); in pair_udp_open()
|
A D | ipv6_flowlabel.c | 228 fdt = socket(PF_INET6, SOCK_DGRAM, prot); in main() 232 fdr = use_ping ? fdt : socket(PF_INET6, SOCK_DGRAM, 0); in main()
|
/linux-6.3-rc2/tools/testing/selftests/bpf/ |
A D | test_sock_addr.c | 156 SOCK_DGRAM, 212 SOCK_DGRAM, 270 SOCK_DGRAM, 326 SOCK_DGRAM, 342 SOCK_DGRAM, 356 SOCK_DGRAM, 370 SOCK_DGRAM, 384 SOCK_DGRAM, 398 SOCK_DGRAM, 412 SOCK_DGRAM, [all …]
|
A D | xdp_hw_metadata.c | 275 fd = socket(AF_UNIX, SOCK_DGRAM, 0); in rxq_num() 296 fd = socket(AF_UNIX, SOCK_DGRAM, 0); in hwtstamp_ioctl() 414 server_fd = start_server(AF_INET6, SOCK_DGRAM, NULL, 9092, 1000); in main()
|
/linux-6.3-rc2/tools/testing/selftests/net/af_unix/ |
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()
|
/linux-6.3-rc2/tools/testing/selftests/bpf/prog_tests/ |
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()
|
A D | sk_lookup.c | 758 .sotype = SOCK_DGRAM, in test_redirect_lookup() 766 .sotype = SOCK_DGRAM, in test_redirect_lookup() 775 .sotype = SOCK_DGRAM, in test_redirect_lookup() 785 .sotype = SOCK_DGRAM, in test_redirect_lookup() 796 .sotype = SOCK_DGRAM, in test_redirect_lookup() 805 .sotype = SOCK_DGRAM, in test_redirect_lookup() 813 .sotype = SOCK_DGRAM, in test_redirect_lookup() 821 .sotype = SOCK_DGRAM, in test_redirect_lookup() 830 .sotype = SOCK_DGRAM, in test_redirect_lookup() 840 .sotype = SOCK_DGRAM, in test_redirect_lookup() [all …]
|
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()
|
A D | sk_assign.c | 201 else if (type == SOCK_DGRAM && in run_test() 276 TEST("ipv4 udp port redir", AF_INET, SOCK_DGRAM, false), in test_sk_assign() 277 TEST("ipv4 udp addr redir", AF_INET, SOCK_DGRAM, true), in test_sk_assign() 278 TEST("ipv6 udp port redir", AF_INET6, SOCK_DGRAM, false), in test_sk_assign() 279 TEST("ipv6 udp addr redir", AF_INET6, SOCK_DGRAM, true), in test_sk_assign()
|
A D | sockmap_listen.c | 308 if (sotype & SOCK_DGRAM) in socket_loopback_reuseport() 1354 if (sotype == SOCK_DGRAM) { in test_reuseport_select_connected() 1421 if (sotype == SOCK_DGRAM) { in test_reuseport_mixed_groups() 1507 case SOCK_DGRAM: in sotype_str() 1786 err = inet_socketpair(family, SOCK_DGRAM, &p0, &c0); in udp_redir_to_connected() 1789 err = inet_socketpair(family, SOCK_DGRAM, &p1, &c1); in udp_redir_to_connected() 1877 err = inet_socketpair(family, SOCK_DGRAM, &p1, &c1); in inet_unix_redir_to_connected() 1953 err = inet_socketpair(family, SOCK_DGRAM, &p0, &c0); in unix_inet_redir_to_connected() 2040 test_ops(skel, map, family, SOCK_DGRAM); in run_tests() 2043 test_reuseport(skel, map, family, SOCK_DGRAM); in run_tests() [all …]
|
/linux-6.3-rc2/tools/testing/selftests/bpf/progs/ |
A D | udp_limit.c | 22 if (ctx->type != SOCK_DGRAM) in sock() 51 if (ctx->type != SOCK_DGRAM) in sock_release()
|
A D | recvmsg4_prog.c | 30 if (ctx->type != SOCK_STREAM && ctx->type != SOCK_DGRAM) in recvmsg4_prog()
|
A D | sendmsg4_prog.c | 26 if (ctx->type != SOCK_DGRAM) in sendmsg_v4_prog()
|
A D | recvmsg6_prog.c | 33 if (ctx->type != SOCK_STREAM && ctx->type != SOCK_DGRAM) in recvmsg6_prog()
|
A D | sendmsg6_prog.c | 28 if (ctx->type != SOCK_DGRAM) in sendmsg_v6_prog()
|
/linux-6.3-rc2/samples/bpf/ |
A D | sock_flags.bpf.c | 22 sk->type == SOCK_DGRAM && in bpf_prog1() 40 sk->type == SOCK_DGRAM && in bpf_prog2()
|
A D | cookie_uid_helper_example.c | 230 s_rcv = socket(PF_INET, SOCK_DGRAM, 0); in udp_client() 239 s_send = socket(PF_INET, SOCK_DGRAM, 0); in udp_client()
|
/linux-6.3-rc2/net/rxrpc/ |
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-6.3-rc2/security/tomoyo/ |
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-6.3-rc2/arch/mips/include/asm/ |
A D | socket.h | 30 SOCK_DGRAM = 1, enumerator
|
/linux-6.3-rc2/net/unix/ |
A D | unix_bpf.c | 44 if (sk->sk_type == SOCK_DGRAM) in __unix_recvmsg() 146 if (sk->sk_type != SOCK_DGRAM) in unix_dgram_bpf_update_proto()
|
/linux-6.3-rc2/fs/afs/ |
A D | addr_list.c | 51 srx->transport_type = SOCK_DGRAM; in afs_alloc_addrlist() 303 srx->transport_type = SOCK_DGRAM; in afs_merge_fs_addr4() 343 srx->transport_type = SOCK_DGRAM; in afs_merge_fs_addr6()
|