_______________________________
____ _____\______ \______ \_ _____/
_/ __ \ / ___/| | _/| ___/| __)
\ ___/ \___ \ | | \| | | \
\___ >____ >|______ /|____| \___ /
\/ \/ \/ \/
esBPF is a flexible, smallest packet filtering framework for ethernet drivers that uses cBPF virtual machine compatible with a set of BPF instructions tcpdump providing. The framework provides simple APIs to implement filtering feature at the driver layer.
- es-core.c/h: include core data structures, BPF interpreter, and APIs using in bottom-half handler.
- es-proc.c: A procfs class giving APIs to users to attach a filter to drivers.
- es-ctrl.h: A controller structure to keep handling core objects and locks for itself.
It's super easy, use tcpdump
with an option -dd
.
For instance, if you want to reject incoming ICMP packets,
tcpdump -dd -nn icmp
Please see tools/filter_icmp.c
how to use the instructions in detail.
- smsc95xx-esbpf - (Raspberry PI 3 B ethernet driver)
Happy hacking!
Please see LICENSE
file.