Home
last modified time | relevance | path

Searched refs:SOCK_DGRAM (Results 1 - 25 of 288) sorted by relevance

12345678910>>...12

/kernel/linux/linux-5.10/tools/testing/selftests/net/
H A Dreuseport_dualstack.c164 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_fd in main()
[all...]
H A Dreuseport_bpf.c395 fd1 = socket(AF_INET, SOCK_DGRAM, 0); in test_filter_without_bind()
398 fd2 = socket(AF_INET, SOCK_DGRAM, 0); in test_filter_without_bind()
469 .protocol = SOCK_DGRAM, in main()
476 .protocol = SOCK_DGRAM, in main()
483 .protocol = SOCK_DGRAM, in main()
490 .protocol = SOCK_DGRAM, in main()
496 .protocol = SOCK_DGRAM, in main()
500 .protocol = SOCK_DGRAM, in main()
507 .protocol = SOCK_DGRAM, in main()
514 .protocol = SOCK_DGRAM, in main()
[all...]
H A Dsocket.c29 { AF_INET, SOCK_DGRAM, IPPROTO_TCP, -EPROTONOSUPPORT, 1 },
30 { AF_INET, SOCK_DGRAM, IPPROTO_UDP, 0, 1 },
H A Dpsock_lib.h79 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()
/kernel/linux/linux-6.6/tools/testing/selftests/net/
H A Dreuseport_dualstack.c164 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_fd in main()
[all...]
H A Dreuseport_bpf.c393 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 Dsocket.c31 { AF_INET, SOCK_DGRAM, IPPROTO_TCP, -EPROTONOSUPPORT, 1 },
32 { AF_INET, SOCK_DGRAM, IPPROTO_UDP, 0, 1 },
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/
H A Dtest_sock_addr.c156 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...]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/
H A Dtest_sock_addr.c153 SOCK_DGRAM,
209 SOCK_DGRAM,
267 SOCK_DGRAM,
323 SOCK_DGRAM,
339 SOCK_DGRAM,
353 SOCK_DGRAM,
367 SOCK_DGRAM,
381 SOCK_DGRAM,
395 SOCK_DGRAM,
409 SOCK_DGRAM,
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
H A Dudp_limit.c32 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 Dsk_lookup.c157 if (sotype == SOCK_DGRAM) { in make_server()
166 if (sotype == SOCK_DGRAM && addr.ss_family == AF_INET6) { in make_server()
409 fd = socket(dst_addr->ss_family, SOCK_DGRAM, 0); in udp_recv_send()
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()
[all...]
H A Dconnect_force_port.c153 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 Dsk_assign.c193 * to the listen socket. SOCK_DGRAM on the other hand is connectionless in run_test()
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()
H A Dsockmap_listen.c1086 if (sotype == SOCK_DGRAM) { in test_reuseport_select_connected()
1153 if (sotype == SOCK_DGRAM) { in test_reuseport_mixed_groups()
1241 case SOCK_DGRAM: in sotype_str()
1673 err = inet_socketpair(family, SOCK_DGRAM, &p0, &c0); in udp_redir_to_connected()
1676 err = inet_socketpair(family, SOCK_DGRAM, &p1, &c1); in udp_redir_to_connected()
1760 if (socketpair(AF_UNIX, SOCK_DGRAM | SOCK_NONBLOCK, 0, sfd)) in inet_unix_redir_to_connected()
1764 err = inet_socketpair(family, SOCK_DGRAM, &p1, &c1); in inet_unix_redir_to_connected()
1814 inet_unix_redir_to_connected(family, SOCK_DGRAM, sock_map, verdict_map, in inet_unix_skb_redir_to_connected()
1819 inet_unix_redir_to_connected(family, SOCK_DGRAM, sock_map, verdict_map, in inet_unix_skb_redir_to_connected()
1840 err = inet_socketpair(family, SOCK_DGRAM, in unix_inet_redir_to_connected()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
H A Dconnect_force_port.c152 server_fd = start_server(AF_INET, SOCK_DGRAM, NULL, 60123, 0); in test_connect_force_port()
155 CHECK_FAIL(run_test(cgroup_fd, server_fd, AF_INET, SOCK_DGRAM)); in test_connect_force_port()
158 server_fd = start_server(AF_INET6, SOCK_DGRAM, NULL, 60124, 0); in test_connect_force_port()
161 CHECK_FAIL(run_test(cgroup_fd, server_fd, AF_INET6, SOCK_DGRAM)); in test_connect_force_port()
H A Dsk_lookup.c158 if (sotype == SOCK_DGRAM) { in make_server()
167 if (sotype == SOCK_DGRAM && addr.ss_family == AF_INET6) { in make_server()
410 fd = socket(dst_addr->ss_family, SOCK_DGRAM, 0); in udp_recv_send()
759 .sotype = SOCK_DGRAM, in test_redirect_lookup()
767 .sotype = SOCK_DGRAM, in test_redirect_lookup()
776 .sotype = SOCK_DGRAM, in test_redirect_lookup()
786 .sotype = SOCK_DGRAM, in test_redirect_lookup()
797 .sotype = SOCK_DGRAM, in test_redirect_lookup()
806 .sotype = SOCK_DGRAM, in test_redirect_lookup()
814 .sotype = SOCK_DGRAM, in test_redirect_lookup()
[all...]
H A Dudp_limit.c35 fd1 = socket(AF_INET, SOCK_DGRAM, 0); in test_udp_limit()
39 fd2 = socket(AF_INET, SOCK_DGRAM, 0); in test_udp_limit()
47 fd1 = socket(AF_INET, SOCK_DGRAM, 0); in test_udp_limit()
H A Dsk_assign.c193 * to the listen socket. SOCK_DGRAM on the other hand is connectionless in run_test()
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()
/kernel/linux/linux-6.6/tools/testing/selftests/net/af_unix/
H A Dunix_connect.c68 .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 Dscm_pidfd.c246 .type = SOCK_DGRAM, in FIXTURE_VARIANT_ADD()
252 .type = SOCK_DGRAM, in FIXTURE_VARIANT_ADD()
311 if (variant->type == SOCK_DGRAM) { in FIXTURE_DATA()
344 /* skip further for SOCK_DGRAM as it's not applicable */ in FIXTURE_DATA()
345 if (variant->type == SOCK_DGRAM) in FIXTURE_DATA()
417 if (variant->type == SOCK_DGRAM) { in TEST_F()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
H A Dudp_limit.c21 if (ctx->type != SOCK_DGRAM) in sock()
49 if (ctx->type != SOCK_DGRAM) in sock_release()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
H A Dudp_limit.c22 if (ctx->type != SOCK_DGRAM) in sock()
51 if (ctx->type != SOCK_DGRAM) in sock_release()
/kernel/linux/linux-5.10/net/rxrpc/
H A Dutils.c22 srx->transport_type = SOCK_DGRAM; in rxrpc_extract_addr_from_skb()
31 srx->transport_type = SOCK_DGRAM; in rxrpc_extract_addr_from_skb()
/kernel/linux/linux-6.6/net/rxrpc/
H A Dutils.c22 srx->transport_type = SOCK_DGRAM; in rxrpc_extract_addr_from_skb()
31 srx->transport_type = SOCK_DGRAM; in rxrpc_extract_addr_from_skb()
/kernel/linux/linux-6.6/samples/bpf/
H A Dsock_flags.bpf.c18 /* block AF_INET6, SOCK_DGRAM, IPPROTO_ICMPV6 sockets in bpf_prog1()
22 sk->type == SOCK_DGRAM && in bpf_prog1()
36 /* block AF_INET, SOCK_DGRAM, IPPROTO_ICMP sockets in bpf_prog2()
40 sk->type == SOCK_DGRAM && in bpf_prog2()

Completed in 15 milliseconds

12345678910>>...12