A testing tool for capturing network traffic to a specific server during a query, then replaying the packets and validating the output matches.
See rust-pcap for installation help.
In order to capture packets the binary requires special permissions on linux, to set use:
$ sudo setcap cap_net_raw,cap_net_admin=eip ./net-replay-test
$ cargo build --bin net-replay-test --all-features --release
$ ./net-replay-test --implementation node capture --device eth0 csgo 127.0.0.1 27015
A new JSON file named with the date, game, and hostname will be created in the current directory if the capture was successful.
$ ./net-replay-test --implementation node replay ./replay-...json
TODO