Home
last modified time | relevance | path

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

123456

/linux/tools/testing/selftests/net/
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()
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 Dreuseport_bpf.c469 .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()
521 .protocol = SOCK_DGRAM, in main()
528 .protocol = SOCK_DGRAM, in main()
[all …]
A Dsocket.c29 { AF_INET, SOCK_DGRAM, IPPROTO_TCP, -EPROTONOSUPPORT, 1 },
30 { AF_INET, SOCK_DGRAM, IPPROTO_UDP, 0, 1 },
A Dcmsg_so_mark.c30 hints.ai_socktype = SOCK_DGRAM; in main()
39 fd = socket(ai->ai_family, SOCK_DGRAM, IPPROTO_UDP); in main()
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()
A Dipv6_flowlabel.c191 fdt = socket(PF_INET6, SOCK_DGRAM, 0); in main()
195 fdr = socket(PF_INET6, SOCK_DGRAM, 0); in main()
A Dreuseport_bpf_cpu.c244 test(rcv_fd, cpus, AF_INET, SOCK_DGRAM); in main()
247 test(rcv_fd, cpus, AF_INET6, SOCK_DGRAM); in main()
A Dreuseport_bpf_numa.c247 test(rcv_fd, nodes, AF_INET, SOCK_DGRAM); in main()
250 test(rcv_fd, nodes, AF_INET6, SOCK_DGRAM); in main()
/linux/tools/testing/selftests/bpf/
A Dtest_sock_addr.c157 SOCK_DGRAM,
213 SOCK_DGRAM,
271 SOCK_DGRAM,
327 SOCK_DGRAM,
343 SOCK_DGRAM,
357 SOCK_DGRAM,
371 SOCK_DGRAM,
385 SOCK_DGRAM,
399 SOCK_DGRAM,
413 SOCK_DGRAM,
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
A Dsk_lookup.c759 .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()
822 .sotype = SOCK_DGRAM, in test_redirect_lookup()
831 .sotype = SOCK_DGRAM, in test_redirect_lookup()
841 .sotype = SOCK_DGRAM, in test_redirect_lookup()
[all …]
A Dudp_limit.c34 fd1 = socket(AF_INET, SOCK_DGRAM, 0); in test_udp_limit()
38 fd2 = socket(AF_INET, SOCK_DGRAM, 0); in test_udp_limit()
46 fd1 = socket(AF_INET, SOCK_DGRAM, 0); in test_udp_limit()
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()
A Dsk_assign.c188 else if (type == SOCK_DGRAM && in run_test()
263 TEST("ipv4 udp port redir", AF_INET, SOCK_DGRAM, false), in test_sk_assign()
264 TEST("ipv4 udp addr redir", AF_INET, SOCK_DGRAM, true), in test_sk_assign()
265 TEST("ipv6 udp port redir", AF_INET6, SOCK_DGRAM, false), in test_sk_assign()
266 TEST("ipv6 udp addr redir", AF_INET6, SOCK_DGRAM, true), in test_sk_assign()
A Dsockmap_listen.c306 if (sotype & SOCK_DGRAM) in socket_loopback_reuseport()
1310 if (sotype == SOCK_DGRAM) { in test_reuseport_select_connected()
1377 if (sotype == SOCK_DGRAM) { in test_reuseport_mixed_groups()
1465 case SOCK_DGRAM: in sotype_str()
1743 err = inet_socketpair(family, SOCK_DGRAM, &p0, &c0); in udp_redir_to_connected()
1746 err = inet_socketpair(family, SOCK_DGRAM, &p1, &c1); in udp_redir_to_connected()
1834 err = inet_socketpair(family, SOCK_DGRAM, &p1, &c1); in inet_unix_redir_to_connected()
1910 err = inet_socketpair(family, SOCK_DGRAM, &p0, &c0); in unix_inet_redir_to_connected()
1997 test_ops(skel, map, family, SOCK_DGRAM); in run_tests()
2000 test_reuseport(skel, map, family, SOCK_DGRAM); in run_tests()
[all …]
/linux/tools/testing/selftests/bpf/progs/
A Dudp_limit.c22 if (ctx->type != SOCK_DGRAM) in sock()
51 if (ctx->type != SOCK_DGRAM) in sock_release()
A Drecvmsg4_prog.c30 if (ctx->type != SOCK_STREAM && ctx->type != SOCK_DGRAM) in recvmsg4_prog()
A Dsendmsg4_prog.c26 if (ctx->type != SOCK_DGRAM) in sendmsg_v4_prog()
A Drecvmsg6_prog.c33 if (ctx->type != SOCK_STREAM && ctx->type != SOCK_DGRAM) in recvmsg6_prog()
A Dsendmsg6_prog.c28 if (ctx->type != SOCK_DGRAM) in sendmsg_v6_prog()
/linux/net/rxrpc/
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/
A Dnetwork.c35 [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/fs/afs/
A Daddr_list.c51 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()
/linux/net/unix/
A Dunix_bpf.c44 if (sk->sk_type == SOCK_DGRAM) in __unix_recvmsg()
144 if (sk->sk_type != SOCK_DGRAM) in unix_dgram_bpf_update_proto()
/linux/arch/mips/include/asm/
A Dsocket.h30 SOCK_DGRAM = 1, enumerator
/linux/samples/bpf/
A Dcookie_uid_helper_example.c226 s_rcv = socket(PF_INET, SOCK_DGRAM, 0); in udp_client()
235 s_send = socket(PF_INET, SOCK_DGRAM, 0); in udp_client()

Completed in 41 milliseconds

123456