API Reference maebpf_c v#0.1.0

Copy Markdown View Source

Modules

C CO-RE eBPF compiler implementing @behaviour MaeBPF.Compiler for use MaeBPFC modules and direct {:c, source} compilation.

C CO-RE eBPF compiler, use MaeBPFC DSL, ~BPFC inline C sigil, static BPF object linker, and MaeBPFC.Plugs.TLSSNI companion package for :maebpf.

Lowers a structured %MaeBPF.IR.Module{} (built-in MaeBPF.Plugs.*, MaeBPFC.Plugs.TLSSNI, global/3, c_preamble/1, and ~BPFC"""...""" inline C blocks) into clean, warning-free C CO-RE eBPF source.

Compile-time representation of an inline C eBPF snippet created by ~BPFC"""...""" (MaeBPFC.Sigils.sigil_BPFC/2).

MaeBPF.Plug wrapper for inline eBPF C blocks.

C CO-RE TLS ClientHello SNI filter (bpf_iter_num up to 64 extensions, IPv4 + IPv6, 802.1Q/802.1ad VLANs, ECH detection, optional tproxy_port punt for split PQ ClientHello reassembly, reversed-FQDN LPM_TRIE, and 5-tuple LRU_HASH flow cache) for use MaeBPFC tcx and cgroup hooks.

Sigil macros for embedding inline eBPF C blocks inside use MaeBPFC modules.