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

1234567

/linux-master/arch/mips/include/asm/
H A Dsocket.h21 * @SOCK_DGRAM - datagram (conn.less) socket
30 SOCK_DGRAM = 1, enumerator in enum:sock_type
/linux-master/samples/bpf/
H A Dsock_flags.bpf.c18 /* block AF_INET6, SOCK_DGRAM, IPPROTO_ICMPV6 sockets
22 sk->type == SOCK_DGRAM &&
36 /* block AF_INET, SOCK_DGRAM, IPPROTO_ICMP sockets
40 sk->type == SOCK_DGRAM &&
/linux-master/tools/testing/selftests/bpf/progs/
H A Dudp_limit.c21 if (ctx->type != SOCK_DGRAM)
49 if (ctx->type != SOCK_DGRAM)
H A Drecvmsg4_prog.c28 if (ctx->type != SOCK_STREAM && ctx->type != SOCK_DGRAM)
H A Drecvmsg6_prog.c31 if (ctx->type != SOCK_STREAM && ctx->type != SOCK_DGRAM)
H A Dsendmsg4_prog.c24 if (ctx->type != SOCK_DGRAM)
/linux-master/tools/testing/selftests/net/
H A Dreuseport_dualstack.c164 build_rcv_fd(AF_INET, SOCK_DGRAM, rcv_fds, 5);
165 build_rcv_fd(AF_INET6, SOCK_DGRAM, &(rcv_fds[5]), 5);
166 test(rcv_fds, 10, SOCK_DGRAM);
171 build_rcv_fd(AF_INET6, SOCK_DGRAM, rcv_fds, 5);
172 build_rcv_fd(AF_INET, SOCK_DGRAM, &(rcv_fds[5]), 5);
173 test(rcv_fds, 10, SOCK_DGRAM);
181 build_rcv_fd(AF_INET, SOCK_DGRAM, rcv_fds, 16);
182 build_rcv_fd(AF_INET6, SOCK_DGRAM, &(rcv_fds[16]), 16);
183 test(rcv_fds, 32, SOCK_DGRAM);
188 build_rcv_fd(AF_INET6, SOCK_DGRAM, rcv_fd
[all...]
H A Dsocket.c31 { AF_INET, SOCK_DGRAM, IPPROTO_TCP, -EPROTONOSUPPORT, 1 },
32 { AF_INET, SOCK_DGRAM, IPPROTO_UDP, 0, 1 },
H A Dreuseport_bpf.c393 fd1 = socket(AF_INET, SOCK_DGRAM, 0);
396 fd2 = socket(AF_INET, SOCK_DGRAM, 0);
467 .protocol = SOCK_DGRAM,
474 .protocol = SOCK_DGRAM,
481 .protocol = SOCK_DGRAM,
488 .protocol = SOCK_DGRAM,
494 .protocol = SOCK_DGRAM,
498 .protocol = SOCK_DGRAM,
505 .protocol = SOCK_DGRAM,
512 .protocol = SOCK_DGRAM,
[all...]
H A Dpsock_lib.h81 fds[0] = socket(PF_INET, SOCK_DGRAM, 0);
82 fds[1] = socket(PF_INET, SOCK_DGRAM, 0);
H A Dhwtstamp_config.c110 sock = socket(AF_INET, SOCK_DGRAM, 0);
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dudp_limit.c32 fd1 = socket(AF_INET, SOCK_DGRAM, 0);
36 fd2 = socket(AF_INET, SOCK_DGRAM, 0);
44 fd1 = socket(AF_INET, SOCK_DGRAM, 0);
H A Dsock_addr.c532 SOCK_DGRAM,
548 SOCK_DGRAM,
628 SOCK_DGRAM,
644 SOCK_DGRAM,
726 SOCK_DGRAM,
742 SOCK_DGRAM,
790 SOCK_DGRAM,
806 SOCK_DGRAM,
856 SOCK_DGRAM,
872 SOCK_DGRAM,
[all...]
H A Dconnect_force_port.c153 server_fd = start_server(AF_INET, SOCK_DGRAM, NULL, 60123, 0);
156 CHECK_FAIL(run_test(cgroup_fd, server_fd, AF_INET, SOCK_DGRAM));
159 server_fd = start_server(AF_INET6, SOCK_DGRAM, NULL, 60124, 0);
162 CHECK_FAIL(run_test(cgroup_fd, server_fd, AF_INET6, SOCK_DGRAM));
H A Dsk_assign.c146 * to the listen socket. SOCK_DGRAM on the other hand is connectionless
154 else if (type == SOCK_DGRAM &&
229 TEST("ipv4 udp port redir", AF_INET, SOCK_DGRAM, false),
230 TEST("ipv4 udp addr redir", AF_INET, SOCK_DGRAM, true),
231 TEST("ipv6 udp port redir", AF_INET6, SOCK_DGRAM, false),
232 TEST("ipv6 udp addr redir", AF_INET6, SOCK_DGRAM, true),
H A Dsock_iter_batch.c128 do_test(SOCK_DGRAM, true);
129 do_test(SOCK_DGRAM, false);
H A Dsk_lookup.c157 if (sotype == SOCK_DGRAM) {
166 if (sotype == SOCK_DGRAM && addr.ss_family == AF_INET6) {
409 fd = socket(dst_addr->ss_family, SOCK_DGRAM, 0);
758 .sotype = SOCK_DGRAM,
766 .sotype = SOCK_DGRAM,
775 .sotype = SOCK_DGRAM,
785 .sotype = SOCK_DGRAM,
796 .sotype = SOCK_DGRAM,
805 .sotype = SOCK_DGRAM,
813 .sotype = SOCK_DGRAM,
[all...]
H A Ddecap_sanity.c58 sockfd = socket(AF_INET6, SOCK_DGRAM, 0);
H A Dsockmap_listen.c1122 if (sotype == SOCK_DGRAM) {
1189 if (sotype == SOCK_DGRAM) {
1277 case SOCK_DGRAM:
1718 err = inet_socketpair(family, SOCK_DGRAM, &p0, &c0);
1721 err = inet_socketpair(family, SOCK_DGRAM, &p1, &c1);
1775 if (socketpair(AF_UNIX, SOCK_DGRAM | SOCK_NONBLOCK, 0, sfd))
1779 err = inet_socketpair(family, SOCK_DGRAM, &p1, &c1);
1805 inet_unix_redir_to_connected(family, SOCK_DGRAM, sock_map, verdict_map,
1810 inet_unix_redir_to_connected(family, SOCK_DGRAM, sock_map, verdict_map,
1827 err = inet_socketpair(family, SOCK_DGRAM,
[all...]
/linux-master/tools/testing/selftests/net/af_unix/
H A Dunix_connect.c68 .type = SOCK_DGRAM,
77 .type = SOCK_DGRAM,
86 .type = SOCK_DGRAM,
95 .type = SOCK_DGRAM,
H A Dscm_pidfd.c246 .type = SOCK_DGRAM,
252 .type = SOCK_DGRAM,
310 if (variant->type == SOCK_DGRAM) {
343 /* skip further for SOCK_DGRAM as it's not applicable */
344 if (variant->type == SOCK_DGRAM)
416 if (variant->type == SOCK_DGRAM) {
/linux-master/net/rxrpc/
H A Dutils.c22 srx->transport_type = SOCK_DGRAM;
31 srx->transport_type = SOCK_DGRAM;
/linux-master/security/tomoyo/
H A Dnetwork.c35 [SOCK_DGRAM] = "dgram",
147 [SOCK_DGRAM] = {
170 [SOCK_DGRAM] = {
697 case SOCK_DGRAM:
734 case SOCK_DGRAM:
766 (type != SOCK_DGRAM && type != SOCK_RAW))
/linux-master/net/ipv4/
H A Dudplite.c75 .type = SOCK_DGRAM,
/linux-master/net/ipv6/
H A Dudplite.c74 .type = SOCK_DGRAM,

Completed in 238 milliseconds

1234567