Go to file
Chris Pick 9be70de097 ebpf: use TC_ACT_PIPE in classifier
Demonstrate using the correct constant instead of a magic number.
.cargo Remove branch specifications
.github Bump actions/checkout from 3 to 4
.vim lsp: use project-name instead of crate_name to generate Cargo.toml path
.vscode lsp: use project-name instead of crate_name to generate Cargo.toml path
xtask add a build command ()
{{project-name}} chore: Use `aya`, `aya-ebpf` and `aya-log` from crates.io
{{project-name}}-common chore: Use `aya`, `aya-ebpf` and `aya-log` from crates.io
{{project-name}}-ebpf ebpf: use TC_ACT_PIPE in classifier
.gitignore Initial Commit
Cargo.toml Remove branch specifications
README.md add a build command ()
cargo-generate.toml Remove branch specifications
pre-script.rhai include and use clap only if needed
test.sh socket_filter: fix build

README.md

{{project-name}}

Prerequisites

  1. Install bpf-linker: cargo install bpf-linker

Build eBPF

cargo xtask build-ebpf

To perform a release build you can use the --release flag. You may also change the target architecture with the --target flag.

Build Userspace

cargo build

Build eBPF and Userspace

cargo xtask build

Run

RUST_LOG=info cargo xtask run