Userspace cBPF interpreter and cBPF to eBPF converter
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
c2e
cbpf
.gitignore
.travis.yml
Cargo.lock
Cargo.toml
README.md
rustfmt.toml

README.md

cbpf-rust

Linux Build Status

This repository have two crates:

  • cbpf : Userspace cBPF interpreter which can be run in a no-std environment and some related utilities.
  • c2e : Convert a cBPF program to the eBPF program.

Please see each directory for more details.

Note

The main purpose of this project is to create eBPF programs which can be run in my personal environment that use ubpf as eBPF VM from libpcap's expressions.

This project is under development. Maybe there are some problems.

Related Project

  • libpcap : Contains userspace cBPF interpreter and compiler
  • pcap: pcap library for rust
  • ubpf : Userspace eBPF VM written in C
  • rbpf : Userspace eBPF VM written in rust
  • bpfjit: cBPF jit compiler for rust (internally it use libpcap's code)