https://github.com/nhas/ebpf
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/nhas/ebpf
- Owner: NHAS
- License: other
- Created: 2022-08-02T06:00:35.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-03T03:32:56.000Z (over 3 years ago)
- Last Synced: 2024-12-30T22:17:02.162Z (about 1 year ago)
- Language: C
- Size: 64.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ebpf
Tiny little firewall showing how to use cilium ebpf with complex map types.
Probably one of the only `BPF_MAP_TYPE_LPM_TRIE` examples on the internet.
# Installation
```
sudo pacman -Syu llvm clang
BPF_CLANG=clang BPF_CFLAGS='-O2 -g -Wall -Werror' go generate
go build
```
# Maybe helpful?
```
sudo pacman -Syu libbpf linux-headers bpf
```