Expand description
scan submodule.
Parallel TCP connect and UDP probes (tokio + bounded concurrency).
Structs§
- Port
Line PortLine— see fields for layout.- Probe
Rate Pacer - Global cap on how fast probe tasks may start (
--max-rate, probes/sec minimum spacing).
Enums§
- Port
Reason PortReason— see variants.- UdpIcmp
Outcome - Outcome of an ICMP error that references our UDP probe (embedded IP header + UDP).
Functions§
- sleep_
inter_ probe_ delay_ sync - Blocking SYN send loop: sleep before each probe (after host-timeout check).
- tcp_
connect_ scan - TCP connect scan:
conclong-lived worker tasks drain a shared work queue via atomic index. When no proxies are configured, workers use blockingstd::net::TcpStream::connect_timeout(fewer syscalls: no ioctl/fcntl non-blocking setup per probe). Falls back to async tokio connect when proxies need the async I/O path.progressis an optional atomic counter incremented after each probe completes (for--stats-every). - udp_
scan - UDP scan: send a minimal datagram and treat any UDP reply as
open; timeout →open|filtered.
Type Aliases§
- UdpIcmp
Notes - Concurrent map filled by ICMP / ICMPv6 listeners.
Closedwins overFilteredif both appear.