netsim
is a Rust library which allows you to:
- Run tests in network-isolated threads.
- Test networking code on simulated networks.
- Capture and inspect packets produced by your code.
- Inject and meddle with network packets.
See the examples directory in this repo.
netsim
currently only supports Linux since it makes use of the Linux containerization APIs.
MIT or BSD-3-Clause at your option.