Skip to main content

Module probe

Module probe 

Source
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.10 gate)
  • 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§

ProbeReport
Result of probing the runtime for backend availability.

Enums§

Backend
Concrete backend selected by netforge::engine::auto_select at runtime.

Functions§

probe
Capture the engine selection logic in pure data: which backend would auto_select pick on this build, on this host, right now?