Home
last modified time | relevance | path

Searched refs:SOCK_RAW (Results 1 - 25 of 152) sorted by relevance

1234567

/kernel/linux/linux-5.10/samples/bpf/
H A Dsock_flags_kern.c20 /* 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 Dsock_example.h18 sock = socket(PF_PACKET, SOCK_RAW | SOCK_NONBLOCK | SOCK_CLOEXEC, htons(ETH_P_ALL)); in open_raw_sock()
H A Dxdp_router_ipv4_user.c328 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 Dsock_diag.h53 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 Dsock_diag.h53 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 Dmsg_zerocopy.c10 * - 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 Dtxring_overwrite.c79 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 Dtxtimestamp.c496 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 Drxtimestamp.c63 { "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 Dpsock_snd.c223 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 Dnetwork.c36 [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 Dmsg_zerocopy.c10 * - 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 Dtxring_overwrite.c79 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 Dtxtimestamp.c496 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 Drxtimestamp.c63 { "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 Dpsock_snd.c223 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 Dnetwork.c36 [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 Dsocket.h23 * @SOCK_RAW - raw socket
32 SOCK_RAW = 3, enumerator
/kernel/linux/linux-6.6/arch/mips/include/asm/
H A Dsocket.h23 * @SOCK_RAW - raw socket
32 SOCK_RAW = 3, enumerator
/kernel/linux/linux-5.10/net/nfc/
H A Drawsock.c66 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 Drawsock.c67 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 Dsock_example.h18 sock = socket(PF_PACKET, SOCK_RAW | SOCK_NONBLOCK | SOCK_CLOEXEC, htons(ETH_P_ALL)); in open_raw_sock()
H A Dxdp_router_ipv4_user.c267 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 Dlsm_cgroup.c201 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 Daudit_logread.c147 fd = socket(PF_NETLINK, SOCK_RAW, NETLINK_AUDIT); in main()

Completed in 14 milliseconds

1234567