Home
last modified time | relevance | path

Searched refs:SOCK_DGRAM (Results 1 – 25 of 166) sorted by relevance

1234567

/linux/tools/testing/selftests/net/
H A Dreuseport_dualstack.c175 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 Dreuseport_bpf.c394 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 Dipv6_flowlabel_mgr.c189 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 Dsocket.c31 { AF_INET, SOCK_DGRAM, IPPROTO_TCP, -EPROTONOSUPPORT, 1 },
32 { AF_INET, SOCK_DGRAM, IPPROTO_UDP, 0, 1 },
H A Dpsock_lib.h77 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 Drtnetlink.py56 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 Dsk_so_peek_off.c23 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 Dsock_addr.c528 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 Dsk_lookup.c115 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 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 Dconnect_force_port.c171 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 Dsk_assign.c148 * 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 Dsocket_helpers.h253 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 Dksock.c40 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 Dlwt_seg6local.c132 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 Dsock_iter_batch.c620 .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 Dsockmap_basic.c517 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 Dscoped_abstract_unix_test.c114 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 Dnet_test.c104 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 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.c342 .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 Drss_input_xfrm.py15 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 Dudp_limit.c21 if (ctx->type != SOCK_DGRAM) in sock()
49 if (ctx->type != SOCK_DGRAM) in sock_release()
/linux/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()
/linux/security/tomoyo/
H A Dnetwork.c35 [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()

1234567