/linux-master/arch/mips/include/asm/ |
H A D | socket.h | 21 * @SOCK_DGRAM - datagram (conn.less) socket 30 SOCK_DGRAM = 1, enumerator in enum:sock_type
|
/linux-master/samples/bpf/ |
H A D | sock_flags.bpf.c | 18 /* 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 D | udp_limit.c | 21 if (ctx->type != SOCK_DGRAM) 49 if (ctx->type != SOCK_DGRAM)
|
H A D | recvmsg4_prog.c | 28 if (ctx->type != SOCK_STREAM && ctx->type != SOCK_DGRAM)
|
H A D | recvmsg6_prog.c | 31 if (ctx->type != SOCK_STREAM && ctx->type != SOCK_DGRAM)
|
H A D | sendmsg4_prog.c | 24 if (ctx->type != SOCK_DGRAM)
|
H A D | sendmsg6_prog.c | 28 if (ctx->type != SOCK_DGRAM)
|
H A D | connect6_prog.c | 45 if (ctx->type != SOCK_STREAM && ctx->type != SOCK_DGRAM)
|
/linux-master/tools/testing/selftests/net/ |
H A D | reuseport_dualstack.c | 164 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 D | socket.c | 31 { AF_INET, SOCK_DGRAM, IPPROTO_TCP, -EPROTONOSUPPORT, 1 }, 32 { AF_INET, SOCK_DGRAM, IPPROTO_UDP, 0, 1 },
|
H A D | reuseport_bpf.c | 393 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 D | psock_lib.h | 81 fds[0] = socket(PF_INET, SOCK_DGRAM, 0); 82 fds[1] = socket(PF_INET, SOCK_DGRAM, 0);
|
H A D | hwtstamp_config.c | 110 sock = socket(AF_INET, SOCK_DGRAM, 0);
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | udp_limit.c | 32 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 D | connect_force_port.c | 153 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 D | sock_iter_batch.c | 128 do_test(SOCK_DGRAM, true); 129 do_test(SOCK_DGRAM, false);
|
H A D | sk_lookup.c | 157 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 D | sk_assign.c | 193 * to the listen socket. SOCK_DGRAM on the other hand is connectionless 201 else if (type == SOCK_DGRAM && 276 TEST("ipv4 udp port redir", AF_INET, SOCK_DGRAM, false), 277 TEST("ipv4 udp addr redir", AF_INET, SOCK_DGRAM, true), 278 TEST("ipv6 udp port redir", AF_INET6, SOCK_DGRAM, false), 279 TEST("ipv6 udp addr redir", AF_INET6, SOCK_DGRAM, true),
|
H A D | decap_sanity.c | 58 sockfd = socket(AF_INET6, SOCK_DGRAM, 0);
|
H A D | sockmap_listen.c | 1086 if (sotype == SOCK_DGRAM) { 1153 if (sotype == SOCK_DGRAM) { 1241 case SOCK_DGRAM: 1680 err = inet_socketpair(family, SOCK_DGRAM, &p0, &c0); 1683 err = inet_socketpair(family, SOCK_DGRAM, &p1, &c1); 1737 if (socketpair(AF_UNIX, SOCK_DGRAM | SOCK_NONBLOCK, 0, sfd)) 1741 err = inet_socketpair(family, SOCK_DGRAM, &p1, &c1); 1767 inet_unix_redir_to_connected(family, SOCK_DGRAM, sock_map, verdict_map, 1772 inet_unix_redir_to_connected(family, SOCK_DGRAM, sock_map, verdict_map, 1789 err = inet_socketpair(family, SOCK_DGRAM, [all...] |
/linux-master/tools/testing/selftests/net/af_unix/ |
H A D | unix_connect.c | 68 .type = SOCK_DGRAM, 77 .type = SOCK_DGRAM, 86 .type = SOCK_DGRAM, 95 .type = SOCK_DGRAM,
|
H A D | scm_pidfd.c | 246 .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 D | utils.c | 22 srx->transport_type = SOCK_DGRAM; 31 srx->transport_type = SOCK_DGRAM;
|
/linux-master/tools/testing/selftests/bpf/ |
H A D | test_sock_addr.c | 157 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-master/security/tomoyo/ |
H A D | network.c | 35 [SOCK_DGRAM] = "dgram", 147 [SOCK_DGRAM] = { 170 [SOCK_DGRAM] = { 697 case SOCK_DGRAM: 734 case SOCK_DGRAM: 766 (type != SOCK_DGRAM && type != SOCK_RAW))
|