Home
last modified time | relevance | path

Searched refs:PF_PACKET (Results 1 – 19 of 19) sorted by relevance

/linux-5.19.10/tools/testing/selftests/net/
Dmsg_zerocopy.c334 if (domain != PF_PACKET && domain != PF_RDS) in do_setup_tx()
496 if (domain == PF_PACKET) { in do_tx()
523 if (domain == PF_PACKET || protocol == IPPROTO_RAW) { in do_tx()
577 if (domain == PF_PACKET) in do_setup_rx()
680 if (cfg_cork && (domain == PF_PACKET || type != SOCK_DGRAM)) in do_test()
794 do_test(PF_PACKET, SOCK_RAW, 0); in main()
796 do_test(PF_PACKET, SOCK_DGRAM, 0); in main()
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()
Dpsock_tpacket.c101 int ret, sock = socket(PF_PACKET, SOCK_RAW, 0); in pfsocket()
378 .sll_family = PF_PACKET, in walk_tx()
395 rcv_sock = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL)); in walk_tx()
732 ring->ll.sll_family = PF_PACKET; in bind_ring()
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()
Dpsock_fanout.c70 fd = socket(PF_PACKET, SOCK_RAW, 0); in sock_fanout_open()
Dtoeplitz.c344 fd = socket(PF_PACKET, SOCK_DGRAM, 0); in create_ring()
Dgro.c809 txfd = socket(PF_PACKET, SOCK_RAW, IPPROTO_RAW); in gro_sender()
912 rxfd = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_NONE)); in gro_receiver()
Dtxtimestamp.c515 fd = socket(cfg_use_pf_packet ? PF_PACKET : family, in do_test()
/linux-5.19.10/samples/bpf/
Dsock_example.h18 sock = socket(PF_PACKET, SOCK_RAW | SOCK_NONBLOCK | SOCK_CLOEXEC, htons(ETH_P_ALL)); in open_raw_sock()
/linux-5.19.10/net/packet/
DKconfig24 Support for PF_PACKET sockets monitoring interface used by the ss tool.
Daf_packet.c1552 if (sk->sk_family != PF_PACKET) in match_fanout_group()
3342 sk = sk_alloc(net, PF_PACKET, GFP_KERNEL, &packet_proto, kern); in packet_create()
3354 sk->sk_family = PF_PACKET; in packet_create()
4592 .family = PF_PACKET,
4612 .family = PF_PACKET,
4634 .family = PF_PACKET,
4730 sock_unregister(PF_PACKET); in packet_exit()
4756 sock_unregister(PF_PACKET); in packet_init()
4766 MODULE_ALIAS_NETPROTO(PF_PACKET);
/linux-5.19.10/Documentation/networking/
Dpacket_mmap.rst83 int fd = socket(PF_PACKET, mode, htons(ETH_P_ALL));
126 int fd = socket(PF_PACKET, mode, 0);
874 ll.sll_family = PF_PACKET;
1014 This has the side-effect, that packets sent through PF_PACKET will bypass the
1017 and such packets are also not visible to other PF_PACKET sockets anymore. So,
1022 on PF_PACKET sockets.
1051 software fallback was invoked *within* PF_PACKET's processing code (less
Dfilter.rst139 sock = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
150 The above example code attaches a socket filter for a PF_PACKET socket
158 Note that socket filters are not restricted to PF_PACKET sockets only,
Dcan.rst268 PF_PACKET socket, that also binds to a specific interface:
1468 - Uwe Koppe (CAN netdevices with PF_PACKET approach)
/linux-5.19.10/tools/perf/trace/beauty/include/linux/
Dsocket.h256 #define PF_PACKET AF_PACKET macro
/linux-5.19.10/include/linux/
Dsocket.h256 #define PF_PACKET AF_PACKET macro
/linux-5.19.10/net/
Dsocket.c188 [PF_PACKET] = "PF_PACKET",
1467 family = PF_PACKET; in __sock_create()
/linux-5.19.10/net/core/
Drtnetlink.c3863 if (idx < s_idx || idx == PF_PACKET) in rtnl_dump_all()
/linux-5.19.10/security/selinux/
Dhooks.c1195 case PF_PACKET: in socket_type_to_security_class()