An open API service indexing awesome lists of open source software.

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

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
```