MCPcopy Create free account
hub / github.com/cloudflare/xdpcap / newProgram

Function newProgram

cmd/xdpcap/program.go:46–184  ·  view source on GitHub ↗

newProgram builds an eBPF program that copies packets matching a cBPF program to userspace via perf

(filter []bpf.Instruction, action xdpAction, perfMap *ebpf.Map, xdpFragsMode bool)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

newFilterWithMapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected