/linux-6.3-rc2/include/linux/ |
A D | sock_diag.h | 53 if (sk->sk_type == SOCK_RAW) in sock_diag_destroy_group() 65 if (sk->sk_type == SOCK_RAW) in sock_diag_destroy_group()
|
/linux-6.3-rc2/security/tomoyo/ |
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.3-rc2/net/nfc/ |
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()
|
A D | llcp_sock.c | 634 if (sock->type == SOCK_RAW) in llcp_sock_release() 889 sk->sk_type == SOCK_RAW) { in llcp_sock_recvmsg() 1026 sock->type != SOCK_RAW) in llcp_sock_create() 1029 if (sock->type == SOCK_RAW) { in llcp_sock_create()
|
/linux-6.3-rc2/tools/testing/selftests/net/ |
A D | msg_zerocopy.c | 500 if (type == SOCK_RAW) { in do_tx() 580 if (type == SOCK_RAW && protocol == IPPROTO_RAW) in do_setup_rx() 633 if (cfg_family == PF_INET && type == SOCK_RAW) { in do_flush_datagram() 794 do_test(PF_PACKET, SOCK_RAW, 0); in main() 798 do_test(cfg_family, SOCK_RAW, IPPROTO_EGP); in main() 800 do_test(cfg_family, SOCK_RAW, IPPROTO_RAW); in main()
|
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()
|
A D | rxtimestamp.c | 63 { "ip", SOCK_RAW, IPPROTO_EGP }, 290 port = (s->type == SOCK_RAW) ? 0 : next_port++; in run_test_case() 297 if (s->type == SOCK_RAW) in run_test_case()
|
A D | txtimestamp.c | 496 if (cfg_use_pf_packet || cfg_proto == SOCK_RAW) { in do_test() 581 if (cfg_use_pf_packet || cfg_proto == SOCK_RAW) { in do_test() 755 cfg_proto = SOCK_RAW; in parse_opt() 760 cfg_proto = SOCK_RAW; in parse_opt() 846 type = cfg_proto == SOCK_RAW ? SOCK_DGRAM : cfg_proto; in do_listen()
|
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()
|
A D | cmsg_sender.c | 135 opt.sock.type = SOCK_RAW; in cs_parse_args() 457 } else if (opt.sock.type == SOCK_RAW) { in main()
|
A D | psock_tpacket.c | 101 int ret, sock = socket(PF_PACKET, SOCK_RAW, 0); in pfsocket() 395 rcv_sock = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL)); in walk_tx()
|
/linux-6.3-rc2/arch/mips/include/asm/ |
A D | socket.h | 32 SOCK_RAW = 3, enumerator
|
/linux-6.3-rc2/samples/bpf/ |
A D | sock_example.h | 18 sock = socket(PF_PACKET, SOCK_RAW | SOCK_NONBLOCK | SOCK_CLOEXEC, htons(ETH_P_ALL)); in open_raw_sock()
|
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.3-rc2/tools/testing/selftests/bpf/prog_tests/ |
A D | lsm_cgroup.c | 201 ASSERT_LT(socket(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL)), 0, in test_lsm_cgroup_functional() 204 fd = socket(AF_PACKET, SOCK_RAW, 0); in test_lsm_cgroup_functional()
|
A D | xfrm_info.c | 248 sock = socket(AF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, NETLINK_ROUTE); in setup_xfrmi_external_dev()
|
/linux-6.3-rc2/tools/testing/selftests/net/af_unix/ |
A D | diag_uid.c | 54 self->netlink_fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_SOCK_DIAG); in FIXTURE_SETUP()
|
/linux-6.3-rc2/arch/um/drivers/ |
A D | vector_user.c | 168 fd = socket(AF_PACKET, SOCK_RAW, flags); in create_raw_fd() 560 dsthints.ai_socktype = SOCK_RAW; in user_init_socket_fds() 568 dsthints.ai_socktype = SOCK_RAW; in user_init_socket_fds()
|
/linux-6.3-rc2/net/bluetooth/cmtp/ |
A D | sock.c | 207 if (sock->type != SOCK_RAW) in cmtp_sock_create()
|
/linux-6.3-rc2/net/bluetooth/bnep/ |
A D | sock.c | 205 if (sock->type != SOCK_RAW) in bnep_sock_create()
|
/linux-6.3-rc2/net/ipv6/ |
A D | ipv6_sockglue.c | 65 if (sk->sk_type != SOCK_RAW || inet_sk(sk)->inet_num != IPPROTO_RAW) in ip6_ra_control() 434 if (sk->sk_type == SOCK_RAW) in do_ipv6_setsockopt() 1005 if (level == SOL_IP && sk->sk_type != SOCK_RAW) in ipv6_setsockopt() 1483 if (level == SOL_IP && sk->sk_type != SOCK_RAW) in ipv6_getsockopt()
|
/linux-6.3-rc2/tools/net/ynl/lib/ |
A D | ynl.py | 212 with socket.socket(socket.AF_NETLINK, socket.SOCK_RAW, Netlink.NETLINK_GENERIC) as sock: 302 self.sock = socket.socket(socket.AF_NETLINK, socket.SOCK_RAW, Netlink.NETLINK_GENERIC)
|
/linux-6.3-rc2/net/bluetooth/hidp/ |
A D | sock.c | 256 if (sock->type != SOCK_RAW) in hidp_sock_create()
|
/linux-6.3-rc2/tools/testing/selftests/uevent/ |
A D | uevent_filtering.c | 92 sk_fd = socket(AF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, in uevent_listener()
|
/linux-6.3-rc2/tools/testing/selftests/bpf/ |
A D | xsk.c | 231 umem->fd = socket(AF_XDP, SOCK_RAW | SOCK_CLOEXEC, 0); in xsk_umem__create() 433 xsk->fd = socket(AF_XDP, SOCK_RAW | SOCK_CLOEXEC, 0); in xsk_socket__create_shared()
|