Expand description
Live packet replay onto a real network interface.
Reads packets from a PCAP file and injects them via a raw AF_PACKET
socket (Linux only) using the original or a scaled inter-packet timing.
§Timing modes
| CLI flag | Behaviour |
|---|---|
| (none) | Real-time: honour original inter-packet gaps |
--speed 2.0 | Multiplier: replay 2× faster than original |
--speed max | No delay — transmit as fast as the NIC allows |
--pps 4096 | Fixed rate: 4 096 packets/second, ignores gaps |
§Permissions
Raw sockets require CAP_NET_RAW. If the capability is absent the function
returns ReplayError::PermissionDenied with a remediation hint.
Structs§
- Replay
Options - Options for
replay_file. - Replay
Report - Summary returned by
replay_fileon success.
Enums§
- Replay
Speed - How to pace packet transmission during replay.
Functions§
- replay_
file - Replay all packets from
inputonto the network interface inopts.