| /linux/tools/testing/selftests/net/ |
| H A D | reuseport_dualstack.c | 175 build_rcv_fd(AF_INET, SOCK_DGRAM, rcv_fds, 5); in main() 176 build_rcv_fd(AF_INET6, SOCK_DGRAM, &(rcv_fds[5]), 5); in main() 177 test(rcv_fds, 10, SOCK_DGRAM); in main() 182 build_rcv_fd(AF_INET6, SOCK_DGRAM, rcv_fds, 5); in main() 183 build_rcv_fd(AF_INET, SOCK_DGRAM, &(rcv_fds[5]), 5); in main() 184 test(rcv_fds, 10, SOCK_DGRAM); in main() 192 build_rcv_fd(AF_INET, SOCK_DGRAM, rcv_fds, 16); in main() 193 build_rcv_fd(AF_INET6, SOCK_DGRAM, &(rcv_fds[16]), 16); in main() 194 test(rcv_fds, 32, SOCK_DGRAM); in main() 199 build_rcv_fd(AF_INET6, SOCK_DGRAM, rcv_fd in main() [all...] |
| H A D | reuseport_bpf.c | 394 fd1 = socket(AF_INET, SOCK_DGRAM, 0); in test_filter_without_bind() 397 fd2 = socket(AF_INET, SOCK_DGRAM, 0); in test_filter_without_bind() 478 .protocol = SOCK_DGRAM, in main() 485 .protocol = SOCK_DGRAM, in main() 492 .protocol = SOCK_DGRAM, in main() 499 .protocol = SOCK_DGRAM, in main() 505 .protocol = SOCK_DGRAM, in main() 509 .protocol = SOCK_DGRAM, in main() 516 .protocol = SOCK_DGRAM, in main() 523 .protocol = SOCK_DGRAM, in main() [all...] |
| H A D | ipv6_flowlabel_mgr.c | 189 fd = socket(PF_INET6, SOCK_DGRAM, 0); in TEST_F() 203 fd = socket(PF_INET6, SOCK_DGRAM, 0); in TEST_F() 217 fd = socket(PF_INET6, SOCK_DGRAM, 0); in TEST_F() 231 fd = socket(PF_INET6, SOCK_DGRAM, 0); in TEST_F() 268 fd = socket(PF_INET6, SOCK_DGRAM, 0); in TEST_F() 303 fd = socket(PF_INET6, SOCK_DGRAM, 0); in TEST_F() 353 fd = socket(PF_INET6, SOCK_DGRAM, 0); in TEST_F() 384 fd = socket(PF_INET6, SOCK_DGRAM, 0); in TEST_F() 400 fd = socket(PF_INET6, SOCK_DGRAM, 0); in TEST_F() 425 fd = socket(PF_INET6, SOCK_DGRAM, 0); in TEST_F()
|
| 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 | 77 fds[0] = socket(PF_INET, SOCK_DGRAM, 0); in pair_udp_open() 78 fds[1] = socket(PF_INET, SOCK_DGRAM, 0); in pair_udp_open()
|
| H A D | rtnetlink.py | 56 s1 = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) 57 s2 = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) 90 s1 = socket.socket(socket.AF_INET6, socket.SOCK_DGRAM) 91 s2 = socket.socket(socket.AF_INET6, socket.SOCK_DGRAM)
|
| 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/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 | 171 server_fd = start_server(AF_INET, SOCK_DGRAM, NULL, 0, 0); 174 CHECK_FAIL(run_test(cgroup_fd, server_fd, AF_INET, SOCK_DGRAM)); 177 server_fd = start_server(AF_INET6, SOCK_DGRAM, NULL, 0, 0); 180 CHECK_FAIL(run_test(cgroup_fd, server_fd, AF_INET6, SOCK_DGRAM));
|
| H A D | sk_assign.c | 148 * to the listen socket. SOCK_DGRAM on the other hand is connectionless in run_test() 156 else if (type == SOCK_DGRAM && in run_test() 231 TEST("ipv4 udp port redir", AF_INET, SOCK_DGRAM, false), in test_sk_assign() 232 TEST("ipv4 udp addr redir", AF_INET, SOCK_DGRAM, true), in test_sk_assign() 233 TEST("ipv6 udp port redir", AF_INET6, SOCK_DGRAM, false), in test_sk_assign() 234 TEST("ipv6 udp addr redir", AF_INET6, SOCK_DGRAM, true), in test_sk_assign()
|
| H A D | socket_helpers.h | 253 if (sotype & SOCK_DGRAM) in socket_loopback_reuseport() 372 case SOCK_DGRAM: in create_pair() 436 case SOCK_DGRAM: in socket_kind_to_str() 444 case SOCK_DGRAM: in socket_kind_to_str() 452 case SOCK_DGRAM: in socket_kind_to_str() 462 case SOCK_DGRAM: in socket_kind_to_str()
|
| H A D | ksock.c | 40 env->rfd = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); in ksock_test_env_setup() 96 tfd = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); in test_ksock_lsm()
|
| H A D | lwt_seg6local.c | 132 sfd = start_server_str(AF_INET6, SOCK_DGRAM, "fb00::6", SERVER_PORT, NULL); in test_lwt_seg6local() 142 cfd = start_server_str(AF_INET6, SOCK_DGRAM, "fb00::1", CLIENT_PORT, NULL); in test_lwt_seg6local()
|
| H A D | sock_iter_batch.c | 620 .sock_type = SOCK_DGRAM, 628 .sock_type = SOCK_DGRAM, 636 .sock_type = SOCK_DGRAM, 644 .sock_type = SOCK_DGRAM, 655 .sock_type = SOCK_DGRAM, 986 do_test(SOCK_DGRAM, true); in test_sock_iter_batch() 987 do_test(SOCK_DGRAM, false); in test_sock_iter_batch()
|
| H A D | sockmap_basic.c | 517 if (sotype == SOCK_DGRAM) in do_test_sockmap_skb_verdict_fionread() 571 do_test_sockmap_skb_verdict_fionread(SOCK_DGRAM, pass_prog); in test_sockmap_skb_verdict_fionread() 767 dgram = xsocket(AF_UNIX, SOCK_DGRAM, 0); in test_sockmap_unconnected_unix() 795 dgram = xsocket(AF_UNIX, SOCK_DGRAM, 0); in test_sockmap_many_socket() 808 udp = socket_loopback(AF_INET, SOCK_DGRAM | SOCK_NONBLOCK); in test_sockmap_many_socket() 864 dgram = xsocket(AF_UNIX, SOCK_DGRAM, 0); in test_sockmap_many_maps() 877 udp = socket_loopback(AF_INET, SOCK_DGRAM | SOCK_NONBLOCK); in test_sockmap_many_maps() 935 dgram = xsocket(AF_UNIX, SOCK_DGRAM, 0); in test_sockmap_same_sock() 948 udp = socket_loopback(AF_INET, SOCK_DGRAM | SOCK_NONBLOCK); in test_sockmap_same_sock() 1295 expected = sotype == SOCK_DGRAM ? 2 : sizeof(buf); in test_sockmap_multi_channels() [all …]
|
| /linux/tools/testing/selftests/landlock/ |
| H A D | scoped_abstract_unix_test.c | 114 dgram_client = socket(AF_UNIX, SOCK_DGRAM, 0); in TEST_F() 149 dgram_server = socket(AF_UNIX, SOCK_DGRAM, 0); in TEST_F() 214 dgram_server = socket(AF_UNIX, SOCK_DGRAM, 0); in TEST_F() 245 dgram_client = socket(AF_UNIX, SOCK_DGRAM, 0); in TEST_F() 381 dgram_server = socket(AF_UNIX, SOCK_DGRAM, 0); in FIXTURE() 410 dgram_client = socket(AF_UNIX, SOCK_DGRAM, 0); 532 dgram_client = socket(AF_UNIX, SOCK_DGRAM, 0); in TEST_F() 596 dgram_server_child = socket(AF_UNIX, SOCK_DGRAM, 0); in FIXTURE_VARIANT_ADD() 623 dgram_server_parent = socket(AF_UNIX, SOCK_DGRAM, 0); in FIXTURE_SETUP() 659 .type = SOCK_DGRAM, in TEST_F() [all...] |
| H A D | net_test.c | 104 prot->type == SOCK_DGRAM && in is_restricted() 560 .type = SOCK_DGRAM, 570 .type = SOCK_DGRAM, 590 .type = SOCK_DGRAM, 668 .type = SOCK_DGRAM, 678 .type = SOCK_DGRAM, 698 .type = SOCK_DGRAM, 708 .type = SOCK_DGRAM, 719 .type = SOCK_DGRAM, in FIXTURE_VARIANT_ADD() 731 .type = SOCK_DGRAM, [all...] |
| /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 | 342 .type = SOCK_DGRAM, in FIXTURE_VARIANT_ADD() 348 .type = SOCK_DGRAM, in FIXTURE_VARIANT_ADD() 423 if (variant->type == SOCK_DGRAM) { in client() 457 if (variant->type == SOCK_DGRAM) in client() 535 if (variant->type == SOCK_DGRAM) { in TEST_F()
|
| /linux/tools/testing/selftests/drivers/net/hw/ |
| H A D | rss_input_xfrm.py | 15 sock = socket.socket(af_inet, socket.SOCK_DGRAM) 83 port1 = rand_port(socket.SOCK_DGRAM) 84 port2 = rand_port(socket.SOCK_DGRAM)
|
| /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()
|
| /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] = { 700 case SOCK_DGRAM: in tomoyo_socket_connect_permission() 737 case SOCK_DGRAM: in tomoyo_socket_bind_permission() 769 (type != SOCK_DGRAM && type != SOCK_RAW)) in tomoyo_socket_sendmsg_permission()
|