/kernel/linux/linux-5.10/samples/bpf/ |
H A D | sock_flags_kern.c | 20 /* block PF_INET6, SOCK_RAW, IPPROTO_ICMPV6 sockets in bpf_prog1() 24 sk->type == SOCK_RAW && in bpf_prog1() 38 /* block PF_INET, SOCK_RAW, IPPROTO_ICMP sockets in bpf_prog2() 42 sk->type == SOCK_RAW && in bpf_prog2()
|
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 | 328 sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); in get_route_table() 467 sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); in get_arp_table() 529 sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); in monitor_route() 547 sock_arp = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE); in monitor_route()
|
/kernel/linux/linux-5.10/include/linux/ |
H 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()
|
/kernel/linux/linux-6.6/include/linux/ |
H 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()
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/ |
H A D | msg_zerocopy.c | 10 * - SOCK_RAW 11 * - SOCK_RAW with IP_HDRINCL 15 * - SOCK_RAW 500 if (type == SOCK_RAW) { in do_tx() 574 /* If tx over PF_PACKET, rx over PF_INET(6)/SOCK_RAW, in do_setup_rx() 578 error(1, 0, "Use PF_INET/SOCK_RAW to read"); in do_setup_rx() 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_EG in main() [all...] |
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 | 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()
|
H 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()
|
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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-6.6/tools/testing/selftests/net/ |
H A D | msg_zerocopy.c | 10 * - SOCK_RAW 11 * - SOCK_RAW with IP_HDRINCL 15 * - SOCK_RAW 500 if (type == SOCK_RAW) { in do_tx() 574 /* If tx over PF_PACKET, rx over PF_INET(6)/SOCK_RAW, in do_setup_rx() 578 error(1, 0, "Use PF_INET/SOCK_RAW to read"); in do_setup_rx() 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_EG in main() [all...] |
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 | 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()
|
H 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()
|
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()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-5.10/arch/mips/include/asm/ |
H A D | socket.h | 23 * @SOCK_RAW - raw socket 32 SOCK_RAW = 3, enumerator
|
/kernel/linux/linux-6.6/arch/mips/include/asm/ |
H A D | socket.h | 23 * @SOCK_RAW - raw socket 32 SOCK_RAW = 3, enumerator
|
/kernel/linux/linux-5.10/net/nfc/ |
H A D | rawsock.c | 66 if (sock->type == SOCK_RAW) in rawsock_release() 328 if ((sock->type != SOCK_SEQPACKET) && (sock->type != SOCK_RAW)) in rawsock_create() 331 if (sock->type == SOCK_RAW) { in rawsock_create() 347 if (sock->type == SOCK_RAW) in rawsock_create()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/ |
H 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() 238 * AF_PACKET+SOCK_RAW in test_lsm_cgroup_functional() 239 * AF_UNIX+SOCK_RAW if already have non-bpf lsms installed in test_lsm_cgroup_functional() 247 /* AF_UNIX+SOCK_RAW if already have non-bpf lsms installed */ in test_lsm_cgroup_functional() 261 * AF_PACKET+SOCK_RAW (failed) in test_lsm_cgroup_functional() 262 * AF_PACKET+SOCK_RAW in test_lsm_cgroup_functional()
|
/kernel/linux/linux-6.6/tools/testing/selftests/netfilter/ |
H A D | audit_logread.c | 147 fd = socket(PF_NETLINK, SOCK_RAW, NETLINK_AUDIT); in main()
|