Expand description
Runtime probe for the available packet I/O backend.
gossan-engine always falls back to a slower backend when the
preferred one is unavailable, but the user often needs to know
which backend will run before they kick off a scan. This module
exposes a deterministic, side-effect-free probe that surfaces:
- compiled-in feature set (xdp, sendmmsg, pnet)
- Linux kernel version (for the AF_XDP
>= 5.10gate) - effective capabilities (CAP_BPF, CAP_NET_RAW)
- libbpf availability
Surface this from the CLI as gossan probe-engine. Surface it
from a test harness to assert that benchmarks actually ran on the
backend they claim to compare against masscan.
Structs§
- Probe
Report - Result of probing the runtime for backend availability.
Enums§
- Backend
- Concrete backend selected by
netforge::engine::auto_selectat runtime.
Functions§
- probe
- Capture the engine selection logic in pure data: which backend
would
auto_selectpick on this build, on this host, right now?