Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vladd12/bpf-program
eBPF program for net traffic filtering
https://github.com/vladd12/bpf-program
bpf bpfcc ebpf network
Last synced: 24 days ago
JSON representation
eBPF program for net traffic filtering
- Host: GitHub
- URL: https://github.com/vladd12/bpf-program
- Owner: vladd12
- Created: 2022-12-08T07:22:04.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-12T14:57:54.000Z (9 months ago)
- Last Synced: 2024-04-12T17:06:19.250Z (8 months ago)
- Topics: bpf, bpfcc, ebpf, network
- Language: C++
- Homepage:
- Size: 164 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# BPF testing project
## Installing compile instruments
```
sudo apt install -y --no-install-recommends git cmake ninja-build gcc build-essential
```## Installing dependencies
```
apt search linux-headers-$(uname -r)
sudo apt install linux-headers-$(your_kernel)
sudo apt install libbpfcc-dev xz-utils libpcap-dev
```## Building on local machine
```
mkdir build && cd build
cmake -G Ninja ..
cmake --build . && cmake --install .
```## Building with Docker
### arm64
```
mkdir build && cd build
docker build --file "Dockerfile" --platform linux/amd64 -t bpf-arm64 --no-cache ../tools/docker-cross-arm64
docker run --platform=linux/amd64 -i -t bpf-arm64
```