Expand description
§netforge - High-performance raw packet I/O engine
High-performance raw packet I/O engine for internet-scale scanning.
Provides a unified PacketEngine trait with three backends, auto-selected
by system capability:
| Backend | Feature | Mechanism | Requirements |
|---|---|---|---|
| AF_XDP | xdp-backend | Zero-copy userspace ring | Kernel 5.10+, CAP_BPF, libbpf |
| sendmmsg | sendmmsg-backend | Batched sendmmsg() syscalls | Linux, CAP_NET_RAW |
| pnet | pnet-backend | Portable single-packet raw sockets | Any platform with CAP_NET_RAW |
§Stateless Sequence Encoding
The seq module provides cryptographically-keyed TCP sequence number
encoding, allowing fully stateless SYN scanning and banner grabbing.
Zero bytes of per-connection state are stored.
§Checksum Computation
The checksum module provides TCP/IP checksum computation for batch
packet construction (portable scalar implementation).
Re-exports§
pub use engine::auto_select;pub use engine::EngineConfig;pub use engine::EngineStats;pub use engine::PacketEngine;pub use packet::RawPacket;pub use seq::SeqEncoder;pub use seq::StatelessCookie;
Modules§
- backend_
pnet pnetraw socket backend - portable, ~1M pps.- backend_
sendmmsg sendmmsgbatch syscall backend - fast Linux, ~10M pps.- checksum
- TCP/IP checksum computation.
- engine
- Packet engine trait and configuration.
- packet
- Raw packet representation for zero-allocation packet construction.
- seq
- Stateless TCP sequence number encoding.
- stats_
window - Rolling-window packets-per-second tracker for
crate::engine::EngineStats.