All Projects → ygrek → ocaml-bpf

ygrek / ocaml-bpf

Licence: other
OCaml embedded eBPF assembler

Programming Languages

ocaml
1615 projects
Makefile
30231 projects

Projects that are alternatives of or similar to ocaml-bpf

cloud-native-bpf-workshop
No description or website provided.
Stars: ✭ 94 (+422.22%)
Mutual labels:  bpf
amqp-client
OCaml Amqp client library for Async and Lwt.
Stars: ✭ 58 (+222.22%)
Mutual labels:  ocaml-library
tcpslice
tcpslice concatenates multiple pcap files together, or extracts time slices from one or more pcap files.
Stars: ✭ 48 (+166.67%)
Mutual labels:  bpf
otfed
An OpenType font format encoder & decoder written in OCaml
Stars: ✭ 15 (-16.67%)
Mutual labels:  ocaml-library
go-tc
traffic control in pure go - it allows to read and alter queues, filters and classes
Stars: ✭ 245 (+1261.11%)
Mutual labels:  bpf
ocamline
👨🏻‍💻 Command line interface for user input
Stars: ✭ 32 (+77.78%)
Mutual labels:  ocaml-library
ebpf
eBPF package for Go
Stars: ✭ 25 (+38.89%)
Mutual labels:  bpf
oxdpus
A toy tool that leverages the super powers of XDP to bring in-kernel IP filtering
Stars: ✭ 59 (+227.78%)
Mutual labels:  bpf
cgnet
No description or website provided.
Stars: ✭ 78 (+333.33%)
Mutual labels:  bpf
bpfps
A tool to list and diagnose bpf programs. (Who watches the watchers..? :)
Stars: ✭ 93 (+416.67%)
Mutual labels:  bpf
KubeArmor
Cloud-native Runtime Security Enforcement System
Stars: ✭ 434 (+2311.11%)
Mutual labels:  bpf
p2pflow
Ethereum p2p traffic analysis with eBPF
Stars: ✭ 24 (+33.33%)
Mutual labels:  bpf
aya
Aya is an eBPF library for the Rust programming language, built with a focus on developer experience and operability.
Stars: ✭ 950 (+5177.78%)
Mutual labels:  bpf
DrawBridge
Layer 4 Single Packet Authentication Linux kernel module utilizing Netfilter hooks and kernel supported Berkeley Packet Filters (BPF)
Stars: ✭ 81 (+350%)
Mutual labels:  bpf
bpflock
bpflock - eBPF driven security for locking and auditing Linux machines
Stars: ✭ 54 (+200%)
Mutual labels:  bpf
LAF
Linux Application Firewall
Stars: ✭ 8 (-55.56%)
Mutual labels:  bpf
XDP-Firewall
An XDP firewall that is capable of filtering specific packets based off of filtering rules specified in a config file. IPv6 is supported!
Stars: ✭ 129 (+616.67%)
Mutual labels:  bpf
secp256k1-ml
Elliptic curve library secp256k1 wrapper for Ocaml
Stars: ✭ 18 (+0%)
Mutual labels:  ocaml-library
pwru
Packet, where are you? -- Linux kernel networking debugger
Stars: ✭ 694 (+3755.56%)
Mutual labels:  bpf
packiffer
lightweight cross-platform networking toolkit
Stars: ✭ 52 (+188.89%)
Mutual labels:  bpf

OCaml embedded eBPF assembler.

eBPF.mli

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].