eBPF/XDP programs written in C (bpf/).
Dockerfilebuilds the production image (ghcr.io/chronos-packet-scheduler/data-plane), published on every push tomainand onv*tags.Dockerfile.dev+compose.yamlgive a privileged dev container for experimenting withexamples/.
docker compose up -d --build
docker compose exec dev bashThe agent only builds on Linux, so build it inside the dev container:
docker compose exec dev bash
cd /workspace
cargo buildTerminal 1 (inside the container):
clang -O2 -g -Wall -target bpf -c example.c -o example.o # compile
ip link set lo xdpgeneric obj example.o sec xdp_pass # attach to lo
cat /sys/kernel/tracing/trace_pipe # watch bpf_printk outputTerminal 2 (on the host), generate traffic on lo:
docker compose exec dev ping -c 3 127.0.0.1Detach and stop:
ip link set lo xdpgeneric off # inside the container
docker compose down # on the host