MaeBPFC.Plugs.InlineC (maebpf_c v0.1.0)

Copy Markdown View Source

MaeBPF.Plug wrapper for inline eBPF C blocks.

Prefer plug ~BPFC"""...""" directly inside use MaeBPFC hooks; use MaeBPFC.Plugs.InlineC when passing options or building pipelines programmatically.

plug MaeBPFC.Plugs.InlineC,
  code: ~BPFC"""
  if (pkt.l4_ok && pkt.dport == target_port) return MAEBPF_DROP;
  """