| /linux-6.15/tools/testing/selftests/net/ |
| H A D | netlink-dumps.c | 107 netlink_sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); in TEST() 181 netlink_sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC); in TEST() 201 netlink_sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC); in TEST() 217 netlink_sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC); in TEST()
|
| H A D | msg_zerocopy.c | 504 if (type == SOCK_RAW) { in do_tx() 587 if (type == SOCK_RAW && protocol == IPPROTO_RAW) in do_setup_rx() 640 if (cfg_family == PF_INET && type == SOCK_RAW) { in do_flush_datagram() 804 do_test(PF_PACKET, SOCK_RAW, 0); in main() 808 do_test(cfg_family, SOCK_RAW, IPPROTO_EGP); in main() 810 do_test(cfg_family, SOCK_RAW, IPPROTO_RAW); in main()
|
| H A D | txring_overwrite.c | 79 fdr = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_IP)); in setup_rx() 92 fdt = socket(PF_PACKET, SOCK_RAW, 0); in setup_tx()
|
| H A D | rxtimestamp.c | 65 { "ip", SOCK_RAW, IPPROTO_EGP }, 308 port = (s->type == SOCK_RAW) ? 0 : next_port++; in run_test_case() 315 if (s->type == SOCK_RAW) in run_test_case()
|
| H A D | txtimestamp.c | 504 if (cfg_use_pf_packet || cfg_proto == SOCK_RAW) { in do_test() 589 if (cfg_use_pf_packet || cfg_proto == SOCK_RAW) { in do_test() 782 cfg_proto = SOCK_RAW; in parse_opt() 787 cfg_proto = SOCK_RAW; in parse_opt() 875 type = cfg_proto == SOCK_RAW ? SOCK_DGRAM : cfg_proto; in do_listen()
|
| H A D | psock_fanout.c | 68 fd = socket(AF_PACKET, SOCK_RAW, 0); in loopback_set_up_down() 98 fd = socket(PF_PACKET, SOCK_RAW, 0); in sock_fanout_open() 290 fd0 = socket(PF_PACKET, SOCK_RAW, 0); in test_unbound_fanout()
|
| H A D | psock_snd.c | 223 fd = socket(PF_PACKET, cfg_use_dgram ? SOCK_DGRAM : SOCK_RAW, 0); in do_tx() 295 fd = socket(PF_PACKET, SOCK_RAW, 0); in setup_sniffer()
|
| H A D | skf_net_off.c | 107 fd = socket(PF_INET6, SOCK_RAW, IPPROTO_UDP); in raw_open()
|
| /linux-6.15/include/linux/ |
| H A D | sock_diag.h | 59 if (sk->sk_type == SOCK_RAW) in sock_diag_destroy_group() 71 if (sk->sk_type == SOCK_RAW) in sock_diag_destroy_group()
|
| /linux-6.15/security/tomoyo/ |
| H A D | network.c | 36 [SOCK_RAW] = "raw", 151 [SOCK_RAW] = { 530 if (address->protocol == SOCK_RAW) in tomoyo_check_inet_address() 698 case SOCK_RAW: in tomoyo_socket_connect_permission() 735 case SOCK_RAW: in tomoyo_socket_bind_permission() 766 (type != SOCK_DGRAM && type != SOCK_RAW)) in tomoyo_socket_sendmsg_permission()
|
| /linux-6.15/net/nfc/ |
| H A D | rawsock.c | 67 if (sock->type == SOCK_RAW) in rawsock_release() 330 if ((sock->type != SOCK_SEQPACKET) && (sock->type != SOCK_RAW)) in rawsock_create() 333 if (sock->type == SOCK_RAW) { in rawsock_create() 349 if (sock->type == SOCK_RAW) in rawsock_create()
|
| H A D | llcp_sock.c | 634 if (sock->type == SOCK_RAW) in llcp_sock_release() 896 sk->sk_type == SOCK_RAW) { in llcp_sock_recvmsg() 1033 sock->type != SOCK_RAW) in llcp_sock_create() 1036 if (sock->type == SOCK_RAW) { in llcp_sock_create()
|
| /linux-6.15/arch/mips/include/asm/ |
| H A D | socket.h | 32 SOCK_RAW = 3, enumerator
|
| /linux-6.15/samples/bpf/ |
| H A D | sock_example.h | 18 sock = socket(PF_PACKET, SOCK_RAW | SOCK_NONBLOCK | SOCK_CLOEXEC, htons(ETH_P_ALL)); in open_raw_sock()
|
| H A D | xdp_router_ipv4_user.c | 267 sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); in get_route_table() 403 sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); in get_arp_table() 458 sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); in monitor_routes_thread() 477 sock_arp = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); in monitor_routes_thread()
|
| /linux-6.15/tools/testing/selftests/bpf/prog_tests/ |
| H A D | lsm_cgroup.c | 197 ASSERT_LT(socket(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL)), 0, in test_lsm_cgroup_functional() 200 fd = socket(AF_PACKET, SOCK_RAW, 0); in test_lsm_cgroup_functional()
|
| H A D | lwt_redirect.c | 99 s = socket(AF_PACKET, SOCK_RAW, 0); in new_packet_sock()
|
| /linux-6.15/tools/testing/selftests/drivers/net/ |
| H A D | xdp_helper.c | 89 sock_fd = socket(AF_XDP, SOCK_RAW, 0); in main()
|
| /linux-6.15/tools/testing/selftests/net/netfilter/ |
| H A D | audit_logread.c | 147 fd = socket(PF_NETLINK, SOCK_RAW, NETLINK_AUDIT); in main()
|
| /linux-6.15/tools/testing/selftests/net/af_unix/ |
| H A D | diag_uid.c | 54 self->netlink_fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_SOCK_DIAG); in FIXTURE_SETUP()
|
| /linux-6.15/tools/testing/selftests/net/tcp_ao/ |
| H A D | icmps-accept.c | 182 int sk = socket(AF_INET, SOCK_RAW, IPPROTO_RAW); in icmp_interfere4() 296 int sk = socket(AF_INET6, SOCK_RAW, IPPROTO_RAW); in icmp6_interfere()
|
| H A D | icmps-discard.c | 182 int sk = socket(AF_INET, SOCK_RAW, IPPROTO_RAW); in icmp_interfere4() 296 int sk = socket(AF_INET6, SOCK_RAW, IPPROTO_RAW); in icmp6_interfere()
|
| /linux-6.15/net/bluetooth/cmtp/ |
| H A D | sock.c | 207 if (sock->type != SOCK_RAW) in cmtp_sock_create()
|
| /linux-6.15/net/bluetooth/bnep/ |
| H A D | sock.c | 205 if (sock->type != SOCK_RAW) in bnep_sock_create()
|
| /linux-6.15/arch/um/drivers/ |
| H A D | vector_user.c | 171 fd = socket(AF_PACKET, SOCK_RAW, flags); in create_raw_fd() 641 dsthints.ai_socktype = SOCK_RAW; in user_init_socket_fds() 649 dsthints.ai_socktype = SOCK_RAW; in user_init_socket_fds()
|