https://github.com/withlin/traffic-billing
base ebpf traffic billing as nodecar on k8s
https://github.com/withlin/traffic-billing
Last synced: 5 months ago
JSON representation
base ebpf traffic billing as nodecar on k8s
- Host: GitHub
- URL: https://github.com/withlin/traffic-billing
- Owner: withlin
- Created: 2024-09-13T13:09:14.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-13T16:59:17.000Z (over 1 year ago)
- Last Synced: 2024-12-28T18:32:39.733Z (over 1 year ago)
- Language: Rust
- Homepage:
- Size: 183 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# traffic-billing
## Prerequisites
1. Install a rust stable toolchain: `rustup install stable`
1. Install a rust nightly toolchain: `rustup install nightly`
1. Install bpf-linker: `cargo install bpf-linker`
## Build eBPF
```bash
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
```bash
cargo build
```
## Run
```bash
cargo xtask run
```
```
sudo apt-get update
sudo apt install build-essential
cargo install bpf-linker
apt install llvm
cargo xtask build-ebpf
cargo xtask run
```