cbpf-rust

September 28, 2017 ยท View on GitHub

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.

  • 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)