Searched refs:PF_PACKET (Results 1 – 19 of 19) sorted by relevance
/linux-5.19.10/tools/testing/selftests/net/ |
D | msg_zerocopy.c | 334 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()
|
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()
|
D | psock_tpacket.c | 101 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()
|
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()
|
D | psock_fanout.c | 70 fd = socket(PF_PACKET, SOCK_RAW, 0); in sock_fanout_open()
|
D | toeplitz.c | 344 fd = socket(PF_PACKET, SOCK_DGRAM, 0); in create_ring()
|
D | gro.c | 809 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()
|
D | txtimestamp.c | 515 fd = socket(cfg_use_pf_packet ? PF_PACKET : family, in do_test()
|
/linux-5.19.10/samples/bpf/ |
D | sock_example.h | 18 sock = socket(PF_PACKET, SOCK_RAW | SOCK_NONBLOCK | SOCK_CLOEXEC, htons(ETH_P_ALL)); in open_raw_sock()
|
/linux-5.19.10/net/packet/ |
D | Kconfig | 24 Support for PF_PACKET sockets monitoring interface used by the ss tool.
|
D | af_packet.c | 1552 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/ |
D | packet_mmap.rst | 83 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
|
D | filter.rst | 139 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,
|
D | can.rst | 268 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/ |
D | socket.h | 256 #define PF_PACKET AF_PACKET macro
|
/linux-5.19.10/include/linux/ |
D | socket.h | 256 #define PF_PACKET AF_PACKET macro
|
/linux-5.19.10/net/ |
D | socket.c | 188 [PF_PACKET] = "PF_PACKET", 1467 family = PF_PACKET; in __sock_create()
|
/linux-5.19.10/net/core/ |
D | rtnetlink.c | 3863 if (idx < s_idx || idx == PF_PACKET) in rtnl_dump_all()
|
/linux-5.19.10/security/selinux/ |
D | hooks.c | 1195 case PF_PACKET: in socket_type_to_security_class()
|