package bpf
All checked builds passInstall
dune-project
Dependency
Authors
Maintainers
Sources
sha256=264b1841507ca9ca3f592acc7ef9a284f0a5ae0263d52cd1990ece1fe07aecae
md5=f1df7018dd45fc057da8c437f1a86270
Description
Generate BPF programs directly from OCaml, for use with Linux kernel socket/seccomp/event filters or to generate machine code with ubpf JIT for userspace.
README
OCaml embedded eBPF assembler.
Assuming R1 points to packet data - check if it is an ARP packet :
let arp =
[
ldx H R2 (R1,12);
movi R0 1;
jmpi `Exit R2 `EQ 0x806;
movi R0 0;
label `Exit;
ret
]See src/test.ml for more examples.
Dependencies (5)
- ppx_deriving
-
topkg
build -
ocamlbuild
build -
ocamlfind
build -
ocaml
>= "4.02.0"
Dev Dependencies
None
Optional Dependencies
None
Used by
None
Conflicts
None
Build status
Results of building bpf with each compiler on check.ci.ocaml.org, run of against opam-repository 8a77e58. All results for this package.
Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.
| Version | OCaml 4.11 | OCaml 4.14 | OCaml 5.2 | OCaml 5.4 | OCaml 5.5 |
|---|---|---|---|---|---|
| 0.2 (this version) | good | good | good | good | good |
- good Package successfully built
- partial One of the dependencies failed to build
- bad Package failed to build
- n/a Package is not available in this environment
- internal Internal failure