tools/testing/selftests/bpf/bpf_flow.c
0 → 100644
+373
−0
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
This eBPF program extracts basic/control/ip address/ports keys from incoming packets. It supports recursive parsing for IP encapsulation, and VLAN, along with IPv4/IPv6 and extension headers. This program is meant to show how flow dissection and key extraction can be done in eBPF. Link: http://vger.kernel.org/netconf2017_files/rx_hardening_and_udp_gso.pdf Signed-off-by:Petar Penkov <ppenkov@google.com> Signed-off-by:
Willem de Bruijn <willemb@google.com> Signed-off-by:
Alexei Starovoitov <ast@kernel.org>